Closed unhammer closed 6 months ago
This actually works if you use the error tag to signify what goes together:
"<ta>"
"ta" V Inf <W:0> @V &syn-phrasal-verb ID:2
"spille" V Inf <W:0> @V &syn-phrasal-verb &SUGGEST ID:2 R:RIGHT:4
"lage" V Inf <W:0> @V &syn-phrasal-verb1 &SUGGEST ID:2 R:RIGHT:4
:
"<opp>"
"opp" Adv <W:0> @Adv ID:4 &COERROR
"inn" Adv <W:0> @Adv &syn-phrasal-verb &SUGGEST ID:4 &COERROR
"opptak" Adv <W:0> @Adv &syn-phrasal-verb1 &SUGGEST ID:4 &COERROR
:
:
what doesn't yet work is getting the cross product of all combinations which use the same error tag – but do we need/want that?
Not sure, would need more examples to prove the need.
cf. https://github.com/divvun/libdivvun/issues/61 and https://github.com/divvun/libdivvun/blob/4629a43a52b0f46257ac84b2ed4f72d83a185ee4/src/suggest.cpp#L438-L440 we only include the arbitrarily first suggested form when combining suggestions from two words, e.g. if input was
we should get both "spille inn" and "spille inn!" but we currently just get one of them.
Similarly if there are several suggestions on the non-COERROR cohort.