UNPKG
double-metaphone
Version:
latest (2.0.1)
2.0.1
2.0.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.1
Double Metaphone algorithm
words.github.io/double-metaphone/
words/double-metaphone
double-metaphone
/
index.d.ts
8 lines
(7 loc)
•
211 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
/** * Get the phonetics according to the Double Metaphone algorithm from a value. * *
@param
{
string
}
value
*
@returns
{
[string, string]
} */
export
function
doubleMetaphone
(
value
:
string
): [
string
,
string
]