Phone
Locale Guess Definition
Locale guess definitions differ from other types of definitions in that they work together with corresponding locale guess definitions from other locales. They compute a score which is used to calculate the most likely locale from which the input originated.
Phone | ||
---|---|---|
Description | The Phone locale guess definition guesses the locale associated with a telephone number. | |
Example 1 | Input | Output |
204-941-4111 | ENCAN | |
8047741000 | ENUSA | |
69913201 | DEDEU | |
+1 416-340-3111 | ENCAN | |
+1 440-449-9600 x1234 | ENUSA | |
+49-223418210 app 2 | DEDEU | |
Results can vary depending on the locales installed. The table above shows the results of Phone locale guessing with the following locales installed: ENUSA, ENCAN, DEDEU. To determine the locale associated with a telephone number, the following information is considered: County calling code, area code, number of digits, extension indicator words (for example, apparat, app, extension, ext, x, and more). |
||
Example 2 | Input | Output |
51885473511 | ZHCHN | |
8047741000 | ITITA | |
1287118111 | AREGY | |
+86-51885473511 | ZHCHN | |
+39-804-774-1000 int 1234 | ITITA | |
+20-1287118111 x33 | AREGY | |
+49-223418210 app 2 | [Unknown] | |
Example 2 shows the results of Phone locale guessing with the following locales installed: AREGY, ITITA, ZHCHN. Note the results for Example 2 (804-774-1000) depend on the locale installed. In the first table above, the ENUSA locale is selected. With this set of locales installed, the ITITA locale is selected. The locale for the final example cannot be determined because the DEDEU locale is not installed. No other locale matches the format for this phone number due to the presence of the German country calling code +49. |
||
Remarks |