n-gram runner