- compare sentences with patterns, using majority
- cleaned code