Few language trigram utility functions