Skip to content

Commit 14fb9e9

Browse files
committed
Add comment suggested by Jason
1 parent c8657d2 commit 14fb9e9

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

Src/LexText/Interlinear/InterlinVc.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)