Bopomo parser written in Ruby