axyseo 2.0.0-alpha.0.0.35 → 2.0.0-alpha.0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/build/components/RelatedKeywordsDescription.js +0 -46
- package/build/components/RelatedKeywordsDescription.js.map +0 -1
- package/build/components/RelatedKeywordsDescription.scss +0 -34
- package/build/config/diacritics.js +0 -140
- package/build/config/diacritics.js.map +0 -1
- package/build/config/getTransliterations.js +0 -3572
- package/build/config/getTransliterations.js.map +0 -1
- package/build/config/transliterationsWPstyle.js +0 -1424
- package/build/config/transliterationsWPstyle.js.map +0 -1
- package/build/config/wordBoundaries.js +0 -26
- package/build/config/wordBoundaries.js.map +0 -1
- package/build/config/wordBoundariesWithoutPunctuation.js +0 -16
- package/build/config/wordBoundariesWithoutPunctuation.js.map +0 -1
- package/build/const/analysis.js +0 -20
- package/build/const/analysis.js.map +0 -1
- package/build/errors/invalidType.js +0 -22
- package/build/errors/invalidType.js.map +0 -1
- package/build/errors/missingArgument.js +0 -22
- package/build/errors/missingArgument.js.map +0 -1
- package/build/helpers/createMeasurementElement.js +0 -46
- package/build/helpers/createMeasurementElement.js.map +0 -1
- package/build/helpers/domManipulation.js +0 -66
- package/build/helpers/domManipulation.js.map +0 -1
- package/build/helpers/errors.js +0 -26
- package/build/helpers/errors.js.map +0 -1
- package/build/helpers/factory.js +0 -207
- package/build/helpers/factory.js.map +0 -1
- package/build/helpers/formatNumber.js +0 -18
- package/build/helpers/formatNumber.js.map +0 -1
- package/build/helpers/formatString.js +0 -38
- package/build/helpers/formatString.js.map +0 -1
- package/build/helpers/getLanguagesWithWordComplexity.js +0 -15
- package/build/helpers/getLanguagesWithWordComplexity.js.map +0 -1
- package/build/helpers/getLanguagesWithWordFormSupport.js +0 -16
- package/build/helpers/getLanguagesWithWordFormSupport.js.map +0 -1
- package/build/helpers/getWordComplexityConfig.js +0 -27
- package/build/helpers/getWordComplexityConfig.js.map +0 -1
- package/build/helpers/getWordComplexityHelper.js +0 -27
- package/build/helpers/getWordComplexityHelper.js.map +0 -1
- package/build/helpers/htmlEntities.js +0 -21
- package/build/helpers/htmlEntities.js.map +0 -1
- package/build/helpers/includesAny.js +0 -24
- package/build/helpers/includesAny.js.map +0 -1
- package/build/helpers/index.js +0 -179
- package/build/helpers/index.js.map +0 -1
- package/build/helpers/shortlinker/Shortlinker.js +0 -79
- package/build/helpers/shortlinker/Shortlinker.js.map +0 -1
- package/build/helpers/shortlinker/index.js +0 -17
- package/build/helpers/shortlinker/index.js.map +0 -1
- package/build/helpers/shortlinker/singleton.js +0 -76
- package/build/helpers/shortlinker/singleton.js.map +0 -1
- package/build/helpers/types.js +0 -37
- package/build/helpers/types.js.map +0 -1
- package/build/index.js +0 -108
- package/build/index.js.map +0 -1
- package/build/languageProcessing/AbstractResearcher.js +0 -350
- package/build/languageProcessing/AbstractResearcher.js.map +0 -1
- package/build/languageProcessing/helpers/highlighting/getMarkingsInSentence.js +0 -123
- package/build/languageProcessing/helpers/highlighting/getMarkingsInSentence.js.map +0 -1
- package/build/languageProcessing/helpers/html/getFieldsToMark.js +0 -37
- package/build/languageProcessing/helpers/html/getFieldsToMark.js.map +0 -1
- package/build/languageProcessing/helpers/html/getSubheadingTexts.js +0 -47
- package/build/languageProcessing/helpers/html/getSubheadingTexts.js.map +0 -1
- package/build/languageProcessing/helpers/html/getSubheadings.js +0 -92
- package/build/languageProcessing/helpers/html/getSubheadings.js.map +0 -1
- package/build/languageProcessing/helpers/html/html.js +0 -152
- package/build/languageProcessing/helpers/html/html.js.map +0 -1
- package/build/languageProcessing/helpers/html/htmlParser.js +0 -132
- package/build/languageProcessing/helpers/html/htmlParser.js.map +0 -1
- package/build/languageProcessing/helpers/html/matchParagraphs.js +0 -61
- package/build/languageProcessing/helpers/html/matchParagraphs.js.map +0 -1
- package/build/languageProcessing/helpers/html/normalizeHTML.js +0 -23
- package/build/languageProcessing/helpers/html/normalizeHTML.js.map +0 -1
- package/build/languageProcessing/helpers/image/getAltAttribute.js +0 -24
- package/build/languageProcessing/helpers/image/getAltAttribute.js.map +0 -1
- package/build/languageProcessing/helpers/image/getImagesInTree.js +0 -21
- package/build/languageProcessing/helpers/image/getImagesInTree.js.map +0 -1
- package/build/languageProcessing/helpers/image/imageInText.js +0 -26
- package/build/languageProcessing/helpers/image/imageInText.js.map +0 -1
- package/build/languageProcessing/helpers/index.js +0 -41
- package/build/languageProcessing/helpers/index.js.map +0 -1
- package/build/languageProcessing/helpers/language/getLanguage.js +0 -16
- package/build/languageProcessing/helpers/language/getLanguage.js.map +0 -1
- package/build/languageProcessing/helpers/link/checkNofollow.js +0 -42
- package/build/languageProcessing/helpers/link/checkNofollow.js.map +0 -1
- package/build/languageProcessing/helpers/link/getAnchorsFromText.js +0 -37
- package/build/languageProcessing/helpers/link/getAnchorsFromText.js.map +0 -1
- package/build/languageProcessing/helpers/link/getLinkType.js +0 -36
- package/build/languageProcessing/helpers/link/getLinkType.js.map +0 -1
- package/build/languageProcessing/helpers/match/findKeywordFormsInString.js +0 -101
- package/build/languageProcessing/helpers/match/findKeywordFormsInString.js.map +0 -1
- package/build/languageProcessing/helpers/match/isDoubleQuoted.js +0 -19
- package/build/languageProcessing/helpers/match/isDoubleQuoted.js.map +0 -1
- package/build/languageProcessing/helpers/match/matchTextWithArray.js +0 -41
- package/build/languageProcessing/helpers/match/matchTextWithArray.js.map +0 -1
- package/build/languageProcessing/helpers/match/matchTextWithTransliteration.js +0 -58
- package/build/languageProcessing/helpers/match/matchTextWithTransliteration.js.map +0 -1
- package/build/languageProcessing/helpers/match/matchTextWithWord.js +0 -47
- package/build/languageProcessing/helpers/match/matchTextWithWord.js.map +0 -1
- package/build/languageProcessing/helpers/match/matchWordFormsWithSentence.js +0 -162
- package/build/languageProcessing/helpers/match/matchWordFormsWithSentence.js.map +0 -1
- package/build/languageProcessing/helpers/match/processExactMatchRequest.js +0 -29
- package/build/languageProcessing/helpers/match/processExactMatchRequest.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/baseStemmer.js +0 -18
- package/build/languageProcessing/helpers/morphology/baseStemmer.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/buildFormRule.js +0 -26
- package/build/languageProcessing/helpers/morphology/buildFormRule.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/buildTopicStems.js +0 -164
- package/build/languageProcessing/helpers/morphology/buildTopicStems.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/createRulesFromArrays.js +0 -48
- package/build/languageProcessing/helpers/morphology/createRulesFromArrays.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/exceptionListHelpers.js +0 -71
- package/build/languageProcessing/helpers/morphology/exceptionListHelpers.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/findMatchingEndingInArray.js +0 -29
- package/build/languageProcessing/helpers/morphology/findMatchingEndingInArray.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/flattenSortLength.js +0 -19
- package/build/languageProcessing/helpers/morphology/flattenSortLength.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/getAllWordsFromPaper.js +0 -35
- package/build/languageProcessing/helpers/morphology/getAllWordsFromPaper.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/regexHelpers.js +0 -53
- package/build/languageProcessing/helpers/morphology/regexHelpers.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/stemHelpers.js +0 -46
- package/build/languageProcessing/helpers/morphology/stemHelpers.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/stemPrefixedFunctionWords.js +0 -39
- package/build/languageProcessing/helpers/morphology/stemPrefixedFunctionWords.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/directPrecedenceException.js +0 -42
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/directPrecedenceException.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/getClausesSplitOnStopWords.js +0 -116
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/getClausesSplitOnStopWords.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/nonDirectParticiplePrecedenceException.js +0 -45
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/nonDirectParticiplePrecedenceException.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getClauses.js +0 -220
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getClauses.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getIndicesWithRegex.js +0 -27
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getIndicesWithRegex.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/matchRegularParticiples.js +0 -28
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/matchRegularParticiples.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/precedenceException.js +0 -46
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/precedenceException.js.map +0 -1
- package/build/languageProcessing/helpers/prominentWords/determineProminentWords.js +0 -203
- package/build/languageProcessing/helpers/prominentWords/determineProminentWords.js.map +0 -1
- package/build/languageProcessing/helpers/regex/createRegexFromArray.js +0 -38
- package/build/languageProcessing/helpers/regex/createRegexFromArray.js.map +0 -1
- package/build/languageProcessing/helpers/regex/createRegexFromDoubleArray.js +0 -39
- package/build/languageProcessing/helpers/regex/createRegexFromDoubleArray.js.map +0 -1
- package/build/languageProcessing/helpers/regex/createWordRegex.js +0 -34
- package/build/languageProcessing/helpers/regex/createWordRegex.js.map +0 -1
- package/build/languageProcessing/helpers/regex/matchStringWithRegex.js +0 -24
- package/build/languageProcessing/helpers/regex/matchStringWithRegex.js.map +0 -1
- package/build/languageProcessing/helpers/regex/searchAndReplaceWithOneRegex.js +0 -21
- package/build/languageProcessing/helpers/regex/searchAndReplaceWithOneRegex.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/doubleQuotes.js +0 -19
- package/build/languageProcessing/helpers/sanitize/doubleQuotes.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/filterShortcodesFromTree.js +0 -131
- package/build/languageProcessing/helpers/sanitize/filterShortcodesFromTree.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/mergeListItems.js +0 -30
- package/build/languageProcessing/helpers/sanitize/mergeListItems.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/parseSynonyms.js +0 -24
- package/build/languageProcessing/helpers/sanitize/parseSynonyms.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/quotes.js +0 -47
- package/build/languageProcessing/helpers/sanitize/quotes.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/removeEmailAddresses.js +0 -19
- package/build/languageProcessing/helpers/sanitize/removeEmailAddresses.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/removePunctuation.js +0 -64
- package/build/languageProcessing/helpers/sanitize/removePunctuation.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/removePunctuationExceptQuotes.js +0 -24
- package/build/languageProcessing/helpers/sanitize/removePunctuationExceptQuotes.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/removeSentenceTerminators.js +0 -20
- package/build/languageProcessing/helpers/sanitize/removeSentenceTerminators.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/removeURLs.js +0 -19
- package/build/languageProcessing/helpers/sanitize/removeURLs.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/sanitizeLineBreakTag.js +0 -18
- package/build/languageProcessing/helpers/sanitize/sanitizeLineBreakTag.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/sanitizeString.js +0 -23
- package/build/languageProcessing/helpers/sanitize/sanitizeString.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/stripHTMLTags.js +0 -59
- package/build/languageProcessing/helpers/sanitize/stripHTMLTags.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/stripNonTextTags.js +0 -22
- package/build/languageProcessing/helpers/sanitize/stripNonTextTags.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/stripNumbers.js +0 -26
- package/build/languageProcessing/helpers/sanitize/stripNumbers.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/stripSpaces.js +0 -29
- package/build/languageProcessing/helpers/sanitize/stripSpaces.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/stripWordBoundaries.js +0 -65
- package/build/languageProcessing/helpers/sanitize/stripWordBoundaries.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/unifyWhitespace.js +0 -64
- package/build/languageProcessing/helpers/sanitize/unifyWhitespace.js.map +0 -1
- package/build/languageProcessing/helpers/sentence/SentenceTokenizer.js +0 -565
- package/build/languageProcessing/helpers/sentence/SentenceTokenizer.js.map +0 -1
- package/build/languageProcessing/helpers/sentence/countSentences.js +0 -27
- package/build/languageProcessing/helpers/sentence/countSentences.js.map +0 -1
- package/build/languageProcessing/helpers/sentence/getSentences.js +0 -71
- package/build/languageProcessing/helpers/sentence/getSentences.js.map +0 -1
- package/build/languageProcessing/helpers/sentence/getSentencesFromTree.js +0 -60
- package/build/languageProcessing/helpers/sentence/getSentencesFromTree.js.map +0 -1
- package/build/languageProcessing/helpers/sentence/memoizedSentenceTokenizer.js +0 -37
- package/build/languageProcessing/helpers/sentence/memoizedSentenceTokenizer.js.map +0 -1
- package/build/languageProcessing/helpers/sentence/sentencesLength.js +0 -37
- package/build/languageProcessing/helpers/sentence/sentencesLength.js.map +0 -1
- package/build/languageProcessing/helpers/syllables/DeviationFragment.js +0 -108
- package/build/languageProcessing/helpers/syllables/DeviationFragment.js.map +0 -1
- package/build/languageProcessing/helpers/syllables/countSyllables.js +0 -173
- package/build/languageProcessing/helpers/syllables/countSyllables.js.map +0 -1
- package/build/languageProcessing/helpers/syllables/syllableCountIterator.js +0 -63
- package/build/languageProcessing/helpers/syllables/syllableCountIterator.js.map +0 -1
- package/build/languageProcessing/helpers/syllables/syllableCountStep.js +0 -75
- package/build/languageProcessing/helpers/syllables/syllableCountStep.js.map +0 -1
- package/build/languageProcessing/helpers/transform/transformWordsWithHyphens.js +0 -24
- package/build/languageProcessing/helpers/transform/transformWordsWithHyphens.js.map +0 -1
- package/build/languageProcessing/helpers/transliterate/replaceDiacritics.js +0 -25
- package/build/languageProcessing/helpers/transliterate/replaceDiacritics.js.map +0 -1
- package/build/languageProcessing/helpers/transliterate/specialCharacterMappings.js +0 -194
- package/build/languageProcessing/helpers/transliterate/specialCharacterMappings.js.map +0 -1
- package/build/languageProcessing/helpers/transliterate/transliterate.js +0 -24
- package/build/languageProcessing/helpers/transliterate/transliterate.js.map +0 -1
- package/build/languageProcessing/helpers/transliterate/transliterateWPstyle.js +0 -25
- package/build/languageProcessing/helpers/transliterate/transliterateWPstyle.js.map +0 -1
- package/build/languageProcessing/helpers/url/parseSlug.js +0 -17
- package/build/languageProcessing/helpers/url/parseSlug.js.map +0 -1
- package/build/languageProcessing/helpers/url/url.js +0 -174
- package/build/languageProcessing/helpers/url/url.js.map +0 -1
- package/build/languageProcessing/helpers/word/addWordboundary.js +0 -41
- package/build/languageProcessing/helpers/word/addWordboundary.js.map +0 -1
- package/build/languageProcessing/helpers/word/areWordsInSentence.js +0 -23
- package/build/languageProcessing/helpers/word/areWordsInSentence.js.map +0 -1
- package/build/languageProcessing/helpers/word/countMetaDescriptionLength.js +0 -24
- package/build/languageProcessing/helpers/word/countMetaDescriptionLength.js.map +0 -1
- package/build/languageProcessing/helpers/word/countWords.js +0 -21
- package/build/languageProcessing/helpers/word/countWords.js.map +0 -1
- package/build/languageProcessing/helpers/word/createPunctuationTokens.js +0 -46
- package/build/languageProcessing/helpers/word/createPunctuationTokens.js.map +0 -1
- package/build/languageProcessing/helpers/word/filterWordsFromArray.js +0 -21
- package/build/languageProcessing/helpers/word/filterWordsFromArray.js.map +0 -1
- package/build/languageProcessing/helpers/word/followsIndex.js +0 -29
- package/build/languageProcessing/helpers/word/followsIndex.js.map +0 -1
- package/build/languageProcessing/helpers/word/getAllWordsFromTree.js +0 -30
- package/build/languageProcessing/helpers/word/getAllWordsFromTree.js.map +0 -1
- package/build/languageProcessing/helpers/word/getWords.js +0 -47
- package/build/languageProcessing/helpers/word/getWords.js.map +0 -1
- package/build/languageProcessing/helpers/word/includesIndex.js +0 -34
- package/build/languageProcessing/helpers/word/includesIndex.js.map +0 -1
- package/build/languageProcessing/helpers/word/indices.js +0 -141
- package/build/languageProcessing/helpers/word/indices.js.map +0 -1
- package/build/languageProcessing/helpers/word/markWordsInSentences.js +0 -189
- package/build/languageProcessing/helpers/word/markWordsInSentences.js.map +0 -1
- package/build/languageProcessing/helpers/word/matchWordInSentence.js +0 -63
- package/build/languageProcessing/helpers/word/matchWordInSentence.js.map +0 -1
- package/build/languageProcessing/helpers/word/splitIntoTokens.js +0 -52
- package/build/languageProcessing/helpers/word/splitIntoTokens.js.map +0 -1
- package/build/languageProcessing/index.js +0 -283
- package/build/languageProcessing/index.js.map +0 -1
- package/build/languageProcessing/languages/_default/Researcher.js +0 -43
- package/build/languageProcessing/languages/_default/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/_default/helpers/getStemmer.js +0 -20
- package/build/languageProcessing/languages/_default/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/ar/Researcher.js +0 -54
- package/build/languageProcessing/languages/ar/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/ar/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/ar/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/ar/config/functionWords.js +0 -80
- package/build/languageProcessing/languages/ar/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/ar/config/internal/passiveVerbsWithLongVowel.js +0 -13
- package/build/languageProcessing/languages/ar/config/internal/passiveVerbsWithLongVowel.js.map +0 -1
- package/build/languageProcessing/languages/ar/config/prefixedFunctionWords.js +0 -11
- package/build/languageProcessing/languages/ar/config/prefixedFunctionWords.js.map +0 -1
- package/build/languageProcessing/languages/ar/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/ar/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ar/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/ar/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ar/helpers/createBasicWordForms.js +0 -38
- package/build/languageProcessing/languages/ar/helpers/createBasicWordForms.js.map +0 -1
- package/build/languageProcessing/languages/ar/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/ar/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/ar/helpers/internal/stem.js +0 -635
- package/build/languageProcessing/languages/ar/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/ar/helpers/isPassiveSentence.js +0 -41
- package/build/languageProcessing/languages/ar/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/ca/Researcher.js +0 -52
- package/build/languageProcessing/languages/ca/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/ca/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/ca/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/ca/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/ca/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ca/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/ca/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ca/helpers/getStemmer.js +0 -20
- package/build/languageProcessing/languages/ca/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/cs/Researcher.js +0 -52
- package/build/languageProcessing/languages/cs/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/cs/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/functionWords.js +0 -50
- package/build/languageProcessing/languages/cs/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceAuxiliaries.js +0 -10
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceEndings.js +0 -14
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceEndings.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/cs/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/cs/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/cs/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/cs/helpers/getClauses.js +0 -35
- package/build/languageProcessing/languages/cs/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/cs/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/cs/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/cs/helpers/internal/getParticiples.js +0 -24
- package/build/languageProcessing/languages/cs/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/cs/helpers/internal/stem.js +0 -341
- package/build/languageProcessing/languages/cs/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/cs/values/Clause.js +0 -45
- package/build/languageProcessing/languages/cs/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/de/Researcher.js +0 -61
- package/build/languageProcessing/languages/de/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/de/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/de/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/de/config/functionWords.js +0 -103
- package/build/languageProcessing/languages/de/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/de/config/internal/exceptionsParticiplesActive.js +0 -13
- package/build/languageProcessing/languages/de/config/internal/exceptionsParticiplesActive.js.map +0 -1
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceAuxiliaries.js +0 -29
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceIrregulars.js +0 -15
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceIrregulars.js.map +0 -1
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceRegex.js +0 -78
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceRegex.js.map +0 -1
- package/build/languageProcessing/languages/de/config/keyphraseLength.js +0 -17
- package/build/languageProcessing/languages/de/config/keyphraseLength.js.map +0 -1
- package/build/languageProcessing/languages/de/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/de/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/de/config/syllables.json +0 -460
- package/build/languageProcessing/languages/de/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/de/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/de/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/de/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/de/config/wordComplexity.js +0 -11
- package/build/languageProcessing/languages/de/config/wordComplexity.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/de/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsComplex.js +0 -47
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsComplex.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsFunction.js +0 -20
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsFunction.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/getClauses.js +0 -34
- package/build/languageProcessing/languages/de/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/de/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/internal/SentenceTokenizer.js +0 -38
- package/build/languageProcessing/languages/de/helpers/internal/SentenceTokenizer.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/internal/detectAndStemRegularParticiple.js +0 -118
- package/build/languageProcessing/languages/de/helpers/internal/detectAndStemRegularParticiple.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/internal/determineStem.js +0 -113
- package/build/languageProcessing/languages/de/helpers/internal/determineStem.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/internal/getParticiples.js +0 -39
- package/build/languageProcessing/languages/de/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/internal/stem.js +0 -222
- package/build/languageProcessing/languages/de/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/memoizedSentenceTokenizer.js +0 -37
- package/build/languageProcessing/languages/de/helpers/memoizedSentenceTokenizer.js.map +0 -1
- package/build/languageProcessing/languages/de/values/Clause.js +0 -91
- package/build/languageProcessing/languages/de/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/el/Researcher.js +0 -55
- package/build/languageProcessing/languages/el/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/el/config/firstWordExceptions.js +0 -33
- package/build/languageProcessing/languages/el/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/el/config/functionWords.js +0 -47
- package/build/languageProcessing/languages/el/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/el/config/internal/auxiliaries.js +0 -12
- package/build/languageProcessing/languages/el/config/internal/auxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/el/config/internal/morphologicalPassiveSuffixes.js +0 -8
- package/build/languageProcessing/languages/el/config/internal/morphologicalPassiveSuffixes.js.map +0 -1
- package/build/languageProcessing/languages/el/config/internal/nonPassiveVerbStems.js +0 -22
- package/build/languageProcessing/languages/el/config/internal/nonPassiveVerbStems.js.map +0 -1
- package/build/languageProcessing/languages/el/config/stopWords.js +0 -13
- package/build/languageProcessing/languages/el/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/el/config/transitionWords.js +0 -18
- package/build/languageProcessing/languages/el/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/el/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/el/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/el/helpers/getClauses.js +0 -34
- package/build/languageProcessing/languages/el/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/el/helpers/getStemmer.js +0 -29
- package/build/languageProcessing/languages/el/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/el/helpers/internal/getParticiples.js +0 -24
- package/build/languageProcessing/languages/el/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/el/helpers/internal/stem.js +0 -347
- package/build/languageProcessing/languages/el/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/el/helpers/isPassiveSentence.js +0 -43
- package/build/languageProcessing/languages/el/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/el/values/Clause.js +0 -46
- package/build/languageProcessing/languages/el/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/en/Researcher.js +0 -55
- package/build/languageProcessing/languages/en/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/en/config/abbreviations.js +0 -16
- package/build/languageProcessing/languages/en/config/abbreviations.js.map +0 -1
- package/build/languageProcessing/languages/en/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/en/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/en/config/functionWords.js +0 -110
- package/build/languageProcessing/languages/en/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceAuxiliaries.js +0 -15
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceIrregulars.js +0 -15
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceIrregulars.js.map +0 -1
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceNonVerbEndingEd.js +0 -13
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceNonVerbEndingEd.js.map +0 -1
- package/build/languageProcessing/languages/en/config/regularParticiplesRegex.js +0 -12
- package/build/languageProcessing/languages/en/config/regularParticiplesRegex.js.map +0 -1
- package/build/languageProcessing/languages/en/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/en/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/en/config/syllables.json +0 -86
- package/build/languageProcessing/languages/en/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/en/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/en/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/en/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/en/config/wordComplexity.js +0 -12
- package/build/languageProcessing/languages/en/config/wordComplexity.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js +0 -49
- package/build/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/getClauses.js +0 -58
- package/build/languageProcessing/languages/en/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/en/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/internal/determineStem.js +0 -161
- package/build/languageProcessing/languages/en/helpers/internal/determineStem.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js +0 -149
- package/build/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/internal/getParticiples.js +0 -33
- package/build/languageProcessing/languages/en/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/internal/getVerbStem.js +0 -228
- package/build/languageProcessing/languages/en/helpers/internal/getVerbStem.js.map +0 -1
- package/build/languageProcessing/languages/en/values/Clause.js +0 -68
- package/build/languageProcessing/languages/en/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/es/Researcher.js +0 -57
- package/build/languageProcessing/languages/es/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/es/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/es/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/es/config/functionWords.js +0 -111
- package/build/languageProcessing/languages/es/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceAuxiliaries.js +0 -12
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceParticiples.js +0 -13
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceParticiples.js.map +0 -1
- package/build/languageProcessing/languages/es/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/es/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/es/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/es/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/es/config/syllables.json +0 -176
- package/build/languageProcessing/languages/es/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/es/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/es/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/es/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/es/config/wordComplexity.js +0 -11
- package/build/languageProcessing/languages/es/config/wordComplexity.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/es/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/checkIfWordIsComplex.js +0 -59
- package/build/languageProcessing/languages/es/helpers/checkIfWordIsComplex.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/getClauses.js +0 -38
- package/build/languageProcessing/languages/es/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/es/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/internal/checkVerbStemModifications.js +0 -40
- package/build/languageProcessing/languages/es/helpers/internal/checkVerbStemModifications.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/internal/getParticiples.js +0 -43
- package/build/languageProcessing/languages/es/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/internal/stem.js +0 -574
- package/build/languageProcessing/languages/es/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/es/values/Clause.js +0 -49
- package/build/languageProcessing/languages/es/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/fa/Researcher.js +0 -56
- package/build/languageProcessing/languages/fa/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/fa/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/fa/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/fa/config/functionWords.js +0 -41
- package/build/languageProcessing/languages/fa/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/fa/config/internal/participles.js +0 -14
- package/build/languageProcessing/languages/fa/config/internal/participles.js.map +0 -1
- package/build/languageProcessing/languages/fa/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/fa/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/fa/config/transitionWords.js +0 -18
- package/build/languageProcessing/languages/fa/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/fa/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/fa/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/fa/helpers/createBasicWordForms.js +0 -99
- package/build/languageProcessing/languages/fa/helpers/createBasicWordForms.js.map +0 -1
- package/build/languageProcessing/languages/fa/helpers/getStemmer.js +0 -22
- package/build/languageProcessing/languages/fa/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/fa/helpers/isPassiveSentence.js +0 -22
- package/build/languageProcessing/languages/fa/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/fr/Researcher.js +0 -55
- package/build/languageProcessing/languages/fr/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/fr/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/functionWords.js +0 -144
- package/build/languageProcessing/languages/fr/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/internal/exceptionsParticiplesActive.js +0 -22
- package/build/languageProcessing/languages/fr/config/internal/exceptionsParticiplesActive.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceAuxiliaries.js +0 -12
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceIrregulars.js +0 -27
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceIrregulars.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/fr/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/syllables.json +0 -1426
- package/build/languageProcessing/languages/fr/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/fr/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/fr/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/wordComplexity.js +0 -11
- package/build/languageProcessing/languages/fr/config/wordComplexity.js.map +0 -1
- package/build/languageProcessing/languages/fr/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/fr/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/fr/helpers/checkIfWordIsComplex.js +0 -72
- package/build/languageProcessing/languages/fr/helpers/checkIfWordIsComplex.js.map +0 -1
- package/build/languageProcessing/languages/fr/helpers/getClauses.js +0 -42
- package/build/languageProcessing/languages/fr/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/fr/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/fr/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/fr/helpers/internal/getParticiples.js +0 -71
- package/build/languageProcessing/languages/fr/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/fr/helpers/internal/stem.js +0 -544
- package/build/languageProcessing/languages/fr/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/fr/values/Clause.js +0 -90
- package/build/languageProcessing/languages/fr/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/he/Researcher.js +0 -59
- package/build/languageProcessing/languages/he/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/he/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/he/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/he/config/functionWords.js +0 -504
- package/build/languageProcessing/languages/he/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/he/config/internal/regularRootsHufal.js +0 -13
- package/build/languageProcessing/languages/he/config/internal/regularRootsHufal.js.map +0 -1
- package/build/languageProcessing/languages/he/config/internal/regularRootsNifal.js +0 -13
- package/build/languageProcessing/languages/he/config/internal/regularRootsNifal.js.map +0 -1
- package/build/languageProcessing/languages/he/config/internal/regularRootsPual.js +0 -13
- package/build/languageProcessing/languages/he/config/internal/regularRootsPual.js.map +0 -1
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsHufal.js +0 -15
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsHufal.js.map +0 -1
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsNifal.js +0 -15
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsNifal.js.map +0 -1
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsPual.js +0 -15
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsPual.js.map +0 -1
- package/build/languageProcessing/languages/he/config/prefixedFunctionWords.js +0 -9
- package/build/languageProcessing/languages/he/config/prefixedFunctionWords.js.map +0 -1
- package/build/languageProcessing/languages/he/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/he/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/he/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/he/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/he/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/he/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/he/helpers/createBasicWordForms.js +0 -40
- package/build/languageProcessing/languages/he/helpers/createBasicWordForms.js.map +0 -1
- package/build/languageProcessing/languages/he/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/he/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/he/helpers/internal/stem.js +0 -59
- package/build/languageProcessing/languages/he/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/he/helpers/isPassiveSentence.js +0 -122
- package/build/languageProcessing/languages/he/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/he/helpers/stem.js +0 -59
- package/build/languageProcessing/languages/he/helpers/stem.js.map +0 -1
- package/build/languageProcessing/languages/hu/Researcher.js +0 -57
- package/build/languageProcessing/languages/hu/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/firstWordExceptions.js +0 -32
- package/build/languageProcessing/languages/hu/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/functionWords.js +0 -52
- package/build/languageProcessing/languages/hu/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/internal/auxiliaries.js +0 -20
- package/build/languageProcessing/languages/hu/config/internal/auxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/internal/morphologicalPassiveAffixes.js +0 -12
- package/build/languageProcessing/languages/hu/config/internal/morphologicalPassiveAffixes.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/internal/nonPassivesInVaAndVe.js +0 -25
- package/build/languageProcessing/languages/hu/config/internal/nonPassivesInVaAndVe.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/internal/odikVerbs.js +0 -25
- package/build/languageProcessing/languages/hu/config/internal/odikVerbs.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/internal/participles.js +0 -25
- package/build/languageProcessing/languages/hu/config/internal/participles.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/stopWords.js +0 -29
- package/build/languageProcessing/languages/hu/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/hu/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/hu/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/hu/helpers/getClauses.js +0 -34
- package/build/languageProcessing/languages/hu/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/hu/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/hu/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/hu/helpers/internal/getParticiples.js +0 -25
- package/build/languageProcessing/languages/hu/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/hu/helpers/internal/stem.js +0 -390
- package/build/languageProcessing/languages/hu/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/hu/helpers/isPassiveSentence.js +0 -53
- package/build/languageProcessing/languages/hu/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/hu/values/Clause.js +0 -47
- package/build/languageProcessing/languages/hu/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/id/Researcher.js +0 -55
- package/build/languageProcessing/languages/id/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/id/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/id/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/id/config/functionWords.js +0 -109
- package/build/languageProcessing/languages/id/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/id/config/internal/nonPassiveVerbsStartingDi.js +0 -13
- package/build/languageProcessing/languages/id/config/internal/nonPassiveVerbsStartingDi.js.map +0 -1
- package/build/languageProcessing/languages/id/config/transitionWords.js +0 -30
- package/build/languageProcessing/languages/id/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/id/config/twoPartTransitionWords.js +0 -14
- package/build/languageProcessing/languages/id/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/id/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/id/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/id/helpers/internal/stem.js +0 -394
- package/build/languageProcessing/languages/id/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/id/helpers/internal/stemHelpers.js +0 -86
- package/build/languageProcessing/languages/id/helpers/internal/stemHelpers.js.map +0 -1
- package/build/languageProcessing/languages/id/helpers/isPassiveSentence.js +0 -47
- package/build/languageProcessing/languages/id/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/id/helpers/splitIntoTokensCustom.js +0 -53
- package/build/languageProcessing/languages/id/helpers/splitIntoTokensCustom.js.map +0 -1
- package/build/languageProcessing/languages/it/Researcher.js +0 -57
- package/build/languageProcessing/languages/it/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/it/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/it/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/it/config/functionWords.js +0 -141
- package/build/languageProcessing/languages/it/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceAuxiliaries.js +0 -12
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceParticiples.js +0 -13
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceParticiples.js.map +0 -1
- package/build/languageProcessing/languages/it/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/it/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/it/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/it/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/it/config/syllables.json +0 -573
- package/build/languageProcessing/languages/it/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/it/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/it/config/twoPartTransitionWords.js +0 -12
- package/build/languageProcessing/languages/it/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/it/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/it/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/it/helpers/getClauses.js +0 -40
- package/build/languageProcessing/languages/it/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/it/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/it/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/it/helpers/internal/getParticiples.js +0 -42
- package/build/languageProcessing/languages/it/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/it/helpers/internal/stem.js +0 -408
- package/build/languageProcessing/languages/it/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/it/values/Clause.js +0 -51
- package/build/languageProcessing/languages/it/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/ja/Researcher.js +0 -94
- package/build/languageProcessing/languages/ja/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/assessmentApplicabilityCharacterCount.js +0 -11
- package/build/languageProcessing/languages/ja/config/assessmentApplicabilityCharacterCount.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/firstWordExceptions.js +0 -14
- package/build/languageProcessing/languages/ja/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/functionWords.js +0 -8
- package/build/languageProcessing/languages/ja/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/keyphraseLength.js +0 -23
- package/build/languageProcessing/languages/ja/config/keyphraseLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/metaDescriptionLength.js +0 -11
- package/build/languageProcessing/languages/ja/config/metaDescriptionLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/paragraphLength.js +0 -17
- package/build/languageProcessing/languages/ja/config/paragraphLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/sentenceLength.js +0 -11
- package/build/languageProcessing/languages/ja/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/subheadingsTooLong.js +0 -25
- package/build/languageProcessing/languages/ja/config/subheadingsTooLong.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/textLength.js +0 -54
- package/build/languageProcessing/languages/ja/config/textLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/topicLength.js +0 -12
- package/build/languageProcessing/languages/ja/config/topicLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/transitionWords.js +0 -9
- package/build/languageProcessing/languages/ja/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js +0 -102
- package/build/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js.map +0 -1
- package/build/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js +0 -25
- package/build/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/customResearches/getWordForms.js +0 -57
- package/build/languageProcessing/languages/ja/customResearches/getWordForms.js.map +0 -1
- package/build/languageProcessing/languages/ja/customResearches/textLength.js +0 -31
- package/build/languageProcessing/languages/ja/customResearches/textLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/countCharacters.js +0 -27
- package/build/languageProcessing/languages/ja/helpers/countCharacters.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/customGetStemmer.js +0 -28
- package/build/languageProcessing/languages/ja/helpers/customGetStemmer.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/getContentWords.js +0 -27
- package/build/languageProcessing/languages/ja/helpers/getContentWords.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/getWords.js +0 -38
- package/build/languageProcessing/languages/ja/helpers/getWords.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js +0 -99
- package/build/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/internal/createWordForms.js +0 -70
- package/build/languageProcessing/languages/ja/helpers/internal/createWordForms.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/internal/determineStem.js +0 -23
- package/build/languageProcessing/languages/ja/helpers/internal/determineStem.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/matchTextWithWord.js +0 -58
- package/build/languageProcessing/languages/ja/helpers/matchTextWithWord.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/matchTransitionWords.js +0 -29
- package/build/languageProcessing/languages/ja/helpers/matchTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/memoizedSentenceTokenizer.js +0 -37
- package/build/languageProcessing/languages/ja/helpers/memoizedSentenceTokenizer.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/splitIntoTokensCustom.js +0 -27
- package/build/languageProcessing/languages/ja/helpers/splitIntoTokensCustom.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/wordsCharacterCount.js +0 -19
- package/build/languageProcessing/languages/ja/helpers/wordsCharacterCount.js.map +0 -1
- package/build/languageProcessing/languages/nb/Researcher.js +0 -54
- package/build/languageProcessing/languages/nb/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/nb/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/functionWords.js +0 -54
- package/build/languageProcessing/languages/nb/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/internal/participles.js +0 -12
- package/build/languageProcessing/languages/nb/config/internal/participles.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/internal/passiveVoiceAuxiliaries.js +0 -12
- package/build/languageProcessing/languages/nb/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/stopWords.js +0 -13
- package/build/languageProcessing/languages/nb/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/nb/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/nb/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/nb/helpers/getClauses.js +0 -37
- package/build/languageProcessing/languages/nb/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/nb/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/nb/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/nb/helpers/internal/getParticiples.js +0 -31
- package/build/languageProcessing/languages/nb/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/nb/helpers/internal/stem.js +0 -135
- package/build/languageProcessing/languages/nb/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/nb/values/Clause.js +0 -49
- package/build/languageProcessing/languages/nb/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/nl/Researcher.js +0 -57
- package/build/languageProcessing/languages/nl/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/nl/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/functionWords.js +0 -102
- package/build/languageProcessing/languages/nl/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/internal/nonParticiples.js +0 -12
- package/build/languageProcessing/languages/nl/config/internal/nonParticiples.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceAuxiliaries.js +0 -12
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceIrregulars.js +0 -13
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceIrregulars.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/keyphraseLength.js +0 -17
- package/build/languageProcessing/languages/nl/config/keyphraseLength.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/nl/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/syllables.json +0 -343
- package/build/languageProcessing/languages/nl/config/transitionWords.js +0 -11
- package/build/languageProcessing/languages/nl/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/twoPartTransitionWords.js +0 -12
- package/build/languageProcessing/languages/nl/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/nl/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/getClauses.js +0 -34
- package/build/languageProcessing/languages/nl/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/nl/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/checkExceptionsWithFullForms.js +0 -124
- package/build/languageProcessing/languages/nl/helpers/internal/checkExceptionsWithFullForms.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemRegularParticiple.js +0 -260
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemRegularParticiple.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemSuffixes.js +0 -157
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemSuffixes.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/determineStem.js +0 -120
- package/build/languageProcessing/languages/nl/helpers/internal/determineStem.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/getParticiples.js +0 -27
- package/build/languageProcessing/languages/nl/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/getStemWordsWithTAndDEnding.js +0 -152
- package/build/languageProcessing/languages/nl/helpers/internal/getStemWordsWithTAndDEnding.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/stem.js +0 -131
- package/build/languageProcessing/languages/nl/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/stemModificationHelpers.js +0 -94
- package/build/languageProcessing/languages/nl/helpers/internal/stemModificationHelpers.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/stemTOrDFromEndOfWord.js +0 -59
- package/build/languageProcessing/languages/nl/helpers/internal/stemTOrDFromEndOfWord.js.map +0 -1
- package/build/languageProcessing/languages/nl/values/Clause.js +0 -63
- package/build/languageProcessing/languages/nl/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/pl/Researcher.js +0 -56
- package/build/languageProcessing/languages/pl/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/firstWordExceptions.js +0 -16
- package/build/languageProcessing/languages/pl/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/functionWords.js +0 -78
- package/build/languageProcessing/languages/pl/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/internal/auxiliaries.js +0 -12
- package/build/languageProcessing/languages/pl/config/internal/auxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/internal/participles.js +0 -13
- package/build/languageProcessing/languages/pl/config/internal/participles.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/sentenceLength.js +0 -17
- package/build/languageProcessing/languages/pl/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/pl/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/pl/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/pl/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/pl/helpers/getClauses.js +0 -34
- package/build/languageProcessing/languages/pl/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/pl/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/pl/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/pl/helpers/internal/getParticiples.js +0 -25
- package/build/languageProcessing/languages/pl/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/pl/helpers/internal/stem.js +0 -158
- package/build/languageProcessing/languages/pl/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/pl/values/Clause.js +0 -51
- package/build/languageProcessing/languages/pl/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/pt/Researcher.js +0 -57
- package/build/languageProcessing/languages/pt/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/pt/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/functionWords.js +0 -98
- package/build/languageProcessing/languages/pt/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceAuxiliaries.js +0 -12
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceParticiples.js +0 -13
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceParticiples.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/pt/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/pt/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/syllables.json +0 -38
- package/build/languageProcessing/languages/pt/config/transitionWords.js +0 -11
- package/build/languageProcessing/languages/pt/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/twoPartTransitionWords.js +0 -12
- package/build/languageProcessing/languages/pt/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/pt/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/pt/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/pt/helpers/getClauses.js +0 -38
- package/build/languageProcessing/languages/pt/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/pt/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/pt/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/pt/helpers/internal/getParticiples.js +0 -43
- package/build/languageProcessing/languages/pt/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/pt/helpers/internal/stem.js +0 -283
- package/build/languageProcessing/languages/pt/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/pt/values/Clause.js +0 -50
- package/build/languageProcessing/languages/pt/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/ru/Researcher.js +0 -57
- package/build/languageProcessing/languages/ru/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/firstWordExceptions.js +0 -16
- package/build/languageProcessing/languages/ru/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/fleschReadingEaseScores.js +0 -27
- package/build/languageProcessing/languages/ru/config/fleschReadingEaseScores.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/functionWords.js +0 -91
- package/build/languageProcessing/languages/ru/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/internal/participlesShortenedList.js +0 -27
- package/build/languageProcessing/languages/ru/config/internal/participlesShortenedList.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/internal/passiveVoiceParticiples.js +0 -24
- package/build/languageProcessing/languages/ru/config/internal/passiveVoiceParticiples.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/ru/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/syllables.json +0 -19
- package/build/languageProcessing/languages/ru/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/ru/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/ru/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ru/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/ru/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/ru/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/ru/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/ru/helpers/internal/stem.js +0 -271
- package/build/languageProcessing/languages/ru/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/ru/helpers/isPassiveSentence.js +0 -22
- package/build/languageProcessing/languages/ru/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/sk/Researcher.js +0 -55
- package/build/languageProcessing/languages/sk/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/sk/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/functionWords.js +0 -18
- package/build/languageProcessing/languages/sk/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/internal/nonPassives.js +0 -14
- package/build/languageProcessing/languages/sk/config/internal/nonPassives.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/internal/passiveVoiceAuxiliaries.js +0 -10
- package/build/languageProcessing/languages/sk/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/stopWords.js +0 -13
- package/build/languageProcessing/languages/sk/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/sk/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/sk/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/sk/helpers/getClauses.js +0 -35
- package/build/languageProcessing/languages/sk/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/sk/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/sk/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/sk/helpers/internal/getParticiples.js +0 -24
- package/build/languageProcessing/languages/sk/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/sk/helpers/internal/stem.js +0 -322
- package/build/languageProcessing/languages/sk/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/sk/values/Clause.js +0 -47
- package/build/languageProcessing/languages/sk/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/sv/Researcher.js +0 -54
- package/build/languageProcessing/languages/sv/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/sv/config/firstWordExceptions.js +0 -21
- package/build/languageProcessing/languages/sv/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/sv/config/functionWords.js +0 -74
- package/build/languageProcessing/languages/sv/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/sv/config/internal/passiveVerbs.js +0 -12
- package/build/languageProcessing/languages/sv/config/internal/passiveVerbs.js.map +0 -1
- package/build/languageProcessing/languages/sv/config/keyphraseLength.js +0 -17
- package/build/languageProcessing/languages/sv/config/keyphraseLength.js.map +0 -1
- package/build/languageProcessing/languages/sv/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/sv/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/sv/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/sv/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/sv/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/sv/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/sv/helpers/internal/stem.js +0 -159
- package/build/languageProcessing/languages/sv/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/sv/helpers/isPassiveSentence.js +0 -22
- package/build/languageProcessing/languages/sv/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/tr/Researcher.js +0 -52
- package/build/languageProcessing/languages/tr/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/tr/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/functionWords.js +0 -51
- package/build/languageProcessing/languages/tr/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/internal/nonPassiveExceptions.js +0 -13
- package/build/languageProcessing/languages/tr/config/internal/nonPassiveExceptions.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/internal/passiveEndings.js +0 -13
- package/build/languageProcessing/languages/tr/config/internal/passiveEndings.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/sentenceLength.js +0 -14
- package/build/languageProcessing/languages/tr/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/tr/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/tr/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/tr/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/tr/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/tr/helpers/internal/stem.js +0 -25
- package/build/languageProcessing/languages/tr/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/tr/helpers/isPassiveSentence.js +0 -46
- package/build/languageProcessing/languages/tr/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/researches/altTagCount.js +0 -72
- package/build/languageProcessing/researches/altTagCount.js.map +0 -1
- package/build/languageProcessing/researches/checkRelatedKeywords.js +0 -79
- package/build/languageProcessing/researches/checkRelatedKeywords.js.map +0 -1
- package/build/languageProcessing/researches/countSentencesFromText.js +0 -26
- package/build/languageProcessing/researches/countSentencesFromText.js.map +0 -1
- package/build/languageProcessing/researches/findKeyphraseInSEOTitle.js +0 -257
- package/build/languageProcessing/researches/findKeyphraseInSEOTitle.js.map +0 -1
- package/build/languageProcessing/researches/findKeywordInFirstParagraph.js +0 -80
- package/build/languageProcessing/researches/findKeywordInFirstParagraph.js.map +0 -1
- package/build/languageProcessing/researches/findTransitionWords.js +0 -119
- package/build/languageProcessing/researches/findTransitionWords.js.map +0 -1
- package/build/languageProcessing/researches/functionWordsInKeyphrase.js +0 -48
- package/build/languageProcessing/researches/functionWordsInKeyphrase.js.map +0 -1
- package/build/languageProcessing/researches/getAnchorsWithKeyphrase.js +0 -222
- package/build/languageProcessing/researches/getAnchorsWithKeyphrase.js.map +0 -1
- package/build/languageProcessing/researches/getFleschReadingScore.js +0 -152
- package/build/languageProcessing/researches/getFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/researches/getKeywordDensity.js +0 -49
- package/build/languageProcessing/researches/getKeywordDensity.js.map +0 -1
- package/build/languageProcessing/researches/getLinkStatistics.js +0 -56
- package/build/languageProcessing/researches/getLinkStatistics.js.map +0 -1
- package/build/languageProcessing/researches/getLinks.js +0 -23
- package/build/languageProcessing/researches/getLinks.js.map +0 -1
- package/build/languageProcessing/researches/getLongCenterAlignedTexts.js +0 -42
- package/build/languageProcessing/researches/getLongCenterAlignedTexts.js.map +0 -1
- package/build/languageProcessing/researches/getParagraphLength.js +0 -49
- package/build/languageProcessing/researches/getParagraphLength.js.map +0 -1
- package/build/languageProcessing/researches/getParagraphs.js +0 -23
- package/build/languageProcessing/researches/getParagraphs.js.map +0 -1
- package/build/languageProcessing/researches/getPassiveVoiceResult.js +0 -127
- package/build/languageProcessing/researches/getPassiveVoiceResult.js.map +0 -1
- package/build/languageProcessing/researches/getProminentWordsForInsights.js +0 -45
- package/build/languageProcessing/researches/getProminentWordsForInsights.js.map +0 -1
- package/build/languageProcessing/researches/getProminentWordsForInternalLinking.js +0 -103
- package/build/languageProcessing/researches/getProminentWordsForInternalLinking.js.map +0 -1
- package/build/languageProcessing/researches/getSentenceBeginnings.js +0 -122
- package/build/languageProcessing/researches/getSentenceBeginnings.js.map +0 -1
- package/build/languageProcessing/researches/getSubheadingTextLengths.js +0 -60
- package/build/languageProcessing/researches/getSubheadingTextLengths.js.map +0 -1
- package/build/languageProcessing/researches/getWordForms.js +0 -183
- package/build/languageProcessing/researches/getWordForms.js.map +0 -1
- package/build/languageProcessing/researches/h1s.js +0 -17
- package/build/languageProcessing/researches/h1s.js.map +0 -1
- package/build/languageProcessing/researches/imageCount.js +0 -22
- package/build/languageProcessing/researches/imageCount.js.map +0 -1
- package/build/languageProcessing/researches/index.js +0 -28
- package/build/languageProcessing/researches/index.js.map +0 -1
- package/build/languageProcessing/researches/keyphraseDistribution.js +0 -233
- package/build/languageProcessing/researches/keyphraseDistribution.js.map +0 -1
- package/build/languageProcessing/researches/keyphraseLength.js +0 -23
- package/build/languageProcessing/researches/keyphraseLength.js.map +0 -1
- package/build/languageProcessing/researches/keywordCount.js +0 -135
- package/build/languageProcessing/researches/keywordCount.js.map +0 -1
- package/build/languageProcessing/researches/keywordCountInUrl.js +0 -58
- package/build/languageProcessing/researches/keywordCountInUrl.js.map +0 -1
- package/build/languageProcessing/researches/matchKeywordInSubheadings.js +0 -68
- package/build/languageProcessing/researches/matchKeywordInSubheadings.js.map +0 -1
- package/build/languageProcessing/researches/metaDescriptionKeyword.js +0 -78
- package/build/languageProcessing/researches/metaDescriptionKeyword.js.map +0 -1
- package/build/languageProcessing/researches/metaDescriptionLength.js +0 -19
- package/build/languageProcessing/researches/metaDescriptionLength.js.map +0 -1
- package/build/languageProcessing/researches/pageTitleWidth.js +0 -18
- package/build/languageProcessing/researches/pageTitleWidth.js.map +0 -1
- package/build/languageProcessing/researches/readingTime.js +0 -84
- package/build/languageProcessing/researches/readingTime.js.map +0 -1
- package/build/languageProcessing/researches/sentences.js +0 -26
- package/build/languageProcessing/researches/sentences.js.map +0 -1
- package/build/languageProcessing/researches/videoCount.js +0 -39
- package/build/languageProcessing/researches/videoCount.js.map +0 -1
- package/build/languageProcessing/researches/wordComplexity.js +0 -128
- package/build/languageProcessing/researches/wordComplexity.js.map +0 -1
- package/build/languageProcessing/researches/wordCountInText.js +0 -36
- package/build/languageProcessing/researches/wordCountInText.js.map +0 -1
- package/build/languageProcessing/values/Clause.js +0 -113
- package/build/languageProcessing/values/Clause.js.map +0 -1
- package/build/languageProcessing/values/ProminentWord.js +0 -101
- package/build/languageProcessing/values/ProminentWord.js.map +0 -1
- package/build/languageProcessing/values/Sentence.js +0 -116
- package/build/languageProcessing/values/Sentence.js.map +0 -1
- package/build/languageProcessing/values/index.js +0 -28
- package/build/languageProcessing/values/index.js.map +0 -1
- package/build/markers/addMark.js +0 -16
- package/build/markers/addMark.js.map +0 -1
- package/build/markers/addMarkSingleWord.js +0 -37
- package/build/markers/addMarkSingleWord.js.map +0 -1
- package/build/markers/index.js +0 -21
- package/build/markers/index.js.map +0 -1
- package/build/markers/removeDuplicateMarks.js +0 -31
- package/build/markers/removeDuplicateMarks.js.map +0 -1
- package/build/markers/removeMarks.js +0 -16
- package/build/markers/removeMarks.js.map +0 -1
- package/build/parse/build/build.js +0 -62
- package/build/parse/build/build.js.map +0 -1
- package/build/parse/build/index.js +0 -14
- package/build/parse/build/index.js.map +0 -1
- package/build/parse/build/private/adapt.js +0 -111
- package/build/parse/build/private/adapt.js.map +0 -1
- package/build/parse/build/private/adaptAttributes.js +0 -41
- package/build/parse/build/private/adaptAttributes.js.map +0 -1
- package/build/parse/build/private/alwaysFilterElements.js +0 -32
- package/build/parse/build/private/alwaysFilterElements.js.map +0 -1
- package/build/parse/build/private/combineIntoImplicitParagraphs.js +0 -129
- package/build/parse/build/private/combineIntoImplicitParagraphs.js.map +0 -1
- package/build/parse/build/private/filterBeforeTokenizing.js +0 -37
- package/build/parse/build/private/filterBeforeTokenizing.js.map +0 -1
- package/build/parse/build/private/filterHelpers.js +0 -52
- package/build/parse/build/private/filterHelpers.js.map +0 -1
- package/build/parse/build/private/filterTree.js +0 -47
- package/build/parse/build/private/filterTree.js.map +0 -1
- package/build/parse/build/private/getTextElementPositions.js +0 -184
- package/build/parse/build/private/getTextElementPositions.js.map +0 -1
- package/build/parse/build/private/helpers/parseClassAttribute.js +0 -15
- package/build/parse/build/private/helpers/parseClassAttribute.js.map +0 -1
- package/build/parse/build/private/isPhrasingContent.js +0 -30
- package/build/parse/build/private/isPhrasingContent.js.map +0 -1
- package/build/parse/build/private/parseBlocks.js +0 -151
- package/build/parse/build/private/parseBlocks.js.map +0 -1
- package/build/parse/build/private/tokenize.js +0 -78
- package/build/parse/build/private/tokenize.js.map +0 -1
- package/build/parse/language/LanguageProcessor.js +0 -77
- package/build/parse/language/LanguageProcessor.js.map +0 -1
- package/build/parse/structure/Heading.js +0 -32
- package/build/parse/structure/Heading.js.map +0 -1
- package/build/parse/structure/Node.js +0 -75
- package/build/parse/structure/Node.js.map +0 -1
- package/build/parse/structure/Paragraph.js +0 -53
- package/build/parse/structure/Paragraph.js.map +0 -1
- package/build/parse/structure/Sentence.js +0 -36
- package/build/parse/structure/Sentence.js.map +0 -1
- package/build/parse/structure/SourceCodeLocation.js +0 -46
- package/build/parse/structure/SourceCodeLocation.js.map +0 -1
- package/build/parse/structure/Text.js +0 -33
- package/build/parse/structure/Text.js.map +0 -1
- package/build/parse/structure/Token.js +0 -29
- package/build/parse/structure/Token.js.map +0 -1
- package/build/parse/structure/index.js +0 -35
- package/build/parse/structure/index.js.map +0 -1
- package/build/parse/traverse/findAllInTree.js +0 -62
- package/build/parse/traverse/findAllInTree.js.map +0 -1
- package/build/parse/traverse/index.js +0 -21
- package/build/parse/traverse/index.js.map +0 -1
- package/build/parse/traverse/innerText.js +0 -30
- package/build/parse/traverse/innerText.js.map +0 -1
- package/build/parsedPaper/ParsedPaper.js +0 -100
- package/build/parsedPaper/ParsedPaper.js.map +0 -1
- package/build/parsedPaper/assess/TreeAssessor.js +0 -181
- package/build/parsedPaper/assess/TreeAssessor.js.map +0 -1
- package/build/parsedPaper/assess/assessmentListFactories.js +0 -77
- package/build/parsedPaper/assess/assessmentListFactories.js.map +0 -1
- package/build/parsedPaper/assess/assessments/Assessment.js +0 -98
- package/build/parsedPaper/assess/assessments/Assessment.js.map +0 -1
- package/build/parsedPaper/assess/assessments/index.js +0 -14
- package/build/parsedPaper/assess/assessments/index.js.map +0 -1
- package/build/parsedPaper/assess/assessorFactories.js +0 -104
- package/build/parsedPaper/assess/assessorFactories.js.map +0 -1
- package/build/parsedPaper/assess/cornerstone/assessmentListFactories.js +0 -51
- package/build/parsedPaper/assess/cornerstone/assessmentListFactories.js.map +0 -1
- package/build/parsedPaper/assess/cornerstone/index.js +0 -11
- package/build/parsedPaper/assess/cornerstone/index.js.map +0 -1
- package/build/parsedPaper/assess/index.js +0 -31
- package/build/parsedPaper/assess/index.js.map +0 -1
- package/build/parsedPaper/build/PaperParser.js +0 -103
- package/build/parsedPaper/build/PaperParser.js.map +0 -1
- package/build/parsedPaper/build/linguisticParsing/Sentence.js +0 -95
- package/build/parsedPaper/build/linguisticParsing/Sentence.js.map +0 -1
- package/build/parsedPaper/build/linguisticParsing/SentenceTokenizer.js +0 -294
- package/build/parsedPaper/build/linguisticParsing/SentenceTokenizer.js.map +0 -1
- package/build/parsedPaper/build/linguisticParsing/parseText.js +0 -26
- package/build/parsedPaper/build/linguisticParsing/parseText.js.map +0 -1
- package/build/parsedPaper/build/tree/TreeBuilder.js +0 -82
- package/build/parsedPaper/build/tree/TreeBuilder.js.map +0 -1
- package/build/parsedPaper/build/tree/cleanup/calculateTextIndices.js +0 -183
- package/build/parsedPaper/build/tree/cleanup/calculateTextIndices.js.map +0 -1
- package/build/parsedPaper/build/tree/cleanup/getElementContent.js +0 -27
- package/build/parsedPaper/build/tree/cleanup/getElementContent.js.map +0 -1
- package/build/parsedPaper/build/tree/cleanup/postParsing.js +0 -43
- package/build/parsedPaper/build/tree/cleanup/postParsing.js.map +0 -1
- package/build/parsedPaper/build/tree/html/HTMLTreeConverter.js +0 -226
- package/build/parsedPaper/build/tree/html/HTMLTreeConverter.js.map +0 -1
- package/build/parsedPaper/build/tree/html/buildTree.js +0 -36
- package/build/parsedPaper/build/tree/html/buildTree.js.map +0 -1
- package/build/parsedPaper/build/tree/html/htmlConstants.js +0 -35
- package/build/parsedPaper/build/tree/html/htmlConstants.js.map +0 -1
- package/build/parsedPaper/build/tree/index.js +0 -20
- package/build/parsedPaper/build/tree/index.js.map +0 -1
- package/build/parsedPaper/build/tree/metadata/buildTree.js +0 -36
- package/build/parsedPaper/build/tree/metadata/buildTree.js.map +0 -1
- package/build/parsedPaper/research/TreeResearcher.js +0 -136
- package/build/parsedPaper/research/TreeResearcher.js.map +0 -1
- package/build/parsedPaper/research/index.js +0 -14
- package/build/parsedPaper/research/index.js.map +0 -1
- package/build/parsedPaper/research/researches/Headings.js +0 -26
- package/build/parsedPaper/research/researches/Headings.js.map +0 -1
- package/build/parsedPaper/research/researches/LinkStatistics.js +0 -129
- package/build/parsedPaper/research/researches/LinkStatistics.js.map +0 -1
- package/build/parsedPaper/research/researches/Research.js +0 -58
- package/build/parsedPaper/research/researches/Research.js.map +0 -1
- package/build/parsedPaper/research/researches/index.js +0 -14
- package/build/parsedPaper/research/researches/index.js.map +0 -1
- package/build/parsedPaper/structure/tree/FormattingElement.js +0 -73
- package/build/parsedPaper/structure/tree/FormattingElement.js.map +0 -1
- package/build/parsedPaper/structure/tree/SourceCodeLocation.js +0 -48
- package/build/parsedPaper/structure/tree/SourceCodeLocation.js.map +0 -1
- package/build/parsedPaper/structure/tree/TextContainer.js +0 -89
- package/build/parsedPaper/structure/tree/TextContainer.js.map +0 -1
- package/build/parsedPaper/structure/tree/index.js +0 -76
- package/build/parsedPaper/structure/tree/index.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/Heading.js +0 -33
- package/build/parsedPaper/structure/tree/nodes/Heading.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/LeafNode.js +0 -82
- package/build/parsedPaper/structure/tree/nodes/LeafNode.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/List.js +0 -54
- package/build/parsedPaper/structure/tree/nodes/List.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/ListItem.js +0 -34
- package/build/parsedPaper/structure/tree/nodes/ListItem.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/MetadataMiscellaneous.js +0 -51
- package/build/parsedPaper/structure/tree/nodes/MetadataMiscellaneous.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/MetadataText.js +0 -31
- package/build/parsedPaper/structure/tree/nodes/MetadataText.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/Node.js +0 -159
- package/build/parsedPaper/structure/tree/nodes/Node.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/Paragraph.js +0 -29
- package/build/parsedPaper/structure/tree/nodes/Paragraph.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/StructuredNode.js +0 -60
- package/build/parsedPaper/structure/tree/nodes/StructuredNode.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/index.js +0 -70
- package/build/parsedPaper/structure/tree/nodes/index.js.map +0 -1
- package/build/scoring/assessments/assessment.js +0 -75
- package/build/scoring/assessments/assessment.js.map +0 -1
- package/build/scoring/assessments/index.js +0 -68
- package/build/scoring/assessments/index.js.map +0 -1
- package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js +0 -166
- package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js.map +0 -1
- package/build/scoring/assessments/readability/RelatedKeywordsAssessment.js +0 -121
- package/build/scoring/assessments/readability/RelatedKeywordsAssessment.js.map +0 -1
- package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js +0 -136
- package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js.map +0 -1
- package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js +0 -176
- package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js.map +0 -1
- package/build/scoring/assessments/readability/TransitionWordsAssessment.js +0 -163
- package/build/scoring/assessments/readability/TransitionWordsAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/ImageCountAssessment.js +0 -111
- package/build/scoring/assessments/seo/ImageCountAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/InternalLinksAssessment.js +0 -112
- package/build/scoring/assessments/seo/InternalLinksAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js +0 -109
- package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/KeyphraseAssessment.js +0 -104
- package/build/scoring/assessments/seo/KeyphraseAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js +0 -109
- package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/KeywordDensityAssessment.js +0 -116
- package/build/scoring/assessments/seo/KeywordDensityAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js +0 -117
- package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js +0 -111
- package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js +0 -115
- package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js +0 -108
- package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/OutboundLinksAssessment.js +0 -114
- package/build/scoring/assessments/seo/OutboundLinksAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/PageTitleWidthAssessment.js +0 -106
- package/build/scoring/assessments/seo/PageTitleWidthAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/SchemaAssessment.js +0 -115
- package/build/scoring/assessments/seo/SchemaAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/SingleH1Assessment.js +0 -114
- package/build/scoring/assessments/seo/SingleH1Assessment.js.map +0 -1
- package/build/scoring/assessments/seo/SingleTitleAssessment.js +0 -107
- package/build/scoring/assessments/seo/SingleTitleAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js +0 -106
- package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/TextImagesAssessment.js +0 -142
- package/build/scoring/assessments/seo/TextImagesAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/TextLengthAssessment.js +0 -104
- package/build/scoring/assessments/seo/TextLengthAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/UrlKeywordAssessment.js +0 -106
- package/build/scoring/assessments/seo/UrlKeywordAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/UrlLengthAssessment.js +0 -106
- package/build/scoring/assessments/seo/UrlLengthAssessment.js.map +0 -1
- package/build/scoring/assessors/assessor.js +0 -284
- package/build/scoring/assessors/assessor.js.map +0 -1
- package/build/scoring/assessors/avadaAssessor.js +0 -91
- package/build/scoring/assessors/avadaAssessor.js.map +0 -1
- package/build/scoring/assessors/contentAssessor.js +0 -150
- package/build/scoring/assessors/contentAssessor.js.map +0 -1
- package/build/scoring/assessors/index.js +0 -35
- package/build/scoring/assessors/index.js.map +0 -1
- package/build/scoring/assessors/seoAssessor.js +0 -45
- package/build/scoring/assessors/seoAssessor.js.map +0 -1
- package/build/scoring/helpers/assessments/checkForTooLongSentences.js +0 -19
- package/build/scoring/helpers/assessments/checkForTooLongSentences.js.map +0 -1
- package/build/scoring/helpers/assessments/inRange.js +0 -51
- package/build/scoring/helpers/assessments/inRange.js.map +0 -1
- package/build/scoring/helpers/assessments/keyphraseLengthFactor.js +0 -17
- package/build/scoring/helpers/assessments/keyphraseLengthFactor.js.map +0 -1
- package/build/scoring/helpers/assessments/recommendedKeywordCount.js +0 -47
- package/build/scoring/helpers/assessments/recommendedKeywordCount.js.map +0 -1
- package/build/scoring/helpers/index.js +0 -92
- package/build/scoring/helpers/index.js.map +0 -1
- package/build/scoring/interpreters/index.js +0 -14
- package/build/scoring/interpreters/index.js.map +0 -1
- package/build/scoring/interpreters/scoreToRating.js +0 -32
- package/build/scoring/interpreters/scoreToRating.js.map +0 -1
- package/build/scoring/renderers/AssessorPresenter.js +0 -348
- package/build/scoring/renderers/AssessorPresenter.js.map +0 -1
- package/build/scoring/scoreAggregators/ReadabilityScoreAggregator.js +0 -203
- package/build/scoring/scoreAggregators/ReadabilityScoreAggregator.js.map +0 -1
- package/build/scoring/scoreAggregators/SEOScoreAggregator.js +0 -60
- package/build/scoring/scoreAggregators/SEOScoreAggregator.js.map +0 -1
- package/build/scoring/scoreAggregators/ScoreAggregator.js +0 -30
- package/build/scoring/scoreAggregators/ScoreAggregator.js.map +0 -1
- package/build/scoring/scoreAggregators/index.js +0 -28
- package/build/scoring/scoreAggregators/index.js.map +0 -1
- package/build/values/AssessmentResult.js +0 -485
- package/build/values/AssessmentResult.js.map +0 -1
- package/build/values/Mark.js +0 -273
- package/build/values/Mark.js.map +0 -1
- package/build/values/Paper.js +0 -495
- package/build/values/Paper.js.map +0 -1
- package/build/values/index.js +0 -28
- package/build/values/index.js.map +0 -1
- package/build/vendor/turkishStemmer.js +0 -2817
- package/build/vendor/turkishStemmer.js.map +0 -1
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getMaxPoint = void 0;
|
|
7
|
-
exports.groupAssessmentsByCategory = groupAssessmentsByCategory;
|
|
8
|
-
exports.groupAssessmentsByStatus = groupAssessmentsByStatus;
|
|
9
|
-
var _analysis = require("../../const/analysis");
|
|
10
|
-
/**
|
|
11
|
-
* Helper function to prepare the results by category.
|
|
12
|
-
* @param {Array} originalResult - The original result array of assessments.
|
|
13
|
-
* @returns {object} The prepared result object.
|
|
14
|
-
*/
|
|
15
|
-
function groupAssessmentsByCategory(originalResult) {
|
|
16
|
-
const technicalSEOResults = [];
|
|
17
|
-
const contentSEOResults = [];
|
|
18
|
-
originalResult.forEach(item => {
|
|
19
|
-
const {
|
|
20
|
-
id,
|
|
21
|
-
status
|
|
22
|
-
} = item;
|
|
23
|
-
if (_analysis.technicalSEOCategory.includes(id)) {
|
|
24
|
-
technicalSEOResults.push({
|
|
25
|
-
...item,
|
|
26
|
-
status
|
|
27
|
-
});
|
|
28
|
-
} else if (_analysis.contentSEOCategory.includes(id)) {
|
|
29
|
-
contentSEOResults.push({
|
|
30
|
-
...item,
|
|
31
|
-
status
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
const sortByStatus = (a, b) => {
|
|
36
|
-
const statusOrder = {
|
|
37
|
-
bad: 1,
|
|
38
|
-
improve: 2,
|
|
39
|
-
good: 3
|
|
40
|
-
};
|
|
41
|
-
return statusOrder[a.status] - statusOrder[b.status];
|
|
42
|
-
};
|
|
43
|
-
const sortByPriority = (a, b) => {
|
|
44
|
-
const priorityOrder = {
|
|
45
|
-
high: 1,
|
|
46
|
-
medium: 2,
|
|
47
|
-
low: 3,
|
|
48
|
-
undefined: 4
|
|
49
|
-
};
|
|
50
|
-
return (priorityOrder[a.priority] || 4) - (priorityOrder[b.priority] || 4);
|
|
51
|
-
};
|
|
52
|
-
const sortItems = items => {
|
|
53
|
-
items.sort((a, b) => {
|
|
54
|
-
const statusComparison = sortByStatus(a, b);
|
|
55
|
-
if (statusComparison !== 0) {
|
|
56
|
-
return statusComparison;
|
|
57
|
-
}
|
|
58
|
-
return sortByPriority(a, b);
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
sortItems(technicalSEOResults);
|
|
62
|
-
sortItems(contentSEOResults);
|
|
63
|
-
return {
|
|
64
|
-
technicalSEOResults,
|
|
65
|
-
contentSEOResults
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function groupAssessmentsByStatus(assessments) {
|
|
69
|
-
return assessments.reduce((acc, assessment) => {
|
|
70
|
-
const {
|
|
71
|
-
status
|
|
72
|
-
} = assessment;
|
|
73
|
-
if (!acc[status]) {
|
|
74
|
-
acc[status] = [];
|
|
75
|
-
}
|
|
76
|
-
acc[status].push(assessment);
|
|
77
|
-
return acc;
|
|
78
|
-
}, {
|
|
79
|
-
good: [],
|
|
80
|
-
improve: [],
|
|
81
|
-
bad: []
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
const getMaxPoint = assessments => {
|
|
85
|
-
let totalScore = 0;
|
|
86
|
-
assessments.forEach(item => {
|
|
87
|
-
totalScore += _analysis.POINT * _analysis.priorityRate[item.priority];
|
|
88
|
-
});
|
|
89
|
-
return totalScore;
|
|
90
|
-
};
|
|
91
|
-
exports.getMaxPoint = getMaxPoint;
|
|
92
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_analysis","require","groupAssessmentsByCategory","originalResult","technicalSEOResults","contentSEOResults","forEach","item","id","status","technicalSEOCategory","includes","push","contentSEOCategory","sortByStatus","a","b","statusOrder","bad","improve","good","sortByPriority","priorityOrder","high","medium","low","undefined","priority","sortItems","items","sort","statusComparison","groupAssessmentsByStatus","assessments","reduce","acc","assessment","getMaxPoint","totalScore","POINT","priorityRate","exports"],"sources":["../../../src/scoring/helpers/index.js"],"sourcesContent":["import {\n contentSEOCategory,\n POINT,\n priorityRate,\n technicalSEOCategory\n} from '../../const/analysis';\n\n/**\n * Helper function to prepare the results by category.\n * @param {Array} originalResult - The original result array of assessments.\n * @returns {object} The prepared result object.\n */\nexport function groupAssessmentsByCategory(originalResult) {\n const technicalSEOResults = [];\n const contentSEOResults = [];\n\n originalResult.forEach(item => {\n const {id, status} = item;\n\n if (technicalSEOCategory.includes(id)) {\n technicalSEOResults.push({...item, status});\n } else if (contentSEOCategory.includes(id)) {\n contentSEOResults.push({...item, status});\n }\n });\n\n const sortByStatus = (a, b) => {\n const statusOrder = {bad: 1, improve: 2, good: 3};\n return statusOrder[a.status] - statusOrder[b.status];\n };\n\n const sortByPriority = (a, b) => {\n const priorityOrder = {high: 1, medium: 2, low: 3, undefined: 4};\n return (priorityOrder[a.priority] || 4) - (priorityOrder[b.priority] || 4);\n };\n\n const sortItems = items => {\n items.sort((a, b) => {\n const statusComparison = sortByStatus(a, b);\n if (statusComparison !== 0) {\n return statusComparison;\n }\n return sortByPriority(a, b);\n });\n };\n\n sortItems(technicalSEOResults);\n sortItems(contentSEOResults);\n\n return {technicalSEOResults, contentSEOResults};\n}\n\nexport function groupAssessmentsByStatus(assessments) {\n return assessments.reduce(\n (acc, assessment) => {\n const {status} = assessment;\n if (!acc[status]) {\n acc[status] = [];\n }\n acc[status].push(assessment);\n return acc;\n },\n {good: [], improve: [], bad: []}\n );\n}\n\nexport const getMaxPoint = assessments => {\n let totalScore = 0;\n assessments.forEach(item => {\n totalScore += POINT * priorityRate[item.priority];\n });\n\n return totalScore;\n};\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "scoreToRating", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _scoreToRating.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _scoreToRating = _interopRequireDefault(require("./scoreToRating"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_scoreToRating","_interopRequireDefault","require","e","__esModule","default"],"sources":["../../../src/scoring/interpreters/index.js"],"sourcesContent":["import scoreToRating from \"./scoreToRating\";\n\nexport {\n\tscoreToRating,\n};\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4C,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Interpreters a score and gives it a particular rating.
|
|
9
|
-
*
|
|
10
|
-
* @param {Number} score The score to interpreter.
|
|
11
|
-
* @returns {string} The rating, given based on the score.
|
|
12
|
-
*/
|
|
13
|
-
const ScoreToRating = function (score) {
|
|
14
|
-
if (score === -1) {
|
|
15
|
-
return "error";
|
|
16
|
-
}
|
|
17
|
-
if (score === 0) {
|
|
18
|
-
return "feedback";
|
|
19
|
-
}
|
|
20
|
-
if (score <= 4) {
|
|
21
|
-
return "bad";
|
|
22
|
-
}
|
|
23
|
-
if (score > 4 && score <= 7) {
|
|
24
|
-
return "ok";
|
|
25
|
-
}
|
|
26
|
-
if (score > 7) {
|
|
27
|
-
return "good";
|
|
28
|
-
}
|
|
29
|
-
return "";
|
|
30
|
-
};
|
|
31
|
-
var _default = exports.default = ScoreToRating;
|
|
32
|
-
//# sourceMappingURL=scoreToRating.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scoreToRating.js","names":["ScoreToRating","score","_default","exports","default"],"sources":["../../../src/scoring/interpreters/scoreToRating.js"],"sourcesContent":["/**\n * Interpreters a score and gives it a particular rating.\n *\n * @param {Number} score The score to interpreter.\n * @returns {string} The rating, given based on the score.\n */\nconst ScoreToRating = function( score ) {\n\tif ( score === -1 ) {\n\t\treturn \"error\";\n\t}\n\n\tif ( score === 0 ) {\n\t\treturn \"feedback\";\n\t}\n\n\tif ( score <= 4 ) {\n\t\treturn \"bad\";\n\t}\n\n\tif ( score > 4 && score <= 7 ) {\n\t\treturn \"ok\";\n\t}\n\n\tif ( score > 7 ) {\n\t\treturn \"good\";\n\t}\n\n\treturn \"\";\n};\n\nexport default ScoreToRating;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,aAAa,GAAG,SAAAA,CAAUC,KAAK,EAAG;EACvC,IAAKA,KAAK,KAAK,CAAC,CAAC,EAAG;IACnB,OAAO,OAAO;EACf;EAEA,IAAKA,KAAK,KAAK,CAAC,EAAG;IAClB,OAAO,UAAU;EAClB;EAEA,IAAKA,KAAK,IAAI,CAAC,EAAG;IACjB,OAAO,KAAK;EACb;EAEA,IAAKA,KAAK,GAAG,CAAC,IAAIA,KAAK,IAAI,CAAC,EAAG;IAC9B,OAAO,IAAI;EACZ;EAEA,IAAKA,KAAK,GAAG,CAAC,EAAG;IAChB,OAAO,MAAM;EACd;EAEA,OAAO,EAAE;AACV,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaJ,aAAa","ignoreList":[]}
|
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _lodash = require("lodash");
|
|
8
|
-
var _scoreToRating = _interopRequireDefault(require("../interpreters/scoreToRating.js"));
|
|
9
|
-
var _presenter = _interopRequireDefault(require("../../config/presenter.js"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
/**
|
|
12
|
-
* Represents the AssessorPresenter.
|
|
13
|
-
*/
|
|
14
|
-
class AssessorPresenter {
|
|
15
|
-
/**
|
|
16
|
-
* Constructs the AssessorPresenter.
|
|
17
|
-
*
|
|
18
|
-
* @param {Object} args A list of arguments to use in the presenter.
|
|
19
|
-
* @param {object} args.targets The HTML elements to render the output to.
|
|
20
|
-
* @param {string} args.targets.output The HTML element to render the individual ratings out to.
|
|
21
|
-
* @param {string} args.targets.overall The HTML element to render the overall rating out to.
|
|
22
|
-
* @param {string} args.keyword The keyword to use for checking, when calculating the overall rating.
|
|
23
|
-
* @param {SEOAssessor} args.assessor The Assessor object to retrieve assessment results from.
|
|
24
|
-
*
|
|
25
|
-
* @constructor
|
|
26
|
-
*/
|
|
27
|
-
constructor(args) {
|
|
28
|
-
this.keyword = args.keyword;
|
|
29
|
-
this.assessor = args.assessor;
|
|
30
|
-
this.output = args.targets.output;
|
|
31
|
-
this.overall = args.targets.overall || "overallScore";
|
|
32
|
-
this.presenterConfig = (0, _presenter.default)();
|
|
33
|
-
this._disableMarkerButtons = false;
|
|
34
|
-
this._activeMarker = false;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Sets the keyword.
|
|
39
|
-
*
|
|
40
|
-
* @param {string} keyword The keyword to use.
|
|
41
|
-
* @returns {void}
|
|
42
|
-
*/
|
|
43
|
-
setKeyword(keyword) {
|
|
44
|
-
this.keyword = keyword;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Checks whether a specific property exists in the presenter configuration.
|
|
49
|
-
*
|
|
50
|
-
* @param {string} property The property name to search for.
|
|
51
|
-
* @returns {boolean} Whether or not the property exists.
|
|
52
|
-
*/
|
|
53
|
-
configHasProperty(property) {
|
|
54
|
-
return this.presenterConfig.hasOwnProperty(property);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Gets a fully formatted indicator object that can be used.
|
|
59
|
-
*
|
|
60
|
-
* @param {string} rating The rating to use.
|
|
61
|
-
* @returns {Object} An object containing the class, the screen reader text, and the full text.
|
|
62
|
-
*/
|
|
63
|
-
getIndicator(rating) {
|
|
64
|
-
return {
|
|
65
|
-
className: this.getIndicatorColorClass(rating),
|
|
66
|
-
screenReaderText: this.getIndicatorScreenReaderText(rating),
|
|
67
|
-
fullText: this.getIndicatorFullText(rating),
|
|
68
|
-
screenReaderReadabilityText: this.getIndicatorScreenReaderReadabilityText(rating)
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Gets the indicator color class from the presenter configuration, if it exists.
|
|
74
|
-
*
|
|
75
|
-
* @param {string} rating The rating to check against the config.
|
|
76
|
-
* @returns {string} String containing the CSS class to be used.
|
|
77
|
-
*/
|
|
78
|
-
getIndicatorColorClass(rating) {
|
|
79
|
-
if (!this.configHasProperty(rating)) {
|
|
80
|
-
return "";
|
|
81
|
-
}
|
|
82
|
-
return this.presenterConfig[rating].className;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Gets the indicator screen reader text from the presenter configuration, if it exists.
|
|
87
|
-
*
|
|
88
|
-
* @param {string} rating The rating to check against the config.
|
|
89
|
-
* @returns {string} Translated string containing the screen reader text to be used.
|
|
90
|
-
*/
|
|
91
|
-
getIndicatorScreenReaderText(rating) {
|
|
92
|
-
if (!this.configHasProperty(rating)) {
|
|
93
|
-
return "";
|
|
94
|
-
}
|
|
95
|
-
return this.presenterConfig[rating].screenReaderText;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Gets the indicator screen reader readability text from the presenter configuration, if it exists.
|
|
100
|
-
*
|
|
101
|
-
* @param {string} rating The rating to check against the config.
|
|
102
|
-
* @returns {string} Translated string containing the screen reader readability text to be used.
|
|
103
|
-
*/
|
|
104
|
-
getIndicatorScreenReaderReadabilityText(rating) {
|
|
105
|
-
if (!this.configHasProperty(rating)) {
|
|
106
|
-
return "";
|
|
107
|
-
}
|
|
108
|
-
return this.presenterConfig[rating].screenReaderReadabilityText;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Gets the indicator full text from the presenter configuration, if it exists.
|
|
113
|
-
*
|
|
114
|
-
* @param {string} rating The rating to check against the config.
|
|
115
|
-
* @returns {string} Translated string containing the full text to be used.
|
|
116
|
-
*/
|
|
117
|
-
getIndicatorFullText(rating) {
|
|
118
|
-
if (!this.configHasProperty(rating)) {
|
|
119
|
-
return "";
|
|
120
|
-
}
|
|
121
|
-
return this.presenterConfig[rating].fullText;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Adds a rating based on the numeric score.
|
|
126
|
-
*
|
|
127
|
-
* @param {Object} result Object based on the Assessment result. Requires a score property to work.
|
|
128
|
-
* @returns {Object} The Assessment result object with the rating added.
|
|
129
|
-
*/
|
|
130
|
-
resultToRating(result) {
|
|
131
|
-
if (!(0, _lodash.isObject)(result)) {
|
|
132
|
-
return "";
|
|
133
|
-
}
|
|
134
|
-
result.rating = (0, _scoreToRating.default)(result.score);
|
|
135
|
-
return result;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Takes the individual assessment results, sorts and rates them.
|
|
140
|
-
*
|
|
141
|
-
* @returns {Object} Object containing all the individual ratings.
|
|
142
|
-
*/
|
|
143
|
-
getIndividualRatings() {
|
|
144
|
-
const ratings = {};
|
|
145
|
-
const validResults = this.sort(this.assessor.getValidResults());
|
|
146
|
-
const mappedResults = validResults.map(this.resultToRating);
|
|
147
|
-
(0, _lodash.forEach)(mappedResults, function (item, key) {
|
|
148
|
-
ratings[key] = this.addRating(item);
|
|
149
|
-
}.bind(this));
|
|
150
|
-
return ratings;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Excludes items from the results that are present in the `exclude` array.
|
|
155
|
-
*
|
|
156
|
-
* @param {Array} results Array containing the items to filter through.
|
|
157
|
-
* @param {Array} exclude Array of results to exclude.
|
|
158
|
-
* @returns {Array} Array containing items that remain after exclusion.
|
|
159
|
-
*/
|
|
160
|
-
excludeFromResults(results, exclude) {
|
|
161
|
-
return (0, _lodash.difference)(results, exclude);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Sorts results based on their score property and always places items considered to be non-sortable, at the top.
|
|
166
|
-
*
|
|
167
|
-
* @param {Array} results Array containing the results that need to be sorted.
|
|
168
|
-
* @returns {Array} Array containing the sorted results.
|
|
169
|
-
*/
|
|
170
|
-
sort(results) {
|
|
171
|
-
const nonSortables = this.getUndefinedScores(results);
|
|
172
|
-
const sortables = this.excludeFromResults(results, nonSortables);
|
|
173
|
-
sortables.sort(function (a, b) {
|
|
174
|
-
return a.score - b.score;
|
|
175
|
-
});
|
|
176
|
-
return nonSortables.concat(sortables);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Returns a subset of results that have an undefined score or a score set to zero.
|
|
181
|
-
*
|
|
182
|
-
* @param {Array} results The results to filter through.
|
|
183
|
-
* @returns {Array} A subset of results containing items with an undefined score or where the score is zero.
|
|
184
|
-
*/
|
|
185
|
-
getUndefinedScores(results) {
|
|
186
|
-
return results.filter(function (result) {
|
|
187
|
-
return (0, _lodash.isUndefined)(result.score) || result.score === 0;
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Creates a rating object based on the item that is being passed.
|
|
193
|
-
*
|
|
194
|
-
* @param {Object} item The item to check and create a rating object from.
|
|
195
|
-
* @returns {Object} Object containing a parsed item, including a colored indicator.
|
|
196
|
-
*/
|
|
197
|
-
addRating(item) {
|
|
198
|
-
const indicator = this.getIndicator(item.rating);
|
|
199
|
-
indicator.text = item.text;
|
|
200
|
-
indicator.identifier = item.getIdentifier();
|
|
201
|
-
if (item.hasMarker()) {
|
|
202
|
-
indicator.marker = item.getMarker();
|
|
203
|
-
}
|
|
204
|
-
return indicator;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Calculates the overall rating score based on the overall score.
|
|
209
|
-
*
|
|
210
|
-
* @param {Number} overallScore The overall score to use in the calculation.
|
|
211
|
-
* @returns {Object} The rating based on the score.
|
|
212
|
-
*/
|
|
213
|
-
getOverallRating(overallScore) {
|
|
214
|
-
let rating = 0;
|
|
215
|
-
if (this.keyword === "") {
|
|
216
|
-
return this.resultToRating({
|
|
217
|
-
score: rating
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
if ((0, _lodash.isNumber)(overallScore)) {
|
|
221
|
-
rating = overallScore / 10;
|
|
222
|
-
}
|
|
223
|
-
return this.resultToRating({
|
|
224
|
-
score: rating
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Marks with a given marker. This will set the active marker to the correct value.
|
|
230
|
-
*
|
|
231
|
-
* @param {string} identifier The identifier for the assessment/marker.
|
|
232
|
-
* @param {Function} marker The marker function.
|
|
233
|
-
* @returns {void}
|
|
234
|
-
*/
|
|
235
|
-
markAssessment(identifier, marker) {
|
|
236
|
-
if (this._activeMarker === identifier) {
|
|
237
|
-
this.removeAllMarks();
|
|
238
|
-
this._activeMarker = false;
|
|
239
|
-
} else {
|
|
240
|
-
marker();
|
|
241
|
-
this._activeMarker = identifier;
|
|
242
|
-
}
|
|
243
|
-
this.render();
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Disables the currently active marker in the UI.
|
|
248
|
-
*
|
|
249
|
-
* @returns {void}
|
|
250
|
-
*/
|
|
251
|
-
disableMarker() {
|
|
252
|
-
this._activeMarker = false;
|
|
253
|
-
this.render();
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Disables the marker buttons.
|
|
258
|
-
*
|
|
259
|
-
* @returns {void}
|
|
260
|
-
*/
|
|
261
|
-
disableMarkerButtons() {
|
|
262
|
-
this._disableMarkerButtons = true;
|
|
263
|
-
this.render();
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Enables the marker buttons.
|
|
268
|
-
*
|
|
269
|
-
* @returns {void}
|
|
270
|
-
*/
|
|
271
|
-
enableMarkerButtons() {
|
|
272
|
-
this._disableMarkerButtons = false;
|
|
273
|
-
this.render();
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Adds an event listener for the marker button
|
|
278
|
-
*
|
|
279
|
-
* @param {string} identifier The identifier for the assessment the marker belongs to.
|
|
280
|
-
* @param {Function} marker The marker function that can mark the assessment in the text.
|
|
281
|
-
* @returns {void}
|
|
282
|
-
*/
|
|
283
|
-
addMarkerEventHandler(identifier, marker) {
|
|
284
|
-
const container = document.getElementById(this.output);
|
|
285
|
-
const markButton = container.getElementsByClassName("js-assessment-results__mark-" + identifier)[0];
|
|
286
|
-
markButton.addEventListener("click", this.markAssessment.bind(this, identifier, marker));
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Renders out both the individual and the overall ratings.
|
|
291
|
-
*
|
|
292
|
-
* @returns {void}
|
|
293
|
-
*/
|
|
294
|
-
render() {
|
|
295
|
-
this.renderIndividualRatings();
|
|
296
|
-
this.renderOverallRating();
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Adds event handlers to the mark buttons.
|
|
301
|
-
*
|
|
302
|
-
* @param {Object} scores The list of rendered scores.
|
|
303
|
-
*
|
|
304
|
-
* @returns {void}
|
|
305
|
-
*/
|
|
306
|
-
bindMarkButtons(scores) {
|
|
307
|
-
// Make sure the button works for every score with a marker.
|
|
308
|
-
(0, _lodash.forEach)(scores, function (score) {
|
|
309
|
-
if (score.hasOwnProperty("marker")) {
|
|
310
|
-
this.addMarkerEventHandler(score.identifier, score.marker);
|
|
311
|
-
}
|
|
312
|
-
}.bind(this));
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* Removes all marks currently on the text.
|
|
317
|
-
*
|
|
318
|
-
* @returns {void}
|
|
319
|
-
*/
|
|
320
|
-
removeAllMarks() {
|
|
321
|
-
const marker = this.assessor.getSpecificMarker();
|
|
322
|
-
marker(this.assessor.getPaper(), []);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Renders out the individual ratings.
|
|
327
|
-
* Here, this method is set to noop. In `post-scraper.js` and `term-scraper.js` where this method is called, it is overridden with noop as well.
|
|
328
|
-
*
|
|
329
|
-
* @returns {void}
|
|
330
|
-
*/
|
|
331
|
-
renderIndividualRatings() {}
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Renders out the overall rating.
|
|
335
|
-
*
|
|
336
|
-
* @returns {void}
|
|
337
|
-
*/
|
|
338
|
-
renderOverallRating() {
|
|
339
|
-
const overallRating = this.getOverallRating(this.assessor.calculateOverallScore());
|
|
340
|
-
const overallRatingElement = document.getElementById(this.overall);
|
|
341
|
-
if (!overallRatingElement) {
|
|
342
|
-
return;
|
|
343
|
-
}
|
|
344
|
-
overallRatingElement.className = "overallScore " + this.getIndicatorColorClass(overallRating.rating);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
var _default = exports.default = AssessorPresenter;
|
|
348
|
-
//# sourceMappingURL=AssessorPresenter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AssessorPresenter.js","names":["_lodash","require","_scoreToRating","_interopRequireDefault","_presenter","e","__esModule","default","AssessorPresenter","constructor","args","keyword","assessor","output","targets","overall","presenterConfig","createConfig","_disableMarkerButtons","_activeMarker","setKeyword","configHasProperty","property","hasOwnProperty","getIndicator","rating","className","getIndicatorColorClass","screenReaderText","getIndicatorScreenReaderText","fullText","getIndicatorFullText","screenReaderReadabilityText","getIndicatorScreenReaderReadabilityText","resultToRating","result","isObject","scoreToRating","score","getIndividualRatings","ratings","validResults","sort","getValidResults","mappedResults","map","forEach","item","key","addRating","bind","excludeFromResults","results","exclude","difference","nonSortables","getUndefinedScores","sortables","a","b","concat","filter","isUndefined","indicator","text","identifier","getIdentifier","hasMarker","marker","getMarker","getOverallRating","overallScore","isNumber","markAssessment","removeAllMarks","render","disableMarker","disableMarkerButtons","enableMarkerButtons","addMarkerEventHandler","container","document","getElementById","markButton","getElementsByClassName","addEventListener","renderIndividualRatings","renderOverallRating","bindMarkButtons","scores","getSpecificMarker","getPaper","overallRating","calculateOverallScore","overallRatingElement","_default","exports"],"sources":["../../../src/scoring/renderers/AssessorPresenter.js"],"sourcesContent":["import { difference, forEach, isNumber, isObject, isUndefined } from \"lodash\";\nimport scoreToRating from \"../interpreters/scoreToRating.js\";\nimport createConfig from \"../../config/presenter.js\";\n\n/**\n * Represents the AssessorPresenter.\n */\nclass AssessorPresenter {\n\t/**\n\t * Constructs the AssessorPresenter.\n\t *\n\t * @param {Object} args A list of arguments to use in the presenter.\n\t * @param {object} args.targets The HTML elements to render the output to.\n\t * @param {string} args.targets.output The HTML element to render the individual ratings out to.\n\t * @param {string} args.targets.overall The HTML element to render the overall rating out to.\n\t * @param {string} args.keyword The keyword to use for checking, when calculating the overall rating.\n\t * @param {SEOAssessor} args.assessor The Assessor object to retrieve assessment results from.\n\t *\n\t * @constructor\n\t */\n\tconstructor( args ) {\n\t\tthis.keyword = args.keyword;\n\t\tthis.assessor = args.assessor;\n\t\tthis.output = args.targets.output;\n\t\tthis.overall = args.targets.overall || \"overallScore\";\n\t\tthis.presenterConfig = createConfig();\n\n\t\tthis._disableMarkerButtons = false;\n\n\t\tthis._activeMarker = false;\n\t}\n\n\t/**\n\t * Sets the keyword.\n\t *\n\t * @param {string} keyword The keyword to use.\n\t * @returns {void}\n\t */\n\tsetKeyword( keyword ) {\n\t\tthis.keyword = keyword;\n\t}\n\n\t/**\n\t * Checks whether a specific property exists in the presenter configuration.\n\t *\n\t * @param {string} property The property name to search for.\n\t * @returns {boolean} Whether or not the property exists.\n\t */\n\tconfigHasProperty( property ) {\n\t\treturn this.presenterConfig.hasOwnProperty( property );\n\t}\n\n\t/**\n\t * Gets a fully formatted indicator object that can be used.\n\t *\n\t * @param {string} rating The rating to use.\n\t * @returns {Object} An object containing the class, the screen reader text, and the full text.\n\t */\n\tgetIndicator( rating ) {\n\t\treturn {\n\t\t\tclassName: this.getIndicatorColorClass( rating ),\n\t\t\tscreenReaderText: this.getIndicatorScreenReaderText( rating ),\n\t\t\tfullText: this.getIndicatorFullText( rating ),\n\t\t\tscreenReaderReadabilityText: this.getIndicatorScreenReaderReadabilityText( rating ),\n\t\t};\n\t}\n\n\t/**\n\t * Gets the indicator color class from the presenter configuration, if it exists.\n\t *\n\t * @param {string} rating The rating to check against the config.\n\t * @returns {string} String containing the CSS class to be used.\n\t */\n\tgetIndicatorColorClass( rating ) {\n\t\tif ( ! this.configHasProperty( rating ) ) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\treturn this.presenterConfig[ rating ].className;\n\t}\n\n\t/**\n\t * Gets the indicator screen reader text from the presenter configuration, if it exists.\n\t *\n\t * @param {string} rating The rating to check against the config.\n\t * @returns {string} Translated string containing the screen reader text to be used.\n\t */\n\tgetIndicatorScreenReaderText( rating ) {\n\t\tif ( ! this.configHasProperty( rating ) ) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\treturn this.presenterConfig[ rating ].screenReaderText;\n\t}\n\n\t/**\n\t * Gets the indicator screen reader readability text from the presenter configuration, if it exists.\n\t *\n\t * @param {string} rating The rating to check against the config.\n\t * @returns {string} Translated string containing the screen reader readability text to be used.\n\t */\n\tgetIndicatorScreenReaderReadabilityText( rating ) {\n\t\tif ( ! this.configHasProperty( rating ) ) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\treturn this.presenterConfig[ rating ].screenReaderReadabilityText;\n\t}\n\n\t/**\n\t * Gets the indicator full text from the presenter configuration, if it exists.\n\t *\n\t * @param {string} rating The rating to check against the config.\n\t * @returns {string} Translated string containing the full text to be used.\n\t */\n\tgetIndicatorFullText( rating ) {\n\t\tif ( ! this.configHasProperty( rating ) ) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\treturn this.presenterConfig[ rating ].fullText;\n\t}\n\n\t/**\n\t * Adds a rating based on the numeric score.\n\t *\n\t * @param {Object} result Object based on the Assessment result. Requires a score property to work.\n\t * @returns {Object} The Assessment result object with the rating added.\n\t */\n\tresultToRating( result ) {\n\t\tif ( ! isObject( result ) ) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tresult.rating = scoreToRating( result.score );\n\n\t\treturn result;\n\t}\n\n\t/**\n\t * Takes the individual assessment results, sorts and rates them.\n\t *\n\t * @returns {Object} Object containing all the individual ratings.\n\t */\n\tgetIndividualRatings() {\n\t\tconst ratings = {};\n\t\tconst validResults = this.sort( this.assessor.getValidResults() );\n\t\tconst mappedResults = validResults.map( this.resultToRating );\n\n\t\tforEach( mappedResults, function( item, key ) {\n\t\t\tratings[ key ] = this.addRating( item );\n\t\t}.bind( this ) );\n\n\t\treturn ratings;\n\t}\n\n\t/**\n\t * Excludes items from the results that are present in the `exclude` array.\n\t *\n\t * @param {Array} results Array containing the items to filter through.\n\t * @param {Array} exclude Array of results to exclude.\n\t * @returns {Array} Array containing items that remain after exclusion.\n\t */\n\texcludeFromResults( results, exclude ) {\n\t\treturn difference( results, exclude );\n\t}\n\n\t/**\n\t * Sorts results based on their score property and always places items considered to be non-sortable, at the top.\n\t *\n\t * @param {Array} results Array containing the results that need to be sorted.\n\t * @returns {Array} Array containing the sorted results.\n\t */\n\tsort( results ) {\n\t\tconst nonSortables = this.getUndefinedScores( results );\n\t\tconst sortables = this.excludeFromResults( results, nonSortables );\n\n\t\tsortables.sort( function( a, b ) {\n\t\t\treturn a.score - b.score;\n\t\t} );\n\n\t\treturn nonSortables.concat( sortables );\n\t}\n\n\t/**\n\t * Returns a subset of results that have an undefined score or a score set to zero.\n\t *\n\t * @param {Array} results The results to filter through.\n\t * @returns {Array} A subset of results containing items with an undefined score or where the score is zero.\n\t */\n\tgetUndefinedScores( results ) {\n\t\treturn results.filter( function( result ) {\n\t\t\treturn isUndefined( result.score ) || result.score === 0;\n\t\t} );\n\t}\n\n\t/**\n\t * Creates a rating object based on the item that is being passed.\n\t *\n\t * @param {Object} item The item to check and create a rating object from.\n\t * @returns {Object} Object containing a parsed item, including a colored indicator.\n\t */\n\taddRating( item ) {\n\t\tconst indicator = this.getIndicator( item.rating );\n\t\tindicator.text = item.text;\n\t\tindicator.identifier = item.getIdentifier();\n\n\t\tif ( item.hasMarker() ) {\n\t\t\tindicator.marker = item.getMarker();\n\t\t}\n\n\t\treturn indicator;\n\t}\n\n\t/**\n\t * Calculates the overall rating score based on the overall score.\n\t *\n\t * @param {Number} overallScore The overall score to use in the calculation.\n\t * @returns {Object} The rating based on the score.\n\t */\n\tgetOverallRating( overallScore ) {\n\t\tlet rating = 0;\n\n\t\tif ( this.keyword === \"\" ) {\n\t\t\treturn this.resultToRating( { score: rating } );\n\t\t}\n\n\t\tif ( isNumber( overallScore ) ) {\n\t\t\trating = ( overallScore / 10 );\n\t\t}\n\n\t\treturn this.resultToRating( { score: rating } );\n\t}\n\n\t/**\n\t * Marks with a given marker. This will set the active marker to the correct value.\n\t *\n\t * @param {string} identifier The identifier for the assessment/marker.\n\t * @param {Function} marker The marker function.\n\t * @returns {void}\n\t */\n\tmarkAssessment( identifier, marker ) {\n\t\tif ( this._activeMarker === identifier ) {\n\t\t\tthis.removeAllMarks();\n\t\t\tthis._activeMarker = false;\n\t\t} else {\n\t\t\tmarker();\n\t\t\tthis._activeMarker = identifier;\n\t\t}\n\n\t\tthis.render();\n\t}\n\n\t/**\n\t * Disables the currently active marker in the UI.\n\t *\n\t * @returns {void}\n\t */\n\tdisableMarker() {\n\t\tthis._activeMarker = false;\n\t\tthis.render();\n\t}\n\n\t/**\n\t * Disables the marker buttons.\n\t *\n\t * @returns {void}\n\t */\n\tdisableMarkerButtons() {\n\t\tthis._disableMarkerButtons = true;\n\t\tthis.render();\n\t}\n\n\t/**\n\t * Enables the marker buttons.\n\t *\n\t * @returns {void}\n\t */\n\tenableMarkerButtons() {\n\t\tthis._disableMarkerButtons = false;\n\t\tthis.render();\n\t}\n\n\t/**\n\t * Adds an event listener for the marker button\n\t *\n\t * @param {string} identifier The identifier for the assessment the marker belongs to.\n\t * @param {Function} marker The marker function that can mark the assessment in the text.\n\t * @returns {void}\n\t */\n\taddMarkerEventHandler( identifier, marker ) {\n\t\tconst container = document.getElementById( this.output );\n\t\tconst markButton = container.getElementsByClassName( \"js-assessment-results__mark-\" + identifier )[ 0 ];\n\n\t\tmarkButton.addEventListener( \"click\", this.markAssessment.bind( this, identifier, marker ) );\n\t}\n\n\t/**\n\t * Renders out both the individual and the overall ratings.\n\t *\n\t * @returns {void}\n\t */\n\trender() {\n\t\tthis.renderIndividualRatings();\n\t\tthis.renderOverallRating();\n\t}\n\n\t/**\n\t * Adds event handlers to the mark buttons.\n\t *\n\t * @param {Object} scores The list of rendered scores.\n\t *\n\t * @returns {void}\n\t */\n\tbindMarkButtons( scores ) {\n\t\t// Make sure the button works for every score with a marker.\n\t\tforEach( scores, function( score ) {\n\t\t\tif ( score.hasOwnProperty( \"marker\" ) ) {\n\t\t\t\tthis.addMarkerEventHandler( score.identifier, score.marker );\n\t\t\t}\n\t\t}.bind( this ) );\n\t}\n\n\t/**\n\t * Removes all marks currently on the text.\n\t *\n\t * @returns {void}\n\t */\n\tremoveAllMarks() {\n\t\tconst marker = this.assessor.getSpecificMarker();\n\n\t\tmarker( this.assessor.getPaper(), [] );\n\t}\n\n\t/**\n\t * Renders out the individual ratings.\n\t * Here, this method is set to noop. In `post-scraper.js` and `term-scraper.js` where this method is called, it is overridden with noop as well.\n\t *\n\t * @returns {void}\n\t */\n\trenderIndividualRatings() {}\n\n\t/**\n\t * Renders out the overall rating.\n\t *\n\t * @returns {void}\n\t */\n\trenderOverallRating() {\n\t\tconst overallRating = this.getOverallRating( this.assessor.calculateOverallScore() );\n\t\tconst overallRatingElement = document.getElementById( this.overall );\n\n\t\tif ( ! overallRatingElement ) {\n\t\t\treturn;\n\t\t}\n\n\t\toverallRatingElement.className = \"overallScore \" + this.getIndicatorColorClass( overallRating.rating );\n\t}\n}\n\nexport default AssessorPresenter;\n"],"mappings":"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","ignoreList":[]}
|