# Telephone number synthesis options

For Phone Number values, you can choose whether to generate a realistic phone number. If you do, then the generated values can be consistent with values generated in Structural.

<figure><img src="/files/mDhbLW62n7bP4DcU4ch9" alt=""><figcaption><p>Synthesis options for telephone number values</p></figcaption></figure>

## Selecting the generator type <a href="#phone-synthesis-generator-type" id="phone-synthesis-generator-type"></a>

From the **Phone number generator type** dropdown list:

* To replace each phone number with a randomly generated number, select **Random Number**.
* To generate a realistic telephone number, select **US Phone Number**.\
  \
  The **US Phone Number** option generates values similar to those generated by the [Phone generator in Structural](/app/generation/generators/generator-reference/phone.md).

If you also configured a Textual statistics seed that matches a Structural statistics seed, then the synthesized values are consistent with values generated in Structural. A given source telephone number produces the same output telephone number in both applications.

For example, in both Textual and Structural, 123-456-6789 might be replaced with 154-567-8901.

## Replacing invalid telephone numbers <a href="#phone-synthesis-invalid-numbers" id="phone-synthesis-invalid-numbers"></a>

The **Replace invalid numbers with valid numbers** checkbox determines how Textual handles invalid telephone numbers in the data.

To replace the invalid with valid telephone numbers, check the checkbox.

If you do not check the checkbox, then Textual randomly replaces the numeric characters.

## Preserving the area code <a href="#synthesis-phone-area-code" id="synthesis-phone-area-code"></a>

The **Preserve US area code** checkbox determines whether Textual preserves the area code for telephone numbers in the United States.

To preserve the area codes from the source values in the output values, check the checkbox.

If you do not check the checkbox, then Textual replaces the entire telephone number, including the area code.


---

# 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://docs.tonic.ai/textual/dataset-configure-redaction/textual-datasets-synthesis-options/synthesis-options-for-specific-entity-types/configure-phone-synthesis.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.
