Text this: Patterns in permutations and words