Skip to content

Commit

Permalink
Remove value field from Keyphrase
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 7, 2023
1 parent 4eca42c commit f396535
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
* Score of phrase, for one match.
* @property {Array<string>} stems
* Stems of phrase.
* @property {string} value
* Phrase.
* @property {number} weight
* Score of phrase, for all matches.
*
Expand Down Expand Up @@ -311,7 +309,6 @@ function getKeyphrases(results, maximum) {
matches: [match],
score,
stems,
value: phrase.value,
weight: score
}
}
Expand Down
2 changes: 0 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ Info on a key phrase (TypeScript type).
— score of phrase, for one match
* `stems` (`Array<string>`)
— stems of phrase
* `value` (`string`)
— joined stems
* `weight` (`number`)
— score of phrase, for all matches

Expand Down
1 change: 0 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ test('retext-keywords', async function (t) {
matches: [],
score: 1,
stems: ['terminolog', 'extract'],
value: 'terminolog extract',
weight: 11
}
)
Expand Down

0 comments on commit f396535

Please sign in to comment.