1
0
forked from GitHub/gf-rgl

Merge pull request #321 from inariksit/hungarian

Hungarian
This commit is contained in:
Inari Listenmaa
2020-05-02 21:34:10 +02:00
committed by GitHub
3 changed files with 10 additions and 4 deletions

View File

@@ -140,7 +140,7 @@ lin forest_N = mkN "erdő" "erdőt" ;
-- lin freeze_V = mkV "" ;
lin fridge_N = mkN "hűtő" "hűtőt" ;
lin friend_N = mkN "barát" "barátot" ;
lin fruit_N = mkN "gyümölcs" "gyümölcsöt" "gyümölcsök" "gyümölcse" ;
lin fruit_N = mkN "gyümölcs" "gyümölcsöt" "gyümölcsök" "gyümölcse" ; --TODO: plural PossPl2 fails "gyümölcseitek" instead of "gyümölcseitök", wovel harmony changing?
lin full_A = mkA "tele" ;
-- --lin fun_AV

View File

@@ -184,7 +184,7 @@ oper
-- orr, orr|ot -> orr|a
-- TODO fails for gyümölcs, gyümölcs|öt -> gyümölcs|e
-- I don't know what this list means /IL
-- This list could maybe be deleted
_ + #v + ("sz"|"z"|"s"|"zs"|"j"|"ly"|"l"|"r"|"n"|"ny"
|"ssz"|"zz"|"ss"|"ll"|"rr"|"nn"|"ns"|"nsz"|"nz")
+ ("o"|"ö") => init tolla ;
@@ -242,7 +242,8 @@ oper
-- More words not covered by current paradigms:
-- https://cl.lingfil.uu.se/~bea/publ/megyesi-hungarian.pdf
-- TODO: teher ~ terhet (consonant-crossing)
-- TODO: teher ~ terhet (consonant-crossing) works in all cases except ParamHun.PossdSg_PossrPl1
-- Worst case constructor: takes all stems
worstCaseNoun : (x1,_,_,_,_,_,_,x8 : Str) -> Harm -> Noun =

View File

@@ -17,8 +17,13 @@ With contributions from Erzsébet Galgóczy (initial nominal morphology) and Pat
-
## Implementation information
(2020-04) - Julia Jansson
So far (2020-03) just copypasted a dummy module with Hungarian words that inflect mostly wrong or not at all. This will change in a few weeks.
A basic RGL exists with focus on noun inflection in NounMorphoHun.gf. First the implementation of NounMorphoHun.gf was in paradigms taking one argument (nominative) with different cases for plural, accusative and superessive cases. NounMorphoHun.gf also includes wovels, consonants and double/triple consonants, and functions using wovel harmony for the different stems. Since accusative has shown to be irregular the structure was changed to multi-argument paradigms taking nominative and accusative, from this the paradigms could be simplified much, and yield correct results to a higher degree. For cases when only nominative is entered as an argument there is a function that guesses accusative from nominative, but it is better to use several arguments.
Later, possessive stem inflection was implemented which was quite complicated. Some paradigms take possessive forms as arguments, others have rules were using the accusative was enough. However the irregularity in possessive forms showed that several possessive arguments may be necessary for yielding correct results. Special cases are noted in NounMorphoHun.gf and LexiconHun.gf. For all these to work some more work on wovel harmony and the paradigms need to be done. Furthermore, not all 21 cases are implemented in NounMorphoHun.gf; it is missing the cases Essive, Temporal, Formal and Terminative.
TLDR; a basic noun inflection structure covering most cases and possessive suffixes is implemented. There are special cases that need to be fixed, there is work left on wovel harmony and adding the missing cases.
## Maintainer