Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathieu Mangeot-Nagata
na-fst
Commits
681b630a
Commit
681b630a
authored
Jan 14, 2018
by
Mathieu Mangeot
Browse files
First import
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
na.foma
0 → 100644
View file @
681b630a
read lexc verb.lexc
define Verb;
read lexc affix.lexc
define Affix;
read lexc pronoun.lexc
define Pronoun;
define PronToneGroup Pronoun;
define Verbs [Verb ({ } Verb)];
define Affixes [Affix ({ } Affix)];
define Space { };
define Word \Space+;
define VerbToneGroup [Verbs ({ } Affixes)];
define Sentence ["|" { } (PronToneGroup { } "|" { }) VerbToneGroup { } "|"];
define VerbTone ˧ -> ˩ || "+Verb" "+La" { } ~{ }+ _ "+Verb" "+Mc";
define SuffixTone ˩ -> ˥ || "+Verb"~{ }+ { } ~{ }+"+Verb"~{ }+ { } ~{ }+ _ "+Desiderative";
define Isolation ˧ -> ˩ || %| { } Word _ Word { } %|;
define AddFirstToneBoundary [..] -> "|" { } || .#. _ ;
define AddLastToneBoundary [..] -> { } "|" || _ .#.;
define AddToneBoundaries AddFirstToneBoundary .o. AddLastToneBoundary ;
define RemoveToneGroupBoundary %| -> 0;
define RemoveMultipleSpaces Space -> 0 || Space _ ;
define RemoveLeadingSpace Space -> 0 || .#. _ ;
define RemoveTrailingSpace Space -> 0 || _ .#. ;
define RemoveTags "+Pron"|"+1SG"|"+Verb"|"+H"|"+Mc"|"+La" -> 0;
define Cleanup RemoveTags .o. RemoveToneGroupBoundary .o. RemoveMultipleSpaces .o. RemoveLeadingSpace .o. RemoveTrailingSpace ;
define Grammar AddToneBoundaries
.o.
Sentence
.o.
Isolation
.o.
SuffixTone
.o.
VerbTone
.o.
Cleanup
;
regex Grammar;
# njɤ˧+Pron+1SG | ʑi˩+Verb+La bi˧+Verb+Mc -zo˧+Obligative -ho˩+Desiderative
# => njɤ˩ ʑi˩ bi˩ -zo˧ -ho˥
\ No newline at end of file
pronoun.lexc
0 → 100644
View file @
681b630a
Multichar_Symbols +Pron +1SG
LEXICON Root
njɤ˧ Pronoun;
LEXICON Pronoun
+Pron+1SG #;
\ No newline at end of file
verb.lexc
0 → 100644
View file @
681b630a
Multichar_Symbols +Verb +H +Mc +La
LEXICON Root
dzu VerbH;
bi˧ VerbMc;
ʑi˩ VerbLa;
LEXICON VerbH
+Verb+H #;
LEXICON VerbMc
+Verb+Mc #;
LEXICON VerbLa
+Verb+La #;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment