> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gladecore.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pro: Grammar Presets

Constrain the LLM’s output format at decode time - no regex needed.

To enable and adjust **grammar preset** settings, go to: `UNPCPersonalityData → Pro Features | Grammar` .

<Frame>
  <img src="https://mintcdn.com/gladestudio/qwYEsF58yYnJb1lf/images/unreal/UE_GrammarPresets.png?fit=max&auto=format&n=qwYEsF58yYnJb1lf&q=85&s=d4aa62c612a3397dedb000b445d43aa6" alt="UE Grammar Presets" width="1316" height="220" data-path="images/unreal/UE_GrammarPresets.png" />
</Frame>

### **Settings**

* **Enable Grammar (Pro)** - Master toggle
* **Grammar Preset** (Dropdown)
  * **None** - Disabled
  * **Dialogue – NPC (no markdown)** - Blocks \*, #, >, bullets, tables. *Recommended default*
  * **Short Sentence** - Exactly one sentence
  * **Yes or No** - Output is strictly “yes” or “no”
  * **Emotion-Tagged Dialogue** -\
    Output starts with: emotion: \<word> + dialogue\
    (Word restricted to 8 states; parse first line for animation)
  * **JSON Object** - Output must be valid JSON
  * **Custom (raw GBNF)** - Define your own grammar
* **Custom Grammar (GBNF)**\
  Only visible when **Custom** is selected
* **Grammar First**\
  Off by default (faster). Enable only if every token must strictly match from position 1.

### **Runtime Override (Blueprint)**

<Frame>
  <img src="https://mintcdn.com/gladestudio/qwYEsF58yYnJb1lf/images/unreal/UE_GrammarBlueprintSet.png?fit=max&auto=format&n=qwYEsF58yYnJb1lf&q=85&s=b9db1698c6ce7b2be54430809f2b7bc6" alt="UE Grammar Blueprint Set" width="920" height="572" data-path="images/unreal/UE_GrammarBlueprintSet.png" />
</Frame>
