StringSoup
Use a variety of string similarity functions to find the best string in a group of strings.
Example Usage
import { StringSoup } from 'stringsoup';
const stringSoup = new StringSoup([
'London',
'Washington',
'Mumbai',
'Sydney',
'Tokyo',
'Moscow',
'Neverland',
]);
const result = stringSoup.matchSoup('wshng');
const result = stringSoup.matchSoup(
'I like to visit lndon, but I live elsewhere'
);
TODO
- Add options to
sanitize
- Charset transformations
- Ignored characters
- Replaced characters
- Add options to
tokenize
- Add different distance functions