soundsLike static method

bool soundsLike(
  1. String a,
  2. String b
)

Returns true if a and b have the same Soundex code. Audited: 2026-06-12 11:26 EDT

Implementation

static bool soundsLike(String a, String b) => encode(a) == encode(b);