View Single Post
Old 07-08-2016, 12:01 PM   #15
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,741
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by GrannyGrump View Post
@Doitsu --- I am looking forward to trying the plugin this weekend. Glad I will no longer have to schlepp my files to work and paste into MS Word for their grammar check. (I am a user of Softmaker Office, a very nice freeware, and nice small footprint, compatible with Word and LibreOffice files, but no grammar check.)
Before you dump the MS Office grammar checker, you might want to test the LanguageTool grammar checker to make sure it's good enough for your purposes. (You can test it online.)

What I like about it, is that adding new rules doesn't require programming skills or a linguistics degree, because the developers have created a very user-friendly online rule editor.
For example, the following rule will check for words with numbers in them:
Spoiler:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/print.xsl" ?>
<?xml-stylesheet type="text/css" href="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/rules.css"
        title="Easy editing stylesheet" ?>

<!-- English user rules -->

<rules lang="en" xsi:noNamespaceSchemaLocation="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/rules.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <category id="GRAMMAR" name="Grammar" type="grammar">
<!-- list of EN POS tags: https://github.com/languagetool-org/languagetool/blob/master/languagetool-language-modules/de/src/main/resources/org/languagetool/resource/en/tagset.txt -->
    
    <!-- start of custom rule #1 -->
  <category id="GRAMMAR" name="Grammar" type="grammar">
    <!-- start of custom rule -->
    <rule id="GG_RULE_1" name="word contains numbers">
     <pattern>
      <token regexp="yes">\w*\d\w*</token>
     </pattern>
     <message>This word contains numbers and letters.</message>
     <short>Possible OCR error</short>
    </rule>
    <!-- end of custom rule -->
  </category>
    <!-- end of custom rule -->
      
  </category>
</rules>

(For your convenience I've attached the rule file. Once you've installed the LanguageTool plugin, unzip the .xml file and copy it to the LanguageTool plugin folder to activate it.)

Quote:
Originally Posted by GrannyGrump View Post
And if I find it too esoteric for my use, I will take Tex2002ans tip for LIBRE-OFFICE. I have not used it in so long, I did not know they had added grammar check.
LibreOffice only comes with a very limited grammar checker. You'll need to download the LanguageTool OXT file and install it via Tools > Extension Manager. (If you encounter problems read the LanguageTool troubleshooting guide.)
Attached Files
File Type: zip user-rules_2.zip (687 Bytes, 371 views)

Last edited by Doitsu; 07-09-2016 at 05:30 AM.
Doitsu is offline   Reply With Quote