Template:User:Sarri.greek/el-tin

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Module:User:Sarri.greek/el-tin
Recognizes the first letter of a Modern Greek noun (feminine, accusative, singular) and produces the correct article την (tin) or τη (ti)

  • την     (before αΑάΆεΕέΈηΗήΉιΙίΊοΟόΌυΥύΎωΩώΏκΚπΠτΤξΞψΨ and before γκ,Γκ, μπ, Μπ, ντ, Ντ)
  • τη       (before βδθφχλρσζΒΔΘΦΧΛΡΣΖ and before γμνΓΜΝ but not for γκ, μπ, ντ)
  • τη(ν)   (for suffixes starting with hyphen -....)

Check at their pages: All OK. Also, the same function, for TRANSLITERATION, write /el-tin/tin_translit

{{Template:User:Sarri.greek/el-tin|{{PAGENAME}}}} - 
{{Template:User:Sarri.greek/el-tin}} - 
{{#invoke:User:Sarri.greek/el-tin|tin|{{PAGENAME}}}} - 
{{#invoke:User:Sarri.greek/el-tin|tin}}

FAIL = invoke with written param 1 {{#invoke:User:Sarri.greek/el-tin|tin|χαρά}}

Test template and test these with {PAGENAME} at their pages. Test direct invoke
  • {{Template:User:Sarri.greek/el-tin|χαρά}}
    expected: τη χαρά
    τη
  • {{#invoke:User:Sarri.greek/el-tin|tin|χαρά}}
    expected: τη χαρά
    την --- FAIL

{{#invoke:User:Sarri.greek/el-tin|tin|χαρά}}

but this is OK:
{{#invoke:User:Sarri.greek/el-tin|tin|{{PAGENAME}}}}
  • {{Template:User:Sarri.greek/el-tin|Άρτα}}
    expected: την Άρτα
    την
  • {{Template:User:Sarri.greek/el-tin|-ότητα}}
    expected: τη(ν) -ότητα
    τη(ν)
  • {{Template:User:Sarri.greek/el-tin|βδέλλα}}
    expected: τη βδέλλα (both 1st and 2nd letter must produce τη. Just in case it sees the 2nd letter but not the first.)
    τη
    at page PAGENAME = {{Template:User:Sarri.greek/el-tin|{{PAGENAME}}}}
  • {{Template:User:Sarri.greek/el-tin|word}}
    expected: ... την for anything else.
    την