apertium / apertium-grn

Apertium linguistic data for Guarani
GNU General Public License v3.0
2 stars 2 forks source link

Add test cases to the twol file #4

Open ftyers opened 5 years ago

ftyers commented 5 years ago

For each rule in the twol file there should be at least one test case, e.g.

"Change tonal vowel to atonal if tonal in affix"
Vt:Va <=> •: _ [ Cns: | ArchiCns: | Nas: | VowsAton: |  %>: ]+  VowsTon: ;
          •: _ [ Cns: | %>: | ArchiCns: | Nas: | VowsAton: ]+ %{E%}: ;
          •: _ [ Cns: | %>: | ArchiCns: | Nas: | VowsAton: ]+ [%{Y%}: g: u: a:] ;
          except
          A: m: •: _ r: i: k: a: %>: [%{Y%}: g: u: a:] %>: %{m%}: e: ;
           where Vt in VowsTon Va in VowsAton matched ;

!@ •:0 ó:o g:g a:a >:0 {N}:0 {K}:k u:u é:é r:r a:a

!@ •:0 ó:ó g:g a:a >:0 p:p e:e

!@ •:0 ó:o g:g a:a >:0 g:g u:u a:a