Hi folks,
Here is a brief summary of what I've been working on the last three
months as part of Google Summer of Code 2007. My proposal was to
develop an API to work with different grammar checkers and integrate
it to Abiword. As Dom announced, I've reached an enchant-like API for
dealing with grammar checkers, named accidence. It currently handles
three backends as plugins:
- Link grammar: I've just moved the wrap from abiword plugin. It only
provides the start and end positions of the mistake in the sentence.
- Cogroo: a Portuguese grammar checker. Provides start and end
positions and a explanation for the mistake found; it also provides
suggestions for some of the mistakes.
- LanguageTool: works for Dutch, English, French, German and Polish
(it also supports checking for other languages, but with less rules).
Provides explanation and suggestions for the mistakes found.
The code has been checked in the svn repository. It still has some
issues like lack of documentation(both on files and code) and limited
portability(it only works on Linux). Soc is over but I'm still working
on it and I'll keep updating. I intend to add a Windows port and some
more doc soon. I also have to do more extensive tests.
The other goal of the project was to integrate the API in Abiword and
provide the same resources available for spell checking:
- interactive checking: called from a menu item for grammar checking.
Open up a GUI and displays the context of the mistake, explanation
and, possibly, suggestions. Allows the user to replace the mistake for
a suggestion(or an inserted text) or ignore it.
- background checking: enabled in the preferences tab. Same mechanisms
as in abigrammar plugin, but accessing the checkers through accidence
inside Abiword code. Marks the mistakes with the grammar squiggle. (I
also thought about adding event handling on the mistakes, to display
suggestions and allow changes).
I started working on those but I would like to ask for
opinions/suggestions. The first thing is about what the GUI for
grammar checking should look like. I've made a draft of it(included in
the message) that I've been using on tests and would appreciate some
opinions on the layout.
Cheers,
Gabriel Bakiewicz
2007/8/10, Dominic Lachowicz <domlachowicz@gmail.com>:
> Hi all,
>
> I'd like you to meet Gabriel. He's my Summer of Code student working
> on a flexible grammar checking API + AbiWord plugin.
>
> Today he reached a milestone - the initial import of an enchant-like
> library for grammar checking. Right now, it has link-grammar and
> CoGroo backends, which means that it can handle at least English and
> Portuguese.
>
> svn co svn+ssh://USERNAME@svn.abisource.com/svnroot/accidence/trunk accidence/
>
> Congrats, Gabriel, and keep up the great work!
>
> Cheers,
> Dom
> --
> Counting bodies like sheep to the rhythm of the war drums.
>
This archive was generated by hypermail 2.1.8 : Wed Sep 05 2007 - 04:42:31 CEST