Back to LanguageTool Homepage - Privacy - Imprint

[de] How to deal with words missing from the Austrian dictionary?

(Jan Schreiber) #1

We've been receiving a lot of user suggestions for Austrian words lately. Most of them aren't a problem, but there are two I don't want in the global German spelling.txt file: 'Leibnitz', name of a city in Styria (Steiermark), and 'Feber' (February), and there are probably more to come. If somebody from Germany types one of those, it is very likely unintentional.
So my question is: Wouldn't it be useful to have spelling files for all three variants of German, plus one global file?

(Daniel Naber) #2

Yes, I think so. There are not that many Austrian words, but some should be included. Leibnitz is a rather small city though, I'm not sure whether it should be included.

(Daniel Naber) #3

For comparison, here are some German cities with a similar number of inhabitants as Leibnitz:

Rosbach v. d. Höhe
Steinheim an der Murr
Coswig (Anhalt)
Bad Urach


LT knows some of them and others not. Unfortunately there doesn't seem to be a systematic approach.

Another idea: the spell checker should not just provide a suggestion but brielfy explain it, like: "Leibnitz [Stadt in der Steiermark]".

(Jan Schreiber) #4

I've never seen a feature like this in a spell checker. That would really take spell checking to the next level.

(jaumeortola) #5

Well, that's just a "grammar rule".

You could:
1) add these words to the dictionary (or the spelling.txt file).
2) create rules that detect these words.
3) disable these rules for Austrian German, when appropriate.

(Tiago F. Santos) #6

German grammar already as a category related to this:

See for example:

    <!-- Prominente -->
    <rule id="ALEXIUS_MEINONG" name="'Alexius Meinung (Meinong)'">
        <pattern case_sensitive="yes">
        <message>Meinten Sie den Philosophen Alexius <suggestion>Meinong</suggestion>?</message>
        <example correction="Meinong">Alexius <marker>Meinung</marker> ist ein Philosoph.</example>

Check line 6013.

(Jan Schreiber) #7

Yeah, I know. But it would be cool if the spell checker could prevent some of these errors from happening in the first place. If someone types 'Leibnits' it could suggest 'Leibnitz (town in Austria)' and 'Leibniz (philosopher)'.

(Lodewijk Arie van Brienen) #8

Perhaps a first step would be to allow the spell-checker to report the originating dictionary. (I personally have User-Defined-Dictionaries by the name of "Locations", "Names", "Brands" and others, so I think you'll understand how this can help.)

(Daniel Naber) #9

Another example (also German): Stihl suggest Stil, Stiel, and Stiehl.

(Tiago F. Santos) #10

Again, if you raise the priority of those relevant rules (and create an adequate database), it will display the errors you wish.
Make a "copy paste" java replace rule, change it to "place names", populate the database with misspellings and related city names, set it to a priority higher than the spell checker and you have that effect.
That is how [pt] identifies misspellings with foreign words and regional variants.
If you want to go fancy and explain more than one category per java class (places mixed with personalities), a third field needs to be added for a custom message.


ad Leibnitz:

again it was me, suggesting the word.

Leibnitz is not just a city but also a district:


The origin of the message should be readable for computer programs as well for automated spell checking.