aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language/translator.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-07 20:38:40 -0500
committerGitHub <noreply@github.com>2021-03-07 20:38:40 -0500
commit643dbfb12a66b98b2fabe82416322f0218474567 (patch)
tree9746ca8eadd4c8a28d1b72c5ddcc7632feaab9d2 /ext/js/language/translator.js
parent19f6bf5a3a669cda311e5a3f162131d8a9823aef (diff)
Refactor term frequency data (#1503)
* Add getTermFrequency * Update DisplayGenerator to use getTermFrequency * Remove termFrequency from Translator data * Backwards compatibility * Update tests
Diffstat (limited to 'ext/js/language/translator.js')
-rw-r--r--ext/js/language/translator.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/js/language/translator.js b/ext/js/language/translator.js
index 5aa8ee9c..e8aba5b1 100644
--- a/ext/js/language/translator.js
+++ b/ext/js/language/translator.js
@@ -1271,13 +1271,11 @@ class Translator {
}
_createTermDetails(sourceTerm, expression, reading, termTags) {
- const termFrequency = this._scoreToTermFrequency(this._getTermTagsScoreSum(termTags));
return {
sourceTerm,
expression,
reading,
termTags,
- termFrequency,
frequencies: [],
pitches: []
};