alpheios-project / morph-client

Morphology Client Library Interface
ISC License
0 stars 1 forks source link

whitakers engine - interpret PPL+SUM in stem #20

Open balmas opened 6 years ago

balmas commented 6 years ago

Reported by @monzug

If you look up, e.g. "amatus sum", whitaker's gives us 2 inflections:

<words>
<word>
<form xml:lang="lat">amatus</form>
<entry>
<infl><term xml:lang="lat"><stem>amat</stem><suff>us</suff></term><pofs>verb participle</pofs><conj>1st</conj><var>1st</var><case order="7">nominative</case><num>singular</num><gend>masculine</gend><tense>perfect</tense><voice>passive</voice><mood>participle</mood></infl>
<infl><term xml:lang="lat"><stem>PPL+sum</stem></term><pofs order="3">verb</pofs><conj>1st</conj><var>1st</var><tense>perfect</tense><voice>passive</voice><mood>indicative</mood><pers>1st</pers><num>singular</num></infl>
<note>PERF PASSIVE PPL + verb TO_BE =&gt; PASSIVE perfect system                        </note>
<dict><hdwd xml:lang="lat">amo, amare, amavi, amatus</hdwd><pofs order="3">verb</pofs><conj>1st</conj><freq order="6">very frequent</freq><src>Ox.Lat.Dict.</src></dict>
<mean>love, like; fall in love with; be fond of; have a tendency to;</mean>
</entry>
</word>
</words>

so we end up with an Inflection object with stem="PPL+sum" and no suffix, which we cannot match against.

We do get a participle in the other inflection so we could possibly check for that scenario an construct the suffix ourselves, but it would require conjugation of sum as well.

At a minimum, we should not treat this as an empty suffix so that we don't get incorrect matches

balmas commented 6 years ago

(N.B. that since we don't (yet) support lookup of multiple words from selection from the page, right now this will occur if the user enters this in the lookup box (e.g. as 'amatus sum') . If you just select 'amatus' you get the participle only)