forked from GitHub/gf-rgl
(Ara) Fix bug in mkN instance for sg,pl,gender,species.
This commit is contained in:
@@ -367,7 +367,9 @@ resource ParadigmsAra = open
|
|||||||
mkN : Species -> N -> N
|
mkN : Species -> N -> N
|
||||||
= \p,n -> n ** {h = p} ;
|
= \p,n -> n ** {h = p} ;
|
||||||
mkN : (sg,pl : Str) -> Gender -> Species -> N
|
mkN : (sg,pl : Str) -> Gender -> Species -> N
|
||||||
= \sg,pl -> mkFullN (reg sg pl) ;
|
= \sg,pl -> case <sg,pl> of {
|
||||||
|
<x@(_ + "ة") + #vow*, _ + "ات" + #vow*> => mkFullN (sndf x) ; -- extra safety: if someone gives case marking to the constructor, ignore it
|
||||||
|
_ => mkFullN (reg sg pl) } ;
|
||||||
mkN : NTable -> Gender -> Species -> N -- TO BE DEPRECATED; kept for backwards-compatibility. For the same behaviour, use either the constructor above, sdfN or sdmN.
|
mkN : NTable -> Gender -> Species -> N -- TO BE DEPRECATED; kept for backwards-compatibility. For the same behaviour, use either the constructor above, sdfN or sdmN.
|
||||||
= mkFullN ;
|
= mkFullN ;
|
||||||
mkN : (root,sgPatt,brokenPlPatt : Str) -> Gender -> Species -> N -- broken plural
|
mkN : (root,sgPatt,brokenPlPatt : Str) -> Gender -> Species -> N -- broken plural
|
||||||
|
|||||||
Reference in New Issue
Block a user