# Type String

* string&#x20;
* integer
* float
* bool
* date
* id
* array / object

Les types string est un paramètre permettant d'ajouter des chaines de textes il est le plus souvent accompagné de paramètres de personnalisation.

> Par défaut il retourne un texte en latin type loren ipsum

Pour générer un champs id sur un dataset cela prend toujours la même forme

```yaml
// Exemple de champs générés


- fieldName: text random 
    type : string
    rules:
        allowedValues : ["téléphone", "table", "ordinateur"] 
   
- fieldName: température 
    type : float
    rules:
        range:
            min: 0
            max: 45
...
      
 
```

## Distribution

Il est possible de répartir la présence des champs dans string dans le dataset. Le champs allowedValues liste les valeurs à ajouter dans ma variable et distribution leur présence.&#x20;

```yaml
- fieldName : qualitative_test_repartion
    type : string
    distribution : [0.2, 0.5, 0.3]
    rules: 
      allowedValues : ["python","C++","java"]
 # python = 20% , C++ =  50% et java = 30%
```

{% hint style="info" %}
pour plus d'information sur la distribution / répartition [cliquer sur le lien](/dataset-generation-doc/pattern/repartition-distribution.md)
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dataset-generation-doc.gitbook.io/dataset-generation-doc/type-string.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
