···2020```
21212222```js
2323-import compare from '@foxxmd/string-sameness';
2323+import {stringSameness} from '@foxxmd/string-sameness';
24242525-const result = compare('This is one sentence', 'This is another sentence');
2525+const result = stringSameness('This is one sentence', 'This is another sentence');
2626console.log(result);
2727// {
2828// "scores": {
···37373838### Normalization
39394040-A third argument may be passed to `compare` to provide a list of functions to apply to the strings to compare. When not explicitly provided a default set of functions is applied to normalize the strings (to remove trivial differences):
4040+A third argument may be passed to `stringSameness` to provide a list of functions to apply to the strings to compare. When not explicitly provided a default set of functions is applied to normalize the strings (to remove trivial differences):
41414242* convert to lowercase
4343* trim (remove whitespace at beginning/end)
···4949Example of supplying your own transform functions:
50505151```js
5252-import compare, {defaultStrCompareTransformFuncs} from '@foxxmd/string-sameness';
5252+import {stringSameness, defaultStrCompareTransformFuncs} from '@foxxmd/string-sameness';
53535454const myFuncs = [
5555 ...defaultStrCompareTransformFuncs,
···5757 (str) => str.replace(/[aeiou]/ig, 'e')
5858]
59596060-const result = compare('This is one sentence', 'This is another sentence', myFuncs);
6060+const result = stringSameness('This is one sentence', 'This is another sentence', myFuncs);
6161```