mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-27 17:08:54 -06:00
Changes in regNoun
This commit is contained in:
@@ -91,7 +91,10 @@ oper
|
|||||||
|
|
||||||
-- regNoun is a /smart paradigm/: it takes one or a couple of forms,
|
-- 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.
|
-- and decides which (non-smart) paradigm is the most likely to match.
|
||||||
-- regNounNomAcc : (nom : Str) -> (acc : Str) -> Noun = n, a -> mkNoun n ;
|
regNounNomAcc : (nom : Str) -> (acc : Str) -> Noun = n, a ->
|
||||||
|
let lastNom = last n ;
|
||||||
|
lastAccShort = shorten (last (init a)) ;
|
||||||
|
in ifTok Noun lastNom lastAccShort (dAlma n a) (mkNoun n) ;
|
||||||
|
|
||||||
-- regNounNomAcc n a | (last n) == shorten (last (init a)) = dAlma n a
|
-- regNounNomAcc n a | (last n) == shorten (last (init a)) = dAlma n a
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user