Gathering detailed insights and metrics for textlint-rule-sentence-length
Gathering detailed insights and metrics for textlint-rule-sentence-length
Gathering detailed insights and metrics for textlint-rule-sentence-length
Gathering detailed insights and metrics for textlint-rule-sentence-length
sentence-splitter
split {japanese, english} text into sentences.
textlint-rule-no-doubled-conjunction
textlint rule plugin to check duplicated conjunctions.
textlint-rule-max-comma
textlint rule that limit maxinum comma(,) count of sentence.
textlint-rule-no-doubled-conjunctive-particle-ga
textlint rule plugin to check duplicated conjunctive particle `ga` in a sentence.
npm install textlint-rule-sentence-length
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
7 Stars
87 Commits
3 Forks
4 Watching
2 Branches
4 Contributors
Updated on 14 Aug 2024
Minified
Minified + Gzipped
TypeScript (99.76%)
Shell (0.24%)
Cumulative downloads
Total Downloads
Last day
10.3%
7,056
Compared to previous day
Last week
2.2%
32,669
Compared to previous week
Last month
13.5%
139,445
Compared to previous month
Last year
27.7%
1,266,736
Compared to previous year
textlint rule that limit Maximum Length of Sentence.
npm install textlint-rule-sentence-length
Add "sentence-length" to your .textlintrc
.
{
"rules": {
"sentence-length": true
}
}
max
skipPatterns
: string[]
skipUrlStringLink
: boolean
true
true
, skip url string link node like <https:example.com>
or [https://example.com](https://example.com)
countBy
: "codeunits" | "codepoints"
"codeunits"
{
"rules": {
"sentence-length": {
"max": 100
}
}
}
Uncount (...)
from A sentence(...).
{
"rules": {
"sentence-length": {
"max": 100,
"skipPatterns": [
"/\\(.*\\)$\\./"
]
}
}
}
This rule use sentence-splitter as library. So the definition of "Sentence" is the same as sentence-splitter.
For example, the following text is 3 sentences.
We are talking about pens.
He said "This is a pen. I like it".
I could relate to that statement.
Second line includes "..."
, but this rule treat second line as a single sentence.
If you want to ignore "..."
, you can use skipPatterns
option.
{
"rules": {
"sentence-length": {
"max": 100,
"skipPatterns": [
"/\".*?\"/"
]
}
}
}
skipUrlStringLink
)OK:
> LONG LONG LONG LONG LONG LONG LONG LONG Quote text. But it is quote text.
a single link node ↓
[textlint/textlint-filter-rule-comments: textlint filter rule that disables all rules between comments directive.](https://github.com/textlint/textlint-filter-rule-comments)
Very long https://example.com?longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong url.
NG:
This sentence includes one link and two Str.
This is [textlint/textlint-filter-rule-comments: textlint filter rule that disables all rules between comments directive.](https://github.com/textlint/textlint-filter-rule-comments).
See Other rules
npm test
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
17 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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