slop-chop-wasm 0.39.2 → 0.41.0
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/engine/slop-chop.wasm +0 -0
- package/index.js +2 -1
- package/package.json +1 -1
package/engine/slop-chop.wasm
CHANGED
|
Binary file
|
package/index.js
CHANGED
|
@@ -69,7 +69,8 @@ async function chop(text, opts = {}) {
|
|
|
69
69
|
return res;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
// score rates text from 0
|
|
72
|
+
// score rates text from 0 to 100 by how densely it carries the profile's patterns, using
|
|
73
|
+
// the same options as chop. It is a lint result, not a reading on who wrote the text.
|
|
73
74
|
async function score(text, opts = {}) {
|
|
74
75
|
const res = await chop(text, opts);
|
|
75
76
|
return res.score.value;
|