added isNoun and nouns method implementation