Forked from http://github.com/matthewp/text