replace tokens in a token stream
find most frequent token variant and print mappings
better documentation string