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

# Phone

> Phone element parameters in the FlexiLayout language: MinDigitsCount, Prefixes, Separators, AddCodeDelimiters, and quality penalties for number search.

The **Phone** element supports the following parameters in the FlexiLayout language.

## Phone parameters

| Parameter                                    | Description                                                                                                                                                                                                                                                                                                                |
| -------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Void MinDigitsCount( Int )`                 | Sets the minimum number of digits in the phone number. See the [**Phone** dialog box](/flexi-capture/fls/template/phone), **Minimum number of digits** property.                                                                                                                                                           |
| `Void MaxDigitsCount( Int )`                 | Sets the maximum number of digits in the phone number. See the [**Phone** dialog box](/flexi-capture/fls/template/phone), **Maximum number of digits** property.                                                                                                                                                           |
| `Void Prefixes( String )`                    | Sets the possible phone prefixes. Prefixes must be separated by commas. Commas may be followed by spaces. See the [**Phone** dialog box](/flexi-capture/fls/template/phone), **Prefixes for phone numbers** property.                                                                                                      |
| `Void PrefixOmissionQuality( Real )`         | Sets the penalty for a missing phone prefix. See the [**Phone** dialog box](/flexi-capture/fls/template/phone), **Missing prefix penalty** property.                                                                                                                                                                       |
| `Void Separators( String )`                  | Sets the symbols used to separate digits in the phone number. See the [**Phone** dialog box](/flexi-capture/fls/template/phone), **Possible digit separators** property.                                                                                                                                                   |
| `Void AddCodeDelimiters( String, String )`   | Sets the opening and closing brackets for the city code. The parameters of the function are one-character strings. The first parameter is an opening bracket, and the second parameter is a closing bracket. See the [**Phone** dialog box](/flexi-capture/fls/template/phone), **Area code/city code brackets** property. |
| `Void PossibleDigitQuality( Real )`          | Sets the penalty for each missing or wrong character in the phone number. The default value is `0.97`.                                                                                                                                                                                                                     |
| `Void UniformDigitStringQuality( Real )`     | Sets the penalty for a phone number which consists of only digits evenly distributed on the image. Used to distinguish telephone numbers from other sequences of digits, such as zip codes and account numbers. The default value is `0.97`.                                                                               |
| `Void MaxXOutsidePart( Real )`               | Specifies the part of the character that may extend beyond the search area horizontally. The part of the character is specified by a number from `0` to `1`. Characters that have the specified or smaller part outside the search area are included in the hypothesis.                                                    |
| `Void MaxYOutsidePart( Real )`               | Specifies the part of the character that may extend beyond the search area vertically. The part of the character is specified by a number from `0` to `1`. Characters that have the specified or smaller part outside the search area are included in the hypothesis.                                                      |
| `Void MaxRelativeGapInLine( Real )`          | The maximum distance between neighboring characters expressed as a percentage of the line height.                                                                                                                                                                                                                          |
| `Void AllowedTextRotations( TextRotations )` | Specifies a set of orientations of the recognized text in which an element search is allowed.                                                                                                                                                                                                                              |

Example for `Prefixes`:

```text theme={null}
Prefixes: "tel, tel., phone";
```

Example for `Separators`:

```text theme={null}
Separators: "-/";
```

Example for `AddCodeDelimiters`:

```text theme={null}
AddCodeDelimiters: "{", "}";
```
