I have been continuing a little more development on my
Cornish language processing tools.
I have added recently a number of things to them, including reverse mutation, and a launcher program. In this post, I will describe a little of 'Niverow', a program to write out numbers in Cornish, 'Mutatya' - a program to generate mutated forms of words, and 'Inflektya', a program to generate inflected verb forms.
Firstly the launcher program. This is the file
TaklowKernewekLonchyer.pywwhich itself imports a couple of other scripts
TaklowKernewekLonch.py and
launchmodes.py which are largely based on example scripts from
Programming Python 3rd edition by Mark Lutz.
Running this brings up a basic array of buttons:
|
Clicking on any of these buttons will bring up its own GUI window. |
Niverow
|
In the boxes, specify the number, and the noun, and noun plural, if you wish to include the noun. It is also necessary to tick the box next to "Usya Hanow" to do so. Tick "Hanow Benow" to indicate that it is a feminine noun, which will make the program use the feminine forms of numbers (e.g. diw in place of dew) where they are needed. Decimal numbers can be used, and this program treats them reading out one digit at a time. |
|
If using a decimal number, the program will use the number + a + plural noun format. The plural is assumed to be the noun + -ow unless a different one is specified. |
|
This format is also used if the number has more than three elements |
Mutatya
I have mentioned mutatya.py
before on this blog, but it has a few new features including an option to use the traditional spelling forms as used in the SWF Traditional variant. These consist of using c instead of k before some vowels, and using qw- instead of kw- and wh- instead of hw-.
The other new feature is reverse mutation, taking a word and identifying what words it could originally have been. This doesn't check whether the hypothesised unmutated word actually exists, or whether the mutation is actually gramatically possible.
|
Traditional forms of the soft mutation c-->g, and the hard mutation gw-->qw. These would be k-->g and gw-->kw in Kernewek Kemmyn, or SWF Main Form. |
|
The word 'garr' could either be an unmutated form, or a soft mutation of 'karr'. Likewise 'hanow' could be 'hanow', breathed mutation of 'kanow' or mixed mutation of 'ganow'. |
Inflektya
This program generates inflected forms of verbs, selecting the tense in the left hand menu, the person in the next one, whether to use suffixed pronouns, and whether to expect SWF input and give SWF output (the default is Kernewek Kemmyn).
|
Showing the inflected forms of the regular verb 'prena' for present, preterite, and imperfect tenses. |
|
Attempting to show the future tense of prena gives an error message, since the simple future doesn't exist for this verb. |
|
The imperative, which doesn't exist for the impersonal, and first person forms, and is not very common except in 2nd person 'Ty' and 'Hwi' forms. |
|
For the irregular verb 'bos' to be, the simple future is shown. |
|
The present subjunctive of the verb 'dismygi' in Kernewek Kemmyn, and in SWF. |