Discovering subword associations in strings in time linear in the output size.