@apiverve/textsimilarity 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/index.d.ts +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -122,8 +122,9 @@ async function makeRequest() {
|
|
|
122
122
|
"status": "ok",
|
|
123
123
|
"error": null,
|
|
124
124
|
"data": {
|
|
125
|
-
"
|
|
125
|
+
"similarity": 45.83,
|
|
126
126
|
"similarityCaseSensitive": 47.22,
|
|
127
|
+
"semanticSimilarity": 88.33,
|
|
127
128
|
"difference": {
|
|
128
129
|
"count": 7,
|
|
129
130
|
"percentage": 58.33
|
package/index.d.ts
CHANGED
|
@@ -25,8 +25,9 @@ declare module '@apiverve/textsimilarity' {
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
interface TextSimilarityData {
|
|
28
|
-
|
|
28
|
+
similarity: number | null;
|
|
29
29
|
similarityCaseSensitive: number | null;
|
|
30
|
+
semanticSimilarity: number | null;
|
|
30
31
|
difference: Difference;
|
|
31
32
|
}
|
|
32
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apiverve/textsimilarity",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Text Similarity compares two text strings and calculates their percentage match score. It returns case-insensitive and case-sensitive similarity scores plus the count and proportion of differing words.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|