A DEVICE AND METHOD FOR GENERATING LANGUAGE
A device comprising a selection module for use in generating a natural language output based on a computer readable input, the selection module comprising: a classifier module, where the classifier module is trained such that when executed alongside a language generation logic the classifier module executes the steps of: receiving, one of one or more candidate words of a probability distribution and a current state of a decoder in a recurrent decoding process of the language generation logic; evaluating, based on the current state of the decoder, the received candidate word to determine if the word is likely to lead to a grammatically correct output; assigning a numerical value indicative of a level of grammatical correctness to the received candidate word; and outputting the assigned numerical value.