Text processing API