Skip to main content
Updated in 4.58 Cognigy helps you clean up user input (text or voice) with built-in functions. For example, if a user says alpha tango hotel double seven three nine minus L for London and C for Canada, it can automatically be converted to ath 7739 - lc. These Text Cleaner functions support the English (en) and German (de) locales and are available in: To learn more about the benefits of using Text Cleaner functions and how they work, watch this video:

Functions

Rules for resolvePhoneticCounters

This function is designed to convert phrases like โ€œ3 times 2โ€ into their numeric representation, such as โ€œ3 times 2โ€ to โ€œ222โ€ or โ€œdouble 4โ€ to โ€œ44.โ€ The function handles sentences that include both a multiplier (for example, โ€œ3 timesโ€ or โ€œdoubleโ€) and a multiplicand (for example, โ€œ2โ€ or โ€œ4โ€). The multiplicand can be either a number or a character. Some examples can be ambiguous. For instance, consider the phrase โ€œdouble ap 3 4โ€, which could be interpreted as either โ€œaap34โ€ or โ€œapap34.โ€ To avoid this ambiguity, Cognigy defined the following rules for multiplicand types:
Last modified on September 3, 2026