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

# Is Informal Tone

> Detects whether the tone is informal or casual (e.g., use of slang, contractions, emoji)

<CodeGroup>
  ```python Python theme={null}
  result = evaluator.evaluate(
      eval_templates="is_informal_tone",
      inputs={
          "output": "Dear Sir, I hope this email finds you well. I look forward to any insights or advice you might have whenever you have a free moment"
      },
      model_name="turing_flash"
  )

  print(result.eval_results[0].output)
  print(result.eval_results[0].reason)
  ```

  ```typescript JS/TS theme={null}
  import { Evaluator, Templates } from "@future-agi/ai-evaluation";

  const evaluator = new Evaluator();

  const result = await evaluator.evaluate(
    "is_informal_tone",
    {
      output: "Dear Sir, I hope this email finds you well. I look forward to any insights or advice you might have whenever you have a free moment"
    },
    {
      modelName: "turing_flash",
    }
  );

  console.log(result);
  ```
</CodeGroup>

| **Input** |                    |          |                                                 |
| --------- | ------------------ | -------- | ----------------------------------------------- |
|           | **Required Input** | **Type** | **Description**                                 |
|           | `output`           | `string` | The text content to evaluate for informal tone. |

| **Output** |            |                                                                                       |
| ---------- | ---------- | ------------------------------------------------------------------------------------- |
|            | **Field**  | **Description**                                                                       |
|            | **Result** | Returns Passed if informal tone is detected, or Failed if formal tone is detected.    |
|            | **Reason** | Provides a detailed explanation of why the text was classified as formal or informal. |

***

### What to do If you get Undesired Informal Tone

If the content is detected as having an informal tone but formality is required:

* Replace contractions with full forms (e.g., "don't" to "do not")
* Remove slang, colloquialisms, and emoji
* Use more professional terminology and phrasing
* Maintain a consistent, professional tone throughout the content
* Avoid first-person perspective where appropriate

If the content is detected as formal but informality is desired:

* Incorporate appropriate contractions
* Use more conversational language
* Include relatable examples or analogies
* Consider using first-person perspective when appropriate

***

### Comparing Is Informal Tone with Similar Evals

* [**Tone**](/future-agi/get-started/evaluation/builtin-evals/tone): While Is Informal Tone specifically identifies casual language elements, Tone evaluation assesses the broader emotional context and sentiment.
* [**Clinically Inappropriate Tone**](/future-agi/get-started/evaluation/builtin-evals/clinically-inappropriate-tone): Is Informal Tone detects casual language usage, whereas Clinically Inappropriate Tone focuses on language that would be unsuitable in healthcare contexts.
