moos / wordpos

Part-of-speech utilities for node.js based on the WordNet database.
478 stars 41 forks source link

Numbers recognized as adjectives #13

Closed 26medias closed 7 years ago

26medias commented 8 years ago
wordpos.isAdjective("17", function(bool) {
    console.log(bool); // true
});
wordpos.isAdjective("two", function(bool) {
    console.log(bool); // true
});

Why are numbers recognized as adjectives?

A lot of verbs are also classified as adjectives.

moos commented 8 years ago

Because they are. That's how the underlying WordNet database works.

You can filter them out yourself before looking up.