• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

NaturalNode / natural / 40188291853
87%

Build:
DEFAULT BRANCH: master
Ran 25 Oct 2026 11:20AM UTC
Jobs 1
Files 241
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Oct 2026 11:18AM UTC coverage: 87.172% (-0.02%) from 87.195%
40188291853

push

github

web-flow
fix: do not look up TfIdf terms on the prototype of documents and cache (#785)

* fix: do not look up TfIdf terms on the prototype of documents and cache

Terms that match a property of Object, such as "constructor", were looked
up on the prototype chain. TfIdf.tf returned the Object function for a
document that lacks the term, so tfidf() returned NaN, and the IDF cache
created by the constructor and addFileSync was a plain object, so idf()
returned the Object function for instances created from deserialized data
or filled with addFileSync.

Use own property lookups for the term frequency and use a cache without a
prototype in the constructor and in addFileSync, like addDocument does.

* chore: trigger CI

* chore: trigger CI

2397 of 3110 branches covered (77.07%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 1 file covered. (100.0%)

8 existing lines in 2 files now uncovered.

9087 of 10064 relevant lines covered (90.29%)

12761.56 hits per line

Coverage Regressions

Lines Coverage ∆ File
7
93.01
-5.78% dist/cjs/spec/tfidf_spec.js
1
63.53
-0.75% lib/natural/brill_pos_tagger/lib/Brill_POS_Trainer.js
Jobs
ID Job ID Ran Files Coverage
1 40188291853.1 25 Oct 2026 11:20AM UTC 241
87.17
GitHub Action Run
Source Files on build 40188291853
  • Tree
  • List 241
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #40188291853
  • 54fd8f79 on github
  • Prev Build on master (#40187609104)
  • Next Build on master (#40188924530)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc