Use \w+ in all feature extractors which detect words, and add tests

Follow-up to 97a68a321fc79aa2874404f33870064def4871c4.

Also, update a test to reflect the fact that `\w` consider numbers as words.