Split classification of rare words into several classes (part 3).

Replaced word class names with variables.

Added make all and clean rules.