Skip to content

Grammar checker speller removes non-first words from multi-word speller suggestions #34

@snomos

Description

@snomos

In lang-gle, do:

echo nuvviDspeller | divvunspell suggest -a tools/spellcheckers/ga.zhfst 
Reading from stdin...
Input: nuvviDspeller		[INCORRECT]
Divvun speller for Irish		1
ga, desktop, version 0.2.0, 19.11.2025-0907		2
Built using HFST 3.16.2		3

Do the same in the grammar checker. The output is:

"<nuvviDspeller>"
	"Divan" Foreign English Noun <spelled> <W:1> <WA:135> "Divvun"S
	"Divan" Fam Prop Noun Masc Com Sg <spelled> <W:1> <WA:160> "Divvun"S
	"Diveen" Fam Prop Noun Masc Com Sg <spelled> <W:1> <WA:165> "Divvun"S
	"<gap>" XMLTag <spelled> <W:2> <WA:70> "ga,"S
	"ga" Subst Noun Sg <spelled> <W:2> <WA:85> "ga,"S
	"gad" Noun Masc Com Sg <spelled> <W:2> <WA:105> "ga,"S
	"caí" Noun Fem Com Sg Ecl <spelled> <W:2> <WA:125> "ga,"S
	"caí" Noun Fem Gen Sg Ecl <spelled> <W:2> <WA:125> "ga,"S
	"gad" Verb VTI Imper 2P Sg <spelled> <W:2> <WA:125> "ga,"S
	"caígh" Verbal Noun VTI Ecl <spelled> <W:2> <WA:130> "ga,"S
	"gad" Noun Masc Gen Weak Pl <spelled> <W:2> <WA:130> "ga,"S
	"gad" Noun Masc Com Sg DefArt <spelled> <W:2> <WA:140> "ga,"S
	"caígh" Verbal Noun VTI Gen Ecl <spelled> <W:2> <WA:150> "ga,"S
	"Buile" Noun Fem Com Pl <spelled> <W:3> <WA:102> "Built"S
	"Buile" Noun Fem Voc Pl <spelled> <W:3> <WA:102> "Built"S
	"Cuilt" Noun Fem Com Sg <spelled> <W:3> <WA:110> "Built"S
	"Muilt" Noun Fem Com Sg <spelled> <W:3> <WA:110> "Built"S
	"Béile" Noun Masc Com Pl <spelled> <W:3> <WA:114> "Built"S
	"Built" Foreign English Verb <spelled> <W:3> <WA:120> "Built"S
	"Sult" Noun Masc Com Pl <spelled> <W:3> <WA:120> "Built"S
	"Sult" Noun Masc Gen Sg <spelled> <W:3> <WA:120> "Built"S
	"Buile" Noun Fem Com Pl DefArt <spelled> <W:3> <WA:127> "Built"S
	"Buile" Noun Fem Voc Pl DefArt <spelled> <W:3> <WA:127> "Built"S

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions