File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2361,7 +2361,16 @@ internal static IPartOfSpeech GuessWordPOS(IAnalysis analysis)
23612361 {
23622362 return null ;
23632363 }
2364- // This is modeled after SandboxBase.SyncMonomorphemicGlossAndPos.
2364+ // Guess the word category from the morphemes' MSAs, matching
2365+ // SyncMonomorphemicGlossAndPos so the display and the sandbox agree:
2366+ // - if there is more than one stem and they have different parts of
2367+ // speech, give up (return null);
2368+ // - if there is more than one derivational affix (DA), give up;
2369+ // - if there is no stem, give up — a derived-to category is only
2370+ // meaningful relative to the stem it attaches to, so a lone DA is
2371+ // not enough to guess from;
2372+ // - otherwise use the DA's 'to' POS if there is one, else the stem's POS.
2373+ // (we don't insist that the DA's 'from' POS matches the stem)
23652374 IPartOfSpeech stemPOS = null ;
23662375 IPartOfSpeech derivedPOS = null ;
23672376 foreach ( IWfiMorphBundle morphBundle in wa . MorphBundlesOS )
You can’t perform that action at this time.
0 commit comments