luhn
Values: false (default), true, {integer list or range}
Description:
Controls whether numbers in transcription output are checked by the Luhn algorithm, which is used to validate different kinds of sensitive numbers, including credit card and personal identification numbers.
When set to
true
, the ASR engine identifies Luhn-valid numbers with 15 or 16 digits that are detected in transcripts.
The
luhn
tag also accepts a comma-separated list or hyphenated range of integers, or a combination of these integer arguments.
When set to a comma-separated list, the value specifies the exact number of digits in the numbers to be checked by the Luhn algorithm. For example, specify
luhn = 3,7,16
to identify all numbers with 3, 7, or 16 digits that pass a Luhn algorithm check.
When set to a hyphenated range, the value specifies the lower and upper bounds for the number of digits in the numbers to be checked by the Luhn algorithm. For example, specify
luhn = 8-10
to identify all numbers with 8, 9, or 10 digits that pass a Luhn algorithm check.
These integer arguments may also be used in combination. For example, specify
luhn = 8,13-16
to identify all numbers with 8, 13, 14, 15, or 16 digits that pass a Luhn check.
When a transcribed number is identified as Luhn-valid, the word-event that generated the Luhn-valid number is flagged in the
events
object contained in the JSON transcript's
utterances
array, and an occurrence is added to the count tracked by the value of
textinfo > tags > luhn
in the JSON transcript's
textinfo
object.
Luhn-valid numbers are not redacted by the
luhn
tag, and the
luhn
tag may be used independently of redaction functionality. Numbers that are redacted, but passed the Luhn check before being redacted, are still flagged with a
luhn
tag in the
utterances > events
object.