Exempt words that end in ly but are not adverbs

I noticed that "family" was listed as an adverb, and assumed it was because it ended in "-ly". This adds many words that end in "-ly" that are not adverbs, and exempts them from being listed as adverbs.

The JavaScript structure may not be great, so let me know how I should refactor if that's the case.