Please provide grammar checking mechanism in the LibreOffice.
Maybe include Language Tool in LibreOffice? Or, if it's not possible or if there available better solution, maybe rules created for Language Tool can be useful?
languagetool is provided in beta2
We should prolly file the "Encourage LanguageTool to be in C++ or python, not Java" bug though :-)
Since RC2 LanguageTool is not part of LibreOffice anymore. Now opened again.
Good point; the basic complaint was a lack of translation, that and the Java requirement which tends to plague Windows users without Java with tens of annoying dialogs on first-start :-)
Translation interface fixed in LanguageTool 1.1 and higer.
Alternative grammar checking extension is Lightproof.
Lightproof is written on Python.
But Lightproof is less powerful then LanguageTool.
It would be nice if eventually java free grammar/style/similar stuff checking could be included inside libreoffice, but something more powerful than lightproof or even languagetool. I don't know if something like that would fit in with this bug though.
It maybe old Python version of Languagetool
But this version have not OpenOffice/LibreOffice integration.
I plan to fix this issue in the next few months, based on Lightproof, partially extending the English Lightproof demo with the results of LanguageTool development, too. But I strongly think, with the default settings the proofreader doesn't have to hurt the users any false warning messages. The Grammalecte French grammar checker extension (released a few days ago by its author, Olivier Ronez, athe developer of the French spelling dictionary) also follows this conception. Grammalecte is based on Lightproof: in their grammar rules it uses Hunspell and the installed French Hunspell dictionary for morphological analysis, also it has native Options menu in LibreOffice (see http://www.dicollecte.org/grammalecte/documentation.php).
It seems, Microsoft has also problems with their grammar checker:
"It would be possible to 'dial up the sensitivity' of the Word grammar checker to catch more errors, the company said. However, that could also cause it to flag sentences considered correct in colloquial usage.
That would risk making the tool more intrusive than people want, the company said. In fact, Microsoft dialed down the sensitivity of the grammar checker in certain respects starting in 2002, responding to customer feedback." See http://www.seattlepi.com/business/217802_grammar28.asp
Have you heard about Gramadoir?
It's an open source grammar checking engine developed by Kevin Scannel:
I haven't tried it but it seems to be usable and well documented.
Kevin Scannel is also involved in the irish translation of LibreOffice.
There is an effort to integrate it on OpenOffice:
Hope that helps.
Is planned grammar checker in LibreOffice 3.4?
This sounds like an enhancement... so I will mark it as such.
Is it possible add this grammar checker extensions (based on LightProof) to LibreOffice 3.5?
Lightproof grammar checker for Russian
Grammalecte grammar checker for French
Lightproof grammar checker for Hungarian
Created attachment 54135 [details]
Sentence checking patch for English dictionary extension
These patches add non-intrusive sentence/grammar checking to the
English and Hungarian dictionary extensions based on the Lightproof
Python environment, see the attached test file/documentation.
It uses LibreOffice resources (Hunspell spell checker, Calc functions
etc.) for complex tasks: dictionary lookup, morphological analysis or
optional measurement conversion.
Recent English dictionaries of LibreOffice have contained only partial
part-of-speech and morphological data, yet, but extending the
dictionary, we will be able to add more complex grammar rules, too
(like the Hungarian and French Lightproof based extensions).
Created attachment 54136 [details]
Hungarian sentence checking patch for the Hungarian dictionary extension
Created attachment 54137 [details]
Test file and documentation for the sentence checking patches
Created attachment 54138 [details]
Documentation for the sentence checking patches (PDF)
Short description about the Lightproof integration with the dictionary extensions (it is not an automatic process yet):
1. Copy dialog/* and pythonpath/* directories and Lightproof.py, Linguistic.xcu of your Lightproof extension to the dictionaries/your_language/ directory of LibreOffice.
2. Extend COMPONENT_FILES variable of makefile.mk with these new files.
3. Extend manifest.xml with the following elements:
4. Change extension ID of dialog/OptionsDialog.xcu to the ID of the dictionary extension (see in description.xml):
this is integrated into master now I believe.
Can you give me an English grammar error which LightProof should be able to detect ?
oops, I see there's a sample attachment here of stuff it can detect. Yup that one works.
I grammar checking in the Linux version actually included? Having had a look at the manual here (http://www.numbertext.org/lightproof/sentencecheck.pdf), I could not get it working. As far as I understood, a functioning LightProof grammar checker depends on the existence of the right dictionary "English spelling and hyphenation dictionaries and thesaurus 2011.12.05". This extension seems to be not coming with the Ubuntu PPA. At least in my extension manager it is missing and I could not find it anywhere on the internet.
Is my assumption right that the Lightproof grammar checker is missing on Linux?
(In reply to comment #21)
Parts of the English dictionary extension are separated in different Ubuntu packages, but it seems, platform-independent grammar checking component of the original LibreOffice dictionary extension hasn't been supported in Ubuntu, yet.
Debian has got a single grammar checker package here: http://packages.debian.org/sid/libreoffice-lightproof-en, perhaps it works with Ubuntu, too. (If not, try this oxt LibreOffice extension: http://numbertext.org/tmp/lightproof_en-0.4.2.oxt)