Ruby script automatically separate English and Chinese