[needs-packaging] [Upstream] LanguageTool, a grammar checker for LibreOffice

Bug #114375 reported by Dorota Kattowitz on 2007-05-13
This bug affects 19 people
Affects Status Importance Assigned to Milestone
Fix Released
Declined for Maverick by Sebastien Bacher
libreoffice (Debian)

Bug Description

Binary package hint: libreoffice

Although LibreOffice still has not come up with a built-in grammar checker, the grammar checker LanguageTool - 1.3.1, which is already available as an openoffice-plugin


is now quite mature and it already has a relative stable LibreOffice integration interface.

I believe we should immediately package LanguageTool and enter it to at least the universal section of the Gutsy repository, or preferably the main section and be installed by default whenever LibreOffice is installed, so that people can check their grammar *immediately*. This would place both Ubuntu and LibreOffice itself well ahead.

Changed in openoffice.org:
importance: Undecided → Wishlist
Changed in openoffice.org:
status: New → Confirmed
Changed in easyubuntu:
status: New → Invalid

I changed original the description to reflect new URL of the project.

Java 5.0 is a requirement, and as such, should be a dependency. Can th eoriginal reporter (Dorota) or anyone else in the notification list check which exact packages should this one depend on, as a result of the Java 5 requirement ?

description: updated
Changed in openoffice.org:
assignee: nobody → magicfab
status: Confirmed → Incomplete
Suco (sucotronic) wrote :

Language tool is now in version 0.9.2. It would be a great idea to integrate it with ubuntu an openoffice.

Chris Cheney (ccheney) on 2008-06-12
Changed in openoffice.org:
status: Incomplete → New
Chris Cheney (ccheney) on 2008-07-24
Changed in openoffice.org:
status: New → Triaged
Fabián Rodríguez (magicfab) wrote :

Satrting with Intrepid, Language tool would require the OpenJDK 6.

Changed in openoffice.org:
assignee: magicfab → nobody
Chris Cheney (ccheney) on 2009-01-06
Changed in openoffice.org:
importance: Wishlist → Undecided
status: Triaged → New
Changed in openoffice.org-dictionaries:
importance: Undecided → Wishlist

OpenOffice.org 3.1 has an even better support of LanguageTool http://www.openoffice.org/dev_docs/features/3.1/index.html#r2.3 it would be excellent to take the opportunity of packaging it and make this package depend on openoffice.org (or specific language-support packages)

Chris Cheney (ccheney) on 2009-06-05
affects: openoffice.org-dictionaries (Ubuntu) → openoffice.org (Ubuntu)
Changed in openoffice.org (Ubuntu):
assignee: nobody → Chris Cheney (ccheney)
milestone: none → ubuntu-9.10-beta
status: New → Triaged
Indian Art (goldfish-aol) wrote :

Hi Guys,
I second that. This would be so useful. Can help some of us avoid embarrassing grammatical mistakes.


Chris Cheney (ccheney) on 2009-09-21
Changed in openoffice.org (Ubuntu):
assignee: Chris Cheney (ccheney) → nobody
milestone: ubuntu-9.10-beta → none
Pander (pander) wrote :

Update 2009-11-01: Released version 1.0.0. Changes include:

    * Support for Danish, Catalan, and Galician
    * Rule and dictionary fixes for Dutch, French, Italian, Polish, Spanish, Swedish, and Russian
    * More rules for Dutch, Polish, Russian, Spanish, Slovenian, and English
    * Several bug fixes

Please package this version.

Pander (pander) wrote :

Please, make LanguageTool.jar directly available by the installation process of this package. Language Tool can be used as a stand alone application as can be seen here:
The OXT fie from OpenOffice needs to be unzipped somewhere in order to offer this. Perhaps /usr/share/languagetool would be a proper location. Note that deinstalling or upgrading the OXT will have to be reflected in the unzipped version.

Also /usr/bin or /usr/sbin should offer a shell script called languagetool that will call
  java -jar /usr/share/languagetool/LanguageTool.jar
with all arguments provieded to the shell script.

Makeing the JAR available in the proposed way will allow users to access the functionality directly from the command line. This will offer LanguageTool functionality also outside of OpenOffice.

Rune Philosof (olberd) wrote :

LanguageTool will probably make its way into Debian.

Indian Art (goldfish-aol) wrote :

LanguageTool 1.0.0 works very well with OpenOffice 3.2 on Ubuntu 9.10

Packaging of LanguageTool is necessary. I'm really surprised that LanguageTool still not installed automatically in Ubuntu.

tags: added: maverick
usr_share (usrshare) wrote :

LanguageTool is a very important piece of software, it really should be included into Ubuntu's repositories.

darkshvein (darkshvein) wrote :

Strongest reqiured for russian dirting-paper mans!

Pander (pander) on 2010-10-22
tags: added: natty
Pander (pander) wrote :

On 2010-09-26 version 1.1 has been released. Please package this more than three year old bug according to proposed in comment number 8 so it will be available in OpenOffice and on the command-line too.

Pander (pander) wrote :

Keep in mind that a XUL Add-on like http://sourceforge.net/projects/thb-gramchecker/ should also be able to easily use languagetool's local installation.

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?

Mark Shuttleworth say the LibreOffice will be in the Ubuntu 11.04 instead of Go-oo.

Then maybe discuss with LibreOffice developers about creating grammar checking in the LibreOffice? (Not as a separate plugin, like a LanguageTool.)

Post your ideas about it here: https://bugs.freedesktop.org/show_bug.cgi?id=31059

languagetool is provided in beta2

Since 3.3 Beta 2 LanguageTool integrated in LibreOffice. Then we can just wait for Natty release.

Pander (pander) wrote :

Will this also allow users to call language tool from the command line to run on text or source files?

Can Mozilla add-ons for grammar checking also call this functionality as explained above?

Can one upgrade language tool easily or will it be locked into the releases of LibreOffice?

A flexible system for upgrading and direct (command line) calling is preferred and I would like to suggest decoupling. What are your thoughts on this?

Then It's should be reassigned from openoffice.org to ubuntu, lika a typical needs-packaging bug.

If LibreOffice already include LanguageTool and LibreOffice will be part of Natty, then it's not openoffice.org bug anymore, right?

Pander (pander) wrote :

But LibreOffice should be able to use a newer version of Language Tool installed via a package. So it would involve both Ubuntu and LibreOffice. Can representative from both parties have a look at this and come up with a solution?

I'd prefer: For both spelling and grammar on Linux, Open/LibreOffice should use what is offered via packages on the system, so both spelling and grammar can upgrade and be used independently of Open/LibreOffice.

We should prolly file the "Encourage LanguageTool to be in C++ or python, not Java" bug though :-)

Fabián Rodríguez (magicfab) wrote :

When installing LibreOffice from the PPA it will remove OpenOffice.org (at least currently). Also please note LanguageTool will not be in LibreOffice, this was a mistake and has been reverted. See: https://bugs.freedesktop.org/show_bug.cgi?id=32377

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.

Changed in openoffice.org (Ubuntu):
status: Triaged → Invalid
summary: - [needs-packaging] LanguageTool, a grammar checker for OpenOffice.org
+ [needs-packaging] LanguageTool, a grammar checker for LibreOffice
description: updated
Changed in libreoffice:
importance: Unknown → Medium
status: Unknown → Confirmed

Any progress?
Is planned grammar checker in LibreOffice 3.4?

This sounds like an enhancement... so I will mark it as such.

Changed in libreoffice:
importance: Medium → Wishlist

Remarking openoffice.org as Triaged, undoing the Invalid by RussianNeuroMancer as no justification was given.

affects: libreoffice → df-libreoffice
Changed in openoffice.org (Ubuntu):
status: Invalid → Triaged
Changed in libreoffice (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
summary: - [needs-packaging] LanguageTool, a grammar checker for LibreOffice
+ [needs-packaging] [Upstream] LanguageTool, a grammar checker for
+ LibreOffice
tags: added: lo33
Pander (pander) wrote :

Thanks for the recent activity and connecting it to Libre Office.make sure that LanguageTool gets packaged as languagetool, separate from Libre Office so it can be upgraded independantly. And what is said in comment #8 about also unzipping the plugin for possible command line usage.

Changed in libreoffice (Debian):
status: Unknown → Fix Committed
Changed in openoffice.org (Ubuntu):
status: Triaged → Won't Fix

[This is an automated message.]
There are no new official OpenOffice.org releases in Ubuntu packaging anymore => Won't Fix

If the problem persists, please mark this bug as "also affects project Libreoffice" or "also affects distribution Libreoffice (Ubuntu)" if that has not happened already.

Please leave references to upstream OpenOffice.org bugs in place to allow cross pollination.

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
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
Hungarian sentence checking patch for the Hungarian dictionary extension

Created attachment 54137
Test file and documentation for the sentence checking patches

Created attachment 54138
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:

    <manifest:file-entry manifest:full-path="dialog/OptionsDialog.xcs"
                manifest:media-type="application/vnd.sun.star.configuration-schema" />
        <manifest:file-entry manifest:full-path="dialog/OptionsDialog.xcu"
                manifest:media-type="application/vnd.sun.star.configuration-data" />
        <manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=Python"
                manifest:full-path="Linguistic.xcu" />

4. Change extension ID of dialog/OptionsDialog.xcu to the ID of the dictionary extension (see in description.xml):

<prop oor:name="Id">

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.

Changed in libreoffice (Ubuntu):
status: Triaged → Fix Released
papukaija (papukaija) wrote :

Please set the LO task back to triaged as the plugin isn't included in Ubuntu's LO, is not available in the repositories nor is integrated into LO (or it doesn't work). However, the current upstream LO is shipped with Lightproof, not LanguageTool. Please see bug 980991 for lightproof's packaging for Ubuntu.

papukaija (papukaija) wrote :

A proper status for LO might be won't fix as the plugin would be packaged separately.

tags: removed: maverick migrateoootolo natty

> A proper status for LO might be won't fix as the plugin would be packaged separately.
You are right.

Changed in baltix:
status: New → Invalid

RussianNeuroMancer, please do not toggle the status of this bug without providing a comment justifying the status change.

Changed in libreoffice (Ubuntu):
status: Fix Released → Triaged

Christopher, please look at #27 and @28 comments.

russianneuromancer: Still not "Fix released" in "libreoffice (ubuntu)" as clearly the libreoffice package of ubuntu does not yet include LanguageTool. This needs to be filed against Ubuntu as it is an independant package.

affects: libreoffice (Ubuntu) → ubuntu
Changed in ubuntu:
assignee: nobody → Björn Michaelsen (bjoern-michaelsen)
milestone: none → ubuntu-12.10

> However, the current upstream LO is shipped with Lightproof, not LanguageTool.

Yes, but LanguageTool is more advanced than LightProof. LanguageTool supports far more languages.
So creating an Ubuntu package for LanguageTool would be good.

OpenSuse packages LanguageTool:

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?

Changed in df-libreoffice:
status: Confirmed → Fix Released

(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)

This bug is marked as duplicate of bug #980991 but they are not duplicates:

Bug #980991 is about LightProof in LibreOffice
Bug #114375 is about packaging LanguageTool grammar checker

LanguageTool and LightProof are two completely different grammar checkers.
LanguageTool supports far more languages and detect more errors.
LanguageTool can also be used standalone without LibreOffice.
LanguageTool is written in Java. LightProof is written in Python.

Pander (pander) wrote :

Indeed, these are two different grammar checking engines. LightProof will support using the rules of LanguageTool but these have to be converted and shipped with LightProof. It should be up to the user which one or both to use.

Changed in ubuntu:
milestone: ubuntu-12.10 → none
Changed in libreoffice (Debian):
status: Fix Committed → New
Adolfo Jayme (fitojb) on 2014-05-04
no longer affects: openoffice.org (Ubuntu)
Changed in ubuntu:
assignee: Björn Michaelsen (bjoern-michaelsen) → nobody
Pander (pander) on 2017-12-12
tags: added: artful
Pander (pander) on 2018-03-20
tags: added: bionic
Pander (pander) on 2018-05-06
tags: added: cosmic
removed: artful
Pander (pander) on 2018-10-31
tags: added: disco
removed: bionic cosmic
Pander (pander) on 2020-06-23
tags: added: groovy
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.