Using wordnet (or a simple dictionary) to check if a noun is countable or uncountable from a Java program

I found 2 libraries in Java - JWNL and JAWS. Until now, it seems to me that these APIs are suitable for finding synsets, hyponyms, and similar things. Do you know if there is any tool to use wordnet to check if a noun is a countable / uncountable noun? I mean, do people use wordnet for this task? Else, what is this tool?

+7
source share
2 answers

If you cannot find a simple source, you might consider creating your own classifier, i.e. write your own custom function.

Factors to consider:

  • There are several English dictionaries that will designate nouns as (U) vs (C) for countless vs counter, and you can find out somewhere on the Internet.
  • You can look at the bitramas in a huge case to find out if it is used in the sense of countable or uncountable: one boy or this boy or that boy , but some food or a little bit of food , etc.
  • There are many corner cases that you should consider: I'd like some coffee vs I'd like a coffee (short for a cup of coffee). This is getting complicated.

This SO question is very important, although it does not concern your Java query. All three answers to this question are very good.

Hope this helps.

+1
source

I'm not 100% sure what you are going to do, but WolframAlpha has a developer interface you can use.

They also seem to already have a java library , although the free version seems to be limited to 2k requests (I don't know, a valid limit).

0
source

All Articles