Text this: Design and implementation of a level detector