Tests and examples for comparing words.
Refactored the comparison code to use one method for all four comparisons.