···1010 highScoreWeighted: number;
1111}
1212export interface ComparisonStrategyResultObject {
1313+ /**
1414+ * The normalized (0 to 100) score of this comparison
1515+ * */
1316 score: number;
1717+ /**
1818+ * The raw value returned by the comparison (not normalized)
1919+ * */
2020+ rawScore?: number;
1421 [key: string]: any;
1522}
1623export interface ComparisonStrategyResult extends ComparisonStrategyResultObject {
···3037 * */
3138 strategy: StrategyFunc;
3239 /**
3333- * An optional function that accepts to string arguments and returns whether this strategy should be used
4040+ * An optional function that accepts two string arguments and returns whether this strategy should be used
3441 * */
3542 isValid?: (strA: string, strB: string) => boolean;
3643}
···11{
22 "name": "@foxxmd/string-sameness",
33- "version": "0.1.2",
33+ "version": "0.1.3",
44 "description": "determine how closely the same two strings are",
55 "repository": "https://github.com/foxxmd/string-sameness",
66 "author": "FoxxMD",
+8-1
src/atomic.ts
···1212}
13131414export interface ComparisonStrategyResultObject {
1515+ /**
1616+ * The normalized (0 to 100) score of this comparison
1717+ * */
1518 score: number
1919+ /**
2020+ * The raw value returned by the comparison (not normalized)
2121+ * */
2222+ rawScore?: number
16231724 [key: string]: any
1825}
···4148 strategy: StrategyFunc
42494350 /**
4444- * An optional function that accepts to string arguments and returns whether this strategy should be used
5151+ * An optional function that accepts two string arguments and returns whether this strategy should be used
4552 * */
4653 isValid?: (strA: string, strB: string) => boolean
4754}