The function only applies to nouns, as it does not return any related words for non-noun inputs.

I hope this helps! Let me know if you have any other questions.