Back to LanguageTool Homepage - Privacy - Imprint

Replacement text always in en-US


(ciri) #1

Hi,

as stated in the subject line, my 'replacement text' is always entered into the document as english(US) language, regardless of the current text language. I'm assuming that this is the default language? This is causing problems as when I then recheck the document it sees the corrected/replaced words/phrases as "en-US".

I've already set all the relevant language options in LibreOffice to my preferred language but to no avail I'm afraid.

Could you give me any idea as to how I should go about correcting this behavior?

Asides from this the LanguageTool is great!!..really impressive!!

Regards,
ciri.


(Daniel Naber) #2

Could you give an example?


(ciri) #3

That's ok, got it sorted, problem seems to have been caused by running the LanguageTool without a SpellChecker.

But thanks very much for your prompt reply.
ciri


(artofit) #4

The online version (2/2/2014) does not offer choice between US and British English => lot of false positive.

Examples:
...our -> or (labour -> labor; colour -> color)
...re -> er (centre -> center)
whilst -> while
arse -> ass
...

Would you be so kind to enable in the online as choices US or British English.

Thanks


(Daniel Naber) #5

This is on our TODO list, I can't make any promises about when it will be implemented, though.


(artofit) #6

The issue is about implementing rules or dictionnar(ies)???

I presume a bit of both.
Regarding specific US or British English, it might be interesting to throw a warning to the user, so that they can decide when writing in "international" English = neither us nor uk specific.
Another idea is to change warning colour or underlinement.

Speaking about 'local' varieties, French is amongst them:
Canadian French, French reformed in 1990, Belgian French, Swiss French

Example:
Belgian French : je ne sais pas venir
French: je ne peux pas venir

serviette de bain <-> essui de bain
serpillère <-> lavette
etc.

FYI
* https://github.com/Predelnik/DSpellCheck/wiki/Manual
* http://fr.wikipedia.org/wiki/Rectifications_orthographiques_du_fran%C3%A7ais_en_1990


(Daniel Naber) #7

We already support British and US English, but it cannot be selected in the web interface yet. You can select between the two when you use the stand-alone version that you can download.


(artofit) #8

We already support British and US English
Great

but it cannot be selected in the web interface yet
I prefer online, as can be used anywhere, no install

Currently I view as html

English

What about?
English British
English US


(Daniel Naber) #9

As English is not the only language with more than once variant, we cannot display them all in the list (it would make the list too long), so we first need to add a second button for those languages that have variants.


(artofit) #10

http://jsfiddle.net/JaZAm/1/

Possibly:
http://www.jqueryscript.net/form/Simple-jQuery-Plugin-For-Chained-Selects-Chained.html

As with Google translate (http://translate.google.fr/), I would use a cookie to save the last 3 or 4 prefered ones for fast & easy access.


(artofit) #11

Here attached an example.

I used as language code http://en.wikipedia.org/wiki/Language_localisation

languagetool_select_lang.htm (1.81 KB)


(Daniel Naber) #12

On https://languagetool.org/ we're using Javascript to turn this standard HTML selection into a popup that's easier to use, so unfortunately, the grouping you suggest doesn't directly apply there.


(artofit) #13

I only see what the browser shows me, I haven't looked in Git

If I may help, I will, I start to discover


(Daniel Naber) #14

If you know HTML/Javascript, your help is very welcome. The page code is at https://github.com/languagetool-org/languagetool-website, it requires PHP to run locally.


(artofit) #15

So far if I see correctly, in the downunder files, to the $checkLanguage = array( one must insert into the array declaration
'en-GB' => 'British Englis',

To have a presentation such as I proposed, it needs more though, but this would already help.

BR: https://github.com/languagetool-org/languagetool-website/blob/master/www/br/index.php
CA: https://github.com/languagetool-org/languagetool-website/blob/master/www/ca/index.php
DE:https://github.com/languagetool-org/languagetool-website/blob/master/www/de/index.php
EO: https://github.com/languagetool-org/languagetool-website/blob/master/www/eo/index.php
FR: https://github.com/languagetool-org/languagetool-website/blob/master/www/fr/index.php
IT: https://github.com/languagetool-org/languagetool-website/blob/master/www/it/index.php
PL: https://github.com/languagetool-org/languagetool-website/blob/master/www/pl/index.php
PT: https://github.com/languagetool-org/languagetool-website/blob/master/www/pt/index.php
Ru : https://github.com/languagetool-org/languagetool-website/blob/master/www/ru/index.php