Create class GmClosest to find closest grammatical meaning from a set
gvlasov opened this issue · comments
It would accept a target grammatical meaning and a set of grammatical meanings, and act as the closest grammatical meaning from the set.
new GmClosest(
ImmutableSet.of(
new GmSimple(Sing, I),
new GmSimple(Plur, Ger)
),
new GmSimple(Sing, I, Ger) // ← Not possible in English, but possible in Inflectible model which is a superset of English
).grammemes() // ← {Sing, I}