apertium / apertium-mar

Apertium linguistic data for Marathi
GNU General Public License v3.0
0 stars 1 forks source link

CG rules: use iteration properly #1

Open shardulc opened 6 years ago

shardulc commented 6 years ago

The .rlx file currently has stuff like:

SELECT SgObl IF
    (0 FemplnomMfnobl)
    (1 Adj)
    (2 NounSgObl) ;

Two things we can fix:

  1. Because the rules are repeatedly applied until they stop matching, we can look at only the next word (not differentiating between adjectives and nouns) and accommodate any number of adjectives.
  2. The same disambiguation rules could be extended to apply for determiners, adjectives, and attributive postpositions (e.g. X मधला Y) (anything else?).

Thoughts?