Is there a built-in method in Ruby to support this?
How about Linguistics? Its not built in though. If you want built in , you have to set it up using hashes etc.. See here also for examples