This commit is contained in:
lingdocs 2021-08-27 13:15:12 +04:00
parent a85670a99f
commit 745a7333ba
2 changed files with 1 additions and 2 deletions

View File

@ -662,7 +662,6 @@ export const getForms = ({ conj, filterFunc, mode, subject, object, sentenceLeve
return mode === "chart" return mode === "chart"
? formsToUse ? formsToUse
: formMap( : formMap(
// TODO: somewhere in one of these the english conjugations are being stripped out for the past tense items
formFilter(formsToUse, (f) => f.sentence), formFilter(formsToUse, (f) => f.sentence),
makeSentence, makeSentence,
conj.info, conj.info,

View File

@ -20,7 +20,7 @@ export function convertSpelling(input: string, spelling: T.Spelling): string {
return input; return input;
} }
return input.replace(/ای(?![\u0621-\u065f\u0670-\u06d3\u06d5])/g, "ائ") return input.replace(/ای(?![\u0621-\u065f\u0670-\u06d3\u06d5])/g, "ائ")
.replace(/وی(?![\u0621-\u065f\u0670-\u06d3\u06d5])/g, ئ") .replace(/وی(?![\u0621-\u065f\u0670-\u06d3\u06d5])/g, ی")
.replace(/ی(?![\u0621-\u065f\u0670-\u06d3\u06d5])/g, "ے") .replace(/ی(?![\u0621-\u065f\u0670-\u06d3\u06d5])/g, "ے")
.replace(/ي(?![\u0621-\u065f\u0670-\u06d3\u06d5])/g, (spelling === "Pakistani ی") .replace(/ي(?![\u0621-\u065f\u0670-\u06d3\u06d5])/g, (spelling === "Pakistani ی")
? "ی" ? "ی"