refactoring class resolution to the Keyword class
adding spec for classify keyword