Skip to content

Commit

Permalink
Pronoun "thu" -> "tu"
Browse files Browse the repository at this point in the history
"thu" is "tu" after future-tense "...idh" words, and after "faca" and "c(h)uala" (also a couple of other tense-endings but they're not currently included)
  • Loading branch information
sourzo committed Apr 27, 2023
1 parent c156792 commit 198c679
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions is_question_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,13 @@ def verb_tenses(chosen_tense, verb_form, vocab_sample, testvalues = None):

#Construct sentences ------------------------------------------------------
if chosen_tense in ("past", "future"):
sentence_gd = is_utility.transform_verb(v_root,
tense = chosen_tense,
negative = n_p,
question = q_s) + " " + person_gd
verb_gd = is_utility.transform_verb(v_root,
tense = chosen_tense,
negative = n_p,
question = q_s)
if person_gd == "thu" and any((chosen_tense == "future" and verb_gd.endswith("idh") and verb_gd != "bidh",
verb_gd in ("faca","cuala","chuala"))):
person_gd = "tu"
else:
sentence_gd = is_utility.verbal_noun(vn = v_noun,
person = person_gd,
Expand Down

0 comments on commit 198c679

Please sign in to comment.