import{EncoderOptions}from"../../type.js";const options={dedupe:!1,include:{letter:!0},finalize:function(a){for(let b=0;b<a.length;b++)a[b]=soundex(a[b])}};export default options;const codes={a:"",e:"",i:"",o:"",u:"",y:"",b:1,f:1,p:1,v:1,c:2,g:2,j:2,k:2,q:2,s:2,x:2,z:2,ß:2,d:3,t:3,l:4,m:5,n:5,r:6};function soundex(a){let b=a.charAt(0),c=codes[b];for(let d,e=1;e<a.length&&(d=a.charAt(e),!("h"!==d&&"w"!==d&&(d=codes[d],d&&d!==c&&(b+=d,c=d,4===b.length))));e++);return b}