Python script for conjugating regular verbs in Irish. Just pass in the verb as an argument for the script. Has no understand of irregular verbs, so if you put in "feic" expect to get "d'fheic mé" as the past tense.
The file reimnigh.py works as an entirely standalone script using only Python standard libraries. Everything else is just to support tests.
reimnigh.py [OPTIONS] [VERB]
By default will show all persons in all tenses in affirmative, negative and interrogative forms. Use options to narrow the output. There is also an option for the Munster dialect.
-c aimsir chaite / past tense
-g aimsir ghnáthchaite / imperfect tense
-l aimsir láithreach / present tense
-f aimsir fháistineach / future tense
-F modh foshuiteach / subjunctive mood
-o modh ordaitheach / imperative mood
-O modh coinnĂollach / conditional mood
-1 céad phearsa / first person
-2 dara pearsa / second person
-3 trĂĂş pearsa / third person
-0 briathar saor / automonous form
-u uatha / singular
-i iolra / plural
-d foirm dhearfach / affirmative form
-D foirm dhiĂşltach / negative form
-C foirm cheisteach / interrogative form
-m chanĂşint na Mumhan / Munster dialect
-a aibhsĂtear athruithe / highlight mutations (ANSI escape sequences)
$ python reimnigh.py eitil -1ucd
> d'eitil mé
$ python reimnigh.py eitil -1ucdm
> d'eitlĂos
$ python reimnigh.py beannaigh -30fC
> an mbeannĂłidh sĂ
> an mbeannóidh sé
> an mbeannĂłidh siad
> an mbeannĂłfar
$python reimnigh.py léim -2iclf
> an aimsir chaite
>lĂ©im sibh nĂor lĂ©im sibh ar lĂ©im sibh
>
> an aimsir láithreach
>léimeann sibh nà léimeann sibh an léimeann sibh
>
> an aimsir fháistineach
>léimfidh sibh nà léimfidh sibh an léimfidh sibh
The tests in test_reimnigh.py run against the Irish National Morphology
Database which is included as a submodule under test/BuNaMo
. Data is
extracted from this as some basic JSON using test/gramadoir
which is built
from my fork of the Gramadán project. This will require Mono or .NET libraries to run.
- Writen by Caoimhe Nà Chaoimh, © 2020
- License: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International