A Chinese Word Segmentation(中文分词) routine in pure Ruby