Gathering detailed insights and metrics for lunr-languages-zh
Gathering detailed insights and metrics for lunr-languages-zh
Gathering detailed insights and metrics for lunr-languages-zh
Gathering detailed insights and metrics for lunr-languages-zh
A collection of languages stemmers and stopwords for Lunr Javascript library
npm install lunr-languages-zh
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
440 Stars
170 Commits
165 Forks
18 Watchers
3 Branches
23 Contributors
Updated on Jun 23, 2025
Latest Version
1.4.0
Package Id
lunr-languages-zh@1.4.0
Unpacked Size
1.52 MB
Size
335.02 kB
File Count
94
NPM Version
7.5.4
Node Version
14.8.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
4
This project is a fork of MihaiValentin/lunr-languages, and having almost the same codebase except that I manually merge the MR by @repairearth which adds the support for Chinese.
I(darkyzhou) did this because the original project seems to be frozen for over two years without any updates at all, and the MR is stuck from being merged for over two years too.
In addition, the authors of lunr-languages and the MR seem to be hard to get in touch with, their Github profiles show that they hardly have any activities in the last 365 days.
I don't claim any responsibilities for the codebase it self, but if the fact that I publish this package is illegal or hurts someone else, please contact me to delete the project.
Unfortunately, this package cannot run on browser environment because it depends on the package nodejieba
to achieve word splitting for Chinese and the library is bound to node.js environment, furthermore, the package's size is about 5MB which is unacceptable in web environment.
I am investigating if there is another library that can offer similar functions as well as can run on browsers.
Install the package using npm i lunr-languages-zh
, then refer to the example below:
1var lunr = require('lunr'); 2// load these necessary libraries 3require('lunr-languages-zh/lunr.stemmer.support')(lunr); 4require('lunr-languages-zh/lunr.zh')(lunr); 5 6var idx = lunr(function () { 7 this.use(lunr.zh); // load the support for Chinese 8 9 this.ref('id'); 10 this.field('text'); 11 12 this.add({ 13 id: 1, 14 text: '...', 15 }); 16}); 17 18idx.search('pipe');
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 8/15 approved changesets -- score normalized to 5
Reason
5 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More