sindresorhus / superb

Get superb like words
MIT License
393 stars 59 forks source link

Filtering out nouns? #26

Open k80w opened 8 years ago

k80w commented 8 years ago

Some of the phrases are nouns, so using superb() may generate incorrect sentences. For instance,

console.log("You're %s!", superb());
// You're bee's knees!

It'd be nice if there was some method of filtering results to just adjectives. Perhaps something like this

console.log("You're %s!", superb.adj());
// You're kickass!
sindresorhus commented 8 years ago

How many nouns are there?

sindresorhus commented 8 years ago

Actually, I think bee's knees is an adjective: https://en.wiktionary.org/wiki/the_bee%27s_knees

k80w commented 8 years ago

The bee's knees is; bees knees is not. Changing it in the dictionary to the bee's knees would still have problems, for example, the %s person could return the the bees knee's person, rather than something correct like the fabulous person

sindresorhus commented 8 years ago

From Wiktionary:

There is a new bee's knees every few minutes in New York.

No the there.

k80w commented 8 years ago

In that case, it's a noun.