modest natural-language processing
This report summarizes scanner evidence for spencermountain/compromise, a JavaScript project with 12,169 GitHub stars. SynthScan examined 138,052 lines of code across 1328 source files, recording 126 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 2.0 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 109 finding(s).
Are imports declared and package/API names verified? 13 finding(s).
Are wrappers, guards, and repeated structures necessary? 4 finding(s).
Which changes need focused human review? 126 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 126 distinct pattern matches across 8 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL⚡ | builds/compromise.js | 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| CRITICAL | src/3-three/verbs/api/conjugate/inflect.js | 5 | return root.methods.two.transform.verb.toInfinitive(root.text(format), root.model, getTense(root)) | CODE |
| CRITICAL | src/3-three/verbs/api/conjugate/inflect.js | 11 | const forms = root.methods.two.transform.verb.conjugate(word, root.model) | CODE |
| CRITICAL⚡ | src/2-two/preTagger/compute/root.js | 11 | return world.methods.two.transform.noun.toSingular(str, world.model) | CODE |
| CRITICAL⚡ | src/2-two/preTagger/compute/root.js | 20 | return world.methods.two.transform.verb.toInfinitive(str, world.model, 'PastTense') | CODE |
| CRITICAL⚡ | src/2-two/preTagger/compute/root.js | 25 | return world.methods.two.transform.verb.toInfinitive(str, world.model, 'Gerund') | CODE |
| CRITICAL⚡ | src/2-two/preTagger/compute/root.js | 33 | return world.methods.two.transform.verb.toInfinitive(str, world.model, 'PresentTense') | CODE |
| CRITICAL⚡ | src/2-two/preTagger/compute/root.js | 38 | return world.methods.two.transform.adjective.fromComparative(str, world.model) | CODE |
| CRITICAL⚡ | src/2-two/preTagger/compute/root.js | 43 | return world.methods.two.transform.adjective.fromSuperlative(str, world.model) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugins/dates/scratch.js | 1 | /* eslint-disable no-console, no-unused-vars */ | COMMENT |
| LOW | plugins/dates/scratch.js | 21 | COMMENT | |
| LOW | plugins/dates/scratch.js | 41 | // txt = 'sept 2008 to oct 2008' | COMMENT |
| LOW | plugins/dates/scratch.js | 61 | const found = doc.dates(context).json() | COMMENT |
| LOW | …ins/dates/tests/context/weekday-interpretation.test.js | 21 | t.equal(fmt(found.dates.start), a[1], 'monday-start') | COMMENT |
| LOW | …ins/dates/tests/context/weekday-interpretation.test.js | 41 | // t.equal(fmt(found.date.end), a[1], 'last-monday-end') | COMMENT |
| LOW | plugins/dates/tests/corpus/chronic.test.js | 121 | ['2006-08-20 15:30.30', mk(2006, 8, 20, 15, 30, 30), 'iso-short'], | COMMENT |
| LOW | plugins/dates/tests/corpus/chronic.test.js | 201 | // ['friday 11 in the evening', mk(2006, 8, 18, 23)], | COMMENT |
| LOW | plugins/dates/tests/corpus/chronic.test.js | 221 | ['tomorrow', mk(2006, 8, 17, 12)], | COMMENT |
| LOW | plugins/dates/tests/corpus/chronic.test.js | 241 | // ['next secs', mk(2006, 8, 16, 14, 0, 1)], | COMMENT |
| LOW | plugins/dates/tests/corpus/chronic.test.js | 261 | // ['this day 1800', mk(2006, 8, 16, 18)], | COMMENT |
| LOW | plugins/dates/tests/corpus/chronic.test.js | 281 | // ['2 weekends ago', mk(2006, 8, 5), 'ago'], | COMMENT |
| LOW | plugins/dates/tests/corpus/chronic.test.js | 301 | ['25 minutes and 20 seconds from now', mk(2006, 8, 16, 14, 25, 20), 'from now'], | COMMENT |
| LOW | plugins/dates/tests/corpus/chronic.test.js | 321 | // ['last spring', mk(2006, 3, 20),'year'], | COMMENT |
| LOW | plugins/dates/tests/corpus/chronic.test.js | 341 | // ['next q1', mk(2007, 1, 1),'q1'], | COMMENT |
| LOW | plugins/dates/tests/durations/extraction.test.js | 81 | // ['12 years and 2 months', '12 years and 2 months'], | COMMENT |
| LOW | plugins/dates/tests/api/format.test.js | 1 | import test from 'tape' | COMMENT |
| LOW | plugins/dates/tests/api/format.test.js | 21 | // r2 = nlp('Thurs, feb 2nd, 2016') | COMMENT |
| LOW | plugins/dates/tests/parsing/weekdays.test.js | 61 | // ['tues this week', [2011, march, 29]], | COMMENT |
| LOW | plugins/dates/tests/parsing/weekdays.test.js | 101 | // ['this friday', [2016, february, 12]], //not today | COMMENT |
| LOW | plugins/dates/tests/parsing/calendar-periods.test.js | 421 | // ['this summer', 'june 1st 2017 to August 31 2017'], | COMMENT |
| LOW | plugins/dates/src/compute/matches.js | 41 | //March or June | COMMENT |
| LOW | plugins/dates/src/compute/matches.js | 281 | // any-wednesday | COMMENT |
| LOW | plugins/_experiments/markdown/src/parse/uuid.js | 41 | //don't overflow index | COMMENT |
| LOW | plugins/_experiments/sentiment/test.js | 141 | console.log("It's not really very good.", nlp("It's not really very good.").sentiment(false, true)); | COMMENT |
| LOW | plugins/_experiments/sentiment/test.js | 161 | // { | COMMENT |
| LOW | plugins/_experiments/sentiment/test.js | 181 | // -0.75, | COMMENT |
| LOW | plugins/_experiments/sentiment/test.js | 201 | // ], | COMMENT |
| LOW | plugins/_experiments/sentiment/src/plugin.js | 21 | COMMENT | |
| LOW | plugins/_experiments/sentiment/src/plugin.js | 41 | //console.log('emojisOnlyArr: ', emojisOnlyArr); | COMMENT |
| LOW | plugins/_experiments/sentiment/src/plugin.js | 81 | if (addSummary === true) { returnObj.summary = summaryArr; } | COMMENT |
| LOW | plugins/_experiments/sentiment/src/plugin.js | 101 | const subjectivityValArr = []; | COMMENT |
| LOW | plugins/_experiments/sentiment/src/plugin.js | 121 | // from pattern_en object | COMMENT |
| LOW | plugins/stats/scratch.js | 21 | // let doc = nlp(txt) | COMMENT |
| LOW | tests/02-two/misc/verb-noun-ambiguity.test.js | 1 | import test from 'tape' | COMMENT |
| LOW | tests/02-two/preTagger/gerund.test.js | 81 | [`accelerating his returns`, `#Gerund his #Plural`], | COMMENT |
| LOW | …s/02-two/output/spec-prepositions-conjunctions.test.js | 1 | import test from 'tape' | COMMENT |
| LOW | tests/02-two/contraction-two/contraction.test.js | 161 | COMMENT | |
| LOW | tests/lib/tag-match-cases.js | 201 | COMMENT | |
| LOW | tests/03-three/numbers/prefix.test.js | 21 | COMMENT | |
| LOW | tests/03-three/match/three-match-examples.test.js | 1 | import test from 'tape' | COMMENT |
| LOW | tests/03-three/sentences/tense.test.js | 41 | // 'Capital punishment, also known as the death penalty, was the state-sanctioned killing of a person as punishmen | COMMENT |
| LOW | tests/03-three/sentences/tense.test.js | 61 | // `A shoehorn or shoe horn was a tool with a short handle that flared into a longer spoon-like head`, | COMMENT |
| LOW | tests/03-three/sentences/tense.test.js | 81 | // `A Bank was a financial institution that accepted deposits from the public and created a demand deposit while s | COMMENT |
| LOW | tests/03-three/verbs/verbs-to-past.test.js | 221 | ["he shops for groceries", "he shopped for groceries"] | COMMENT |
| LOW | tests/03-three/verbs/verbs-to-past.test.js | 241 | // ["is enjoying the summer vacation", "enjoyed the summer vacation"], | COMMENT |
| LOW | tests/03-three/verbs/verbs-to-past.test.js | 261 | // ["is feeding the birds", "fed the birds"], | COMMENT |
| LOW | tests/03-three/verbs/to-infinitive.test.js | 341 | // ["stoned", "stone"], | COMMENT |
| LOW | tests/03-three/verbs/to-infinitive.test.js | 421 | ['named', 'name'], | COMMENT |
| LOW | tests/03-three/verbs/to-infinitive.test.js | 441 | // ["has been thinking about changing careers", `To have been thinking about changing careers`], | COMMENT |
| LOW | tests/03-three/verbs/to-infinitive.test.js | 461 | // ["would have been upset if you didn't show up", `To have been upset if you didn't show up`], | COMMENT |
| LOW | tests/03-three/verbs/verbs-to-present.test.js | 201 | // ["will be going to the concert tonight", `Goes to the concert`], | COMMENT |
| LOW | tests/03-three/verbs/verbs-to-present.test.js | 221 | // ["can't wait to see the new movie", `Can't wait to see the new movie`], | COMMENT |
| LOW | tests/03-three/verbs/verbs-to-present.test.js | 241 | // ["could have been living a lie", `Lives a lie`], | COMMENT |
| LOW | tests/03-three/coreference/tricky-coref.test.js | 1 | import test from 'tape' | COMMENT |
| LOW | tests/03-three/coreference/tricky-coref.test.js | 21 | // [ | COMMENT |
| LOW | tests/03-three/coreference/tricky-coref.test.js | 41 | // "Then the magician went back and told to the Sultan his story.", | COMMENT |
| LOW | tests/03-three/coreference/tricky-coref.test.js | 61 | // ], | COMMENT |
| LOW | tests/03-three/coreference/tricky-coref.test.js | 81 | // [ | COMMENT |
| LOW | tests/03-three/coreference/tricky-coref.test.js | 101 | // [ | COMMENT |
| 39 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/_hmm/switches/noun-verb.hmm.js | 1482 | # harness | COMMENT |
| MEDIUM | tests/03-three/coreference/tricky-coref.test.js | 223 | // "She emphasized the important activities undertaken by non-governmental organizations active in women's rights and | COMMENT |
| MEDIUM | tests/03-three/coreference/tricky-coref.test.js | 258 | // "the leverage of Brussels over new member states increases rather than diminishes after they join.", | COMMENT |
| MEDIUM⚡ | builds/compromise.js | 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | plugins/dates/builds/compromise-dates.min.js | 1 | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define | CODE |
| MEDIUM | plugins/dates/builds/compromise-dates.min.js | 1 | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define | CODE |
| MEDIUM⚡ | builds/compromise.js | 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| MEDIUM⚡ | builds/compromise.js | 1 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/API/debug/debug.js | 39 | print(removed, '−', red) | CODE |
| HIGH | src/API/debug/debug.js | 40 | print(added, '+', green) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/2-two/preTagger/model/clues/adj-past.js | 31 | // being watched; it intoxicated him; as requested | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugins/dates/tests/parsing/phrases.test.js | 17 | [`don't forget to remind me about returning the library books`, `return`, `library book`, ``], | CODE |
| LOW | plugins/dates/tests/parsing/phrases.test.js | 122 | [`don't forget to buy headphones before the flight`, `buy`, `headphone`, ``], | CODE |
| LOW | tests/02-two/postTagger/auxiliary-context.test.js | 50 | Don't forget to clean. {Aux,Negative,Inf,Connector,Inf} | CODE |
| LOW | tests/lib/tag-match-cases.js | 749 | [`don't forget to clean`, `#Verb not #Imperative to #Imperative`], | CODE |
| LOW | src/2-two/postTagger/model/index.js | 1006 | // don't forget to [clean] → Imperative | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | plugins/dates/tests/tagger/false-positive.test.js | 132 | '555-1212', | CODE |
| LOW | tests/02-two/tag/representative-text.test.js | 17 | ['123 Main Street', 'Address|NumericValue Address Address'], | CODE |