string guesser takes processed grammar