1
0
forked from GitHub/gf-rgl

(Hun) For multiwords, get harmony of the last word.

This commit is contained in:
Inari Listenmaa
2020-06-22 07:38:41 +02:00
parent 49fbbffacc
commit 7ba3842ced

View File

@@ -471,10 +471,14 @@ oper
} ;
-- Function to get a harmony from a string
getHarm : Str -> Harm = \s -> case s of {
_ + #back + _ => H_a ;
_ + #front_rounded + (#c|"") + (#c|"") => H_o ;
_ => H_e
getHarm : Str -> Harm = \s ->
let lastWord : Str = case s of {
x + " " + y => y ;
_ => s } ;
in case lastWord of {
_ + #back + _ => H_a ;
_ + #front_rounded + (#c|"") + (#c|"") => H_o ;
_ => H_e
} ;
-- Used as a table of allomorphs for a give case.