Is there a way to detect grammatical errors in English text using link-grammer java/javascript API

229 views
Skip to first unread message

Bhaskar Ghosh

unread,
Mar 12, 2011, 1:45:20 PM3/12/11
to link-g...@googlegroups.com
Hello All,

I need to find out what words and sentences are grammatically incorrect. Is it possible by using link-grammar's java API? If yes, request to point me to some example.
In other case, can anyone point me to some java API through which I can accomplish this??

Appreciate any help. Thanks in advance

Regards
Bhaskar

Bhaskar Ghosh

unread,
Mar 12, 2011, 1:48:20 PM3/12/11
to link-g...@googlegroups.com

Linas Vepstas

unread,
Mar 13, 2011, 9:06:48 PM3/13/11
to link-g...@googlegroups.com, Bhaskar Ghosh
On 12 March 2011 12:45, Bhaskar Ghosh <bjgi...@gmail.com> wrote:
> Hello All,
> I need to find out what words and sentences are grammatically incorrect. Is
> it possible by using link-grammar's java API? If yes, request to point me to
> some example.

Link-grammar will refuse to parse many but not all grammatically
incorrect sentences, presuming that your definition of "grammatically
correct" is standard English newspaper style.

--linas

Bhaskar Ghosh

unread,
Mar 14, 2011, 5:23:32 AM3/14/11
to linasv...@gmail.com, link-g...@googlegroups.com
Hello Linas,

Thanks for your reply. But I want to detect the percentage of grammatical errors in a text. Say, I want to get the number of sentences that have grammatical mistakes. Is this possible with link-grammar? Or is there some other tool/api, that I can use to get this feature??

Thanks again.

--
Regards
Bhaskar Ghosh
Hyderabad, India

Linas Vepstas

unread,
Mar 14, 2011, 11:02:58 AM3/14/11
to Bhaskar Ghosh, link-g...@googlegroups.com
On 14 March 2011 04:23, Bhaskar Ghosh <bjgi...@gmail.com> wrote:
> Hello Linas,
>
> Thanks for your reply. But I want to detect the percentage of grammatical
> errors in a text. Say, I want to get the number of sentences that have
> grammatical mistakes. Is this possible with link-grammar?

Yes ? I don't understand the question; can't you just count them?

--linas

Bhaskar Ghosh

unread,
Mar 14, 2011, 12:15:35 PM3/14/11
to linasv...@gmail.com, link-g...@googlegroups.com
Okay. But for that my program needs to know which all lines are grammatically incorrect! Is there a api that can give me that?

--
Regards
Bhaskar Ghosh

Linas Vepstas

unread,
Mar 14, 2011, 3:16:19 PM3/14/11
to Bhaskar Ghosh, link-g...@googlegroups.com
On 14 March 2011 11:15, Bhaskar Ghosh <bjgi...@gmail.com> wrote:
> Okay. But for that my program needs to know which all lines are
> grammatically incorrect! Is there a api that can give me that?

Yes. If the number of omitted words is greater than zero, that means
that the parser did not find a parse, i.e. the sentence is grammatically
incorrect.

--linas

Bhaskar Ghosh

unread,
Mar 14, 2011, 3:40:54 PM3/14/11
to linasv...@gmail.com, link-g...@googlegroups.com
Thank you so much Linas. This is exactly what I need. I will try this.

--
Regards
Bhaskar Ghosh
Reply all
Reply to author
Forward
0 new messages