liveBook · Manning

Grammatical variation

As explained in Effective Conversational AI

A grammatical variation is a change in the grammatical form of an utterance while preserving its underlying meaning.

A chatbot can recognize “I forgot my password” yet miss “Couldn’t remember my login information” when training data repeats one sentence pattern. Grammatical variation changes an utterance’s grammatical form while preserving its underlying meaning, helping an intent handle how people actually speak. section 7.2.1 section 7.2

For a “forgot password” intent, vary the structure as well as individual words:

  • Statement: “I forgot my password.” section 7.2.1
  • Past-tense alternative: “I misplaced my password.” section 7.2.1
  • Present-tense alternative: “I cannot remember my password.” section 7.2.1
  • Question: “How can I reset my login information?” section 7.2

A practical workflow moves from contextual synonyms to complete utterances, then to grammatical variations such as questions versus statements and past tense versus present tense. Review generated examples for relevance: increased creativity can produce useful alternatives, but also awkward or unrelated phrases. section 7.2.1 section 7.2

How Effective Conversational AI covers it

How deep it goes
Demonstrates generated questions, statements, and tense changes, but stops short of implementation details.
Examples
Uses the “forgot my password” intent with synonym substitutions, verb-phrase alternatives, questions, statements, and tense changes.
What it assumes
Assumes an existing intent and basic utterance examples, while beginning synonym discovery from a known user problem.
What you can do after
Build more robust intent training data by generating and reviewing varied user utterances.
How it connects
Connects grammatical variation with intent data, synonyms, utterances, conversational AI, and generative AI.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Conversational AI. The section links point to the parts of the book it draws on.