Text this: Local pattern detection