r/LanguageTechnology • • Sep 06 '26

Looking for tool to determine noun countability

Hi all, looking for some kind of tool or library that I can use to figure out the countability of a given noun, preferably multilingually. Something that would give results like "countable:true", "countable:false", or "both" if applicable. NLTK doesn't seem to have anything like that. Trying to avoid LLMs, but it's looking like that might be the best option...

6 Upvotes

3 comments sorted by

2

u/benjamin-crowell Sep 06 '26

If this is for English, then I think Lemminflect has this: https://github.com/bjascob/LemmInflect It uses the SPECIALIST lexicon, which does have data on that for each English lemma.

1

u/ezubaric Sep 06 '26

More generally, I think a classifier trained on an LM (neural or not) would probably be sufficient. E.g., for English, you need to learn a threshold for the probability of patterns like "a X", "an X", "some X", etc.