highConfidenceDigitLookalikes top-level constant
Letters that are high-confidence digit lookalikes — safe to convert to digits even with only one digit-dominant neighbor.
Implementation
const Set<String> highConfidenceDigitLookalikes = {
'O', 'o', // → 0
'I', 'i', 'l', 'L', // -> 1
'S', 's', // → 5
'Z', 'z', // → 2
};