From 684cec4c34b5de7ecd9478889b1d0d11a4caa4dd Mon Sep 17 00:00:00 2001 From: Inari Listenmaa Date: Sat, 4 Apr 2020 21:37:05 +0200 Subject: [PATCH] =?UTF-8?q?(Hun)=20Add=20dL=C3=B3=20to=20smart=20paradigm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hungarian/NounMorphoHun.gf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hungarian/NounMorphoHun.gf b/src/hungarian/NounMorphoHun.gf index ab828d7e0..098f84ff5 100644 --- a/src/hungarian/NounMorphoHun.gf +++ b/src/hungarian/NounMorphoHun.gf @@ -101,8 +101,9 @@ oper -- regNoun is a /smart paradigm/: it takes one or a couple of forms, -- and decides which (non-smart) paradigm is the most likely to match. regNoun : Str -> Noun = \sgnom -> case sgnom of { - _ + "a"|"e" => dAlma sgnom ; + _ + "a"|"e" => dAlma sgnom ; _ + ("á"|"é") + ? => dMadár sgnom ; + _ + ("ó"|"ő") => dLó sgnom ; -- TODO: more non-smart paradigms + more pattern matching -- TODO: smart paradigms with >1 form. Which forms are the most descriptive?