diff --git a/src/classes.ts b/src/classes.ts index cb57379aa..c855d8b22 100644 --- a/src/classes.ts +++ b/src/classes.ts @@ -426,7 +426,8 @@ export class Pronoun { if (optionN === optionG && optionsGAlt.length && this.config.pronouns.shortMorphemes !== 3) { optionG = optionsGAlt[i < optionsGAlt.length - 1 ? i : optionsGAlt.length - 1]; } - let nameOption = `${optionN}/${optionG}`; + // If there is no secondary option, don't include a `/` + let nameOption = optionG ? `${optionN}/${optionG}` : optionN; if (this.config.pronouns.shortMorphemes === 3) { let thirdForms = (this.morphemes[this.config.pronouns.morphemes[2]] || '').split('&'); if (this.config.locale === 'ru' || this.config.locale === 'ua') { @@ -440,6 +441,7 @@ export class Pronoun { options.add(nameOption); } + return [...options]; }