# Text and generic answers

> How EduBase checks typed text answers, ignoring case, punctuation, accents and leading articles, and when to use the exact-match generic type instead.

**Text** and **generic** questions ask the participant to type a short answer. A text answer is compared loosely, so small differences in writing do not cost points; a generic answer must match exactly. For longer answers that a person scores, use [free text](https://help.edubase.net/questions/types-open/).

## How a text answer is compared

Before comparing the participant's answer with the correct ones, EduBase normalizes both:

| Ignored | Example: these count as the same |
|---|---|
| Upper and lower case | `Paris`, `paris` |
| Punctuation `,` `;` `.` `!` `?` | `Paris.`, `Paris` |
| Extra spaces and line breaks | `New  York`, `New York` |
| Accents | `café`, `cafe` |
| A leading article in the question's language: *a*, *an*, *the* in English; *a*, *az*, *egy* in Hungarian | `the mitochondria`, `mitochondria` |

Everything else must match one of the correct answers. Enter every spelling you accept as a separate correct answer, for example `colour` and `color`.

## Generic: exact match

A generic answer is compared as typed: "Exact match is required", and spaces and punctuation count. Use it for codes, identifiers, formulas written as text, or answers where punctuation matters, such as `H2O` versus `H₂O` or a part number.

## Several answers in one question

When a question has more than one correct answer, these settings decide how they are entered and scored:

| Setting | Effect |
|---|---|
| **Expected answers** | All answers required for full points, any one answer enough, or a set number. |
| Order | **Answer order does not matter** (default) or **Answer order does matter**. |
| **Labeled answers, in order** | A label shown at each answer field, such as "Capital:" and "Population:". |
| **Indefinite** | Hide how many answers you expect: **Set number of answer fields**, or **Any number of answers can be given**. |

## Fill-in-the-gap tasks

Put `[[...]]` in the question text where a word is missing, one for each answer: `The capital of France is [[...]] and of Italy is [[...]].` The correct answers are entered in order.

## Code answers

**Answer format → Code** shows the answer field as code with syntax highlighting in the chosen language, for programming tasks. The comparison rules of the type still apply.

## Limits

- Text answers are compared up to 255 characters; longer answers belong in free text questions.
- Text questions accept only the answers you list; there is no fuzzy matching of typos.

## Related

- [Question types at a glance](https://help.edubase.net/questions/types/)
- [Essay, file upload and reading tasks](https://help.edubase.net/questions/types-open/)
- [Tolerance, partial credit, penalties, rubrics and skills](https://help.edubase.net/questions/scoring/)
