View Single Post
Old 01-27-2017, 11:38 AM   #7
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,762
Karma: 24088559
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by BetterRed View Post
[...] with the there/their/they're cases, and plurals that maybe should be contractions and vice versa
If you're using LanguageTool with the default settings, it most likely won't catch these errors, however, there's also an advanced statistics-based mode that catches some of these errors.

For example, when this mode was enabled, LanguageTool detected the errors in the following two sentences:

Don't go their.

Quote:
Context: Don't go >>their<< . They lost there luggage. CONFUSION_RULE:TYPOS: Statistics suggests that 'there' (as in 'Is there an answer?') might be the correct word here, not 'their' (as in 'It’s not their fault.'). Please check. Suggestion(s): there
They lost there luggage.

Quote:
Context: ... Don't go their. They lost >>there<< luggage. CONFUSION_RULE:TYPOS: Statistics suggests that 'their' (as in 'It’s not their fault.') might be the correct word here, not 'there' (as in 'Is there an answer?'). Please check. Suggestion(s): their
The downside is that users'll have to download an 8.3GB ngram zip file. They also need a pretty powerful PC with lots of RAM and an SSD. (For more information on this advanced mode see the LanguageTool website.)

BTW, users who want to give this mode a try will need to use a special LanguageTool.json preferences file for best results:

Code:
{
  "enabledOnly": true,
  "enabledRules": "CONFUSION_RULE",  
  "ngramIndexDir": "C:/ngrams",
  "ltPath": "C:/Program Files/LanguageTool-3.6/languagetool-commandline.jar", 
  "allFiles": true
}
Note that ngramIndexDir is the location of the parent folder of the en ngrams folder. For example, the folder structure on my machine is:

C:/ngrams/en/1grams
C:/ngrams/en/2grams
C:/ngrams/en/3grams

Obviously, the values in Magenta need to be changed to match the actual installation folders. Python also requires slashes or double back-slashes for folder names.
Doitsu is offline   Reply With Quote