nspell icon indicating copy to clipboard operation
nspell copied to clipboard

lowercase infinitive not working in german

Open nnmrts opened this issue 3 years ago • 7 comments

I have absolutely no idea how the .dic format works, all I can say is that practically any infinitve german word is marked as misspelt when using this in retext-spell.

For example, "markieren" is a normal word and has several entries in the dictionary, but somehow just "markieren" doesn't work, while "Markieren", "markierend", "markierens" or even "-markieren" work. What is the issue here?

"würde" is another case, even though that isn't an infinitive. "würde" is a verb, meaning "would", "Würde" (which works), meaning "dignity", is a substantive. It seems like every infinitive verb you could also write in uppercase (so basically any german verb) is not allowed when written in lowercase.

nnmrts avatar Feb 24 '21 10:02 nnmrts

Hmm, might be nspell related, as it’s not 100% compatible with hunspell. It might be worth checking with hunspell, if the dictionary works there. I would appreciated it a lot if you could check that?

Looking at the .aff file here, it might be duplicated. Those lines are typically at the top, not half way into a document

wooorm avatar Feb 25 '21 10:02 wooorm

C++ compiling and all that makefile spam is such a joke, but I guess that's how things are done there...

What I did after installing hunspell:

wget -O de.dic https://raw.githubusercontent.com/wooorm/dictionaries/main/dictionaries/de/index.dic
wget -O de.aff https://raw.githubusercontent.com/wooorm/dictionaries/main/dictionaries/de/index.aff

and then testing it:

hunspell -d de
Hunspell 1.7.0
markieren
*

markierend
+ markieren

Markieren
*

markierens
& markierens 8 0: Markierens, markierend, markieren, -markierens, markiere, maskieren, marinieren, massieren

As you can see, "markieren" is correct here. "markierens" is not, but it would be in retext-spell. But only the uppercase "Markierens" is correct.

It really seems like nspell has some issues with case.

nnmrts avatar Feb 25 '21 11:02 nnmrts

Testing with nspell here: https://runkit.com/nnmrts/nspell-de-test

yields this:

{
	"markieren": [
		false,
		[
			"Markieren"
			"markierend",
			"markierens",
			"-markieren",
			"markiere",
			"markierten",
			"maskieren"
		]
	],
	"markierend": [
		true,
		[]
	],
	"Markieren": [
		true,
		[]
	],
	"markierens": [
		true,
		[]
	]
}

nnmrts avatar Feb 25 '21 11:02 nnmrts

Thanks, transferred to nspell.

I don‘t have time/priority to work on nspell currently, so unfortunately this will take a while.

If you’re fine with native dependencies, nodehun might be a good alternative for spell checking in Node!

wooorm avatar Feb 25 '21 16:02 wooorm

If you’re fine with native dependencies, nodehun might be a good alternative for spell checking in Node!

Is there a way to plug nodehun into retext-spell?

nnmrts avatar Feb 26 '21 14:02 nnmrts

Nope. Perhaps retext- spell could be formed to allow it tho

wooorm avatar Feb 26 '21 14:02 wooorm

Any updates on this?

Joelius300 avatar Jan 20 '22 07:01 Joelius300