Phonetic algorithms for blocking and comparison transforms. These functions compute phonetic encodings that group similar-sounding names together. They are useful for blocking rules that tolerate spelling variation.
Details
When used as a transform argument in il_block_on(), block_on(),
or il_compare(), the computation is pushed into SQL so data is
never materialized into R.
SQL availability
| Function | DuckDB | SQLite |
il_soundex | yes (macro) | comparisons only (R-side) |
il_metaphone | no | no |
il_dmetaphone | no | no |
SQLite does not expose a way to register scalar R functions as SQL UDFs, so phonetic transforms cannot be used in blocking rules on SQLite. They continue to work in comparisons on SQLite via the R-side gamma computation path.
