OptionaladdInserts thousands separators into the numeric output (e.g., 350000 -> "350,000").
OptionalautoAutomatically converts Arabic characters to Persian characters before parsing.
- Default: false
OptionalautoAutomatically converts Arabic and Persian digits to English digits before parsing.
- Default: false
OptionaldigitsConverts the numeric result to a particular digit style:
- "en" for English digits (e.g., "1234")
- "fa" for Persian digits (e.g., "۱۲۳۴")
- "ar" for Arabic digits (e.g., "١٢٣٤")
OptionalfuzzyEnables fuzzy Persian typo fixer before parsing. If true, the input text
will pass through fuzzy(...).
false
Configuration for
wordsToNumber.