I have the following lexicon rules
gr_noun_suffix(masculine,singular,nominative,10,'ος').
gr_noun_suffix(masculine,singular,nominative,10,'ης').
gr_noun_suffix(masculine,singular,possessive,10,'η').
gr_noun_suffix(masculine,singular,accusative,10,'η').
gr_noun_suffix(masculine,plural,nominative,10,'ες').
gr_noun_suffix(masculine,plural,possessive,10,'ων').
gr_noun_suffix(masculine,plural,accusative,10,'ες').
and i need to give as input for example
gr_noun(X,F,Gender,Plurality,Singularity,Case,Code,[σκυλος],[]).
and get
F = σκυλ(X),
Gender= masculine,
Singularity= singular,
Case= possessive,
Code= 10 .
In other words i need the last syllable of the word broken, and compared to the rules, in order to fond what applies.
I seem to be stuck on how to break the last syllable of the word.
sub_atom/5
andsub_string/5
that can be used to enumerate substrings, prefixes, suffixes, etc. – User9213