axyseo 2.0.0-alpha.3 → 2.1.1
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/build/config/diacritics.js +1 -7
- package/build/config/diacritics.js.map +1 -1
- package/build/config/getTransliterations.js +6 -14
- package/build/config/getTransliterations.js.map +1 -1
- package/build/config/transliterationsWPstyle.js +5 -12
- package/build/config/transliterationsWPstyle.js.map +1 -1
- package/build/config/wordBoundaries.js +1 -7
- package/build/config/wordBoundaries.js.map +1 -1
- package/build/config/wordBoundariesWithoutPunctuation.js +2 -8
- package/build/config/wordBoundariesWithoutPunctuation.js.map +1 -1
- package/build/const/analysis.js +32 -11
- package/build/const/analysis.js.map +1 -1
- package/build/errors/invalidType.js +1 -8
- package/build/errors/invalidType.js.map +1 -1
- package/build/errors/missingArgument.js +1 -8
- package/build/errors/missingArgument.js.map +1 -1
- package/build/helpers/createMeasurementElement.js +1 -8
- package/build/helpers/createMeasurementElement.js.map +1 -1
- package/build/helpers/domManipulation.js +3 -8
- package/build/helpers/domManipulation.js.map +1 -1
- package/build/helpers/errors.js +5 -10
- package/build/helpers/errors.js.map +1 -1
- package/build/helpers/factory.js +7 -13
- package/build/helpers/factory.js.map +1 -1
- package/build/helpers/formatNumber.js +1 -7
- package/build/helpers/formatNumber.js.map +1 -1
- package/build/helpers/formatString.js +4 -9
- package/build/helpers/formatString.js.map +1 -1
- package/build/helpers/getLanguagesWithWordComplexity.js +1 -7
- package/build/helpers/getLanguagesWithWordComplexity.js.map +1 -1
- package/build/helpers/getLanguagesWithWordFormSupport.js +1 -7
- package/build/helpers/getLanguagesWithWordFormSupport.js.map +1 -1
- package/build/helpers/getWordComplexityConfig.js +9 -15
- package/build/helpers/getWordComplexityConfig.js.map +1 -1
- package/build/helpers/getWordComplexityHelper.js +9 -15
- package/build/helpers/getWordComplexityHelper.js.map +1 -1
- package/build/helpers/htmlEntities.js +6 -11
- package/build/helpers/htmlEntities.js.map +1 -1
- package/build/helpers/includesAny.js +3 -8
- package/build/helpers/includesAny.js.map +1 -1
- package/build/helpers/index.js +30 -72
- package/build/helpers/index.js.map +1 -1
- package/build/helpers/shortlinker/Shortlinker.js +1 -8
- package/build/helpers/shortlinker/Shortlinker.js.map +1 -1
- package/build/helpers/shortlinker/index.js +1 -16
- package/build/helpers/shortlinker/index.js.map +1 -1
- package/build/helpers/shortlinker/singleton.js +5 -13
- package/build/helpers/shortlinker/singleton.js.map +1 -1
- package/build/helpers/types.js +2 -9
- package/build/helpers/types.js.map +1 -1
- package/build/index.js +25 -87
- package/build/index.js.map +1 -1
- package/build/languageProcessing/AbstractResearcher.js +88 -95
- package/build/languageProcessing/AbstractResearcher.js.map +1 -1
- package/build/languageProcessing/helpers/highlighting/getMarkingsInSentence.js +3 -10
- package/build/languageProcessing/helpers/highlighting/getMarkingsInSentence.js.map +1 -1
- package/build/languageProcessing/helpers/html/getFieldsToMark.js +6 -11
- package/build/languageProcessing/helpers/html/getFieldsToMark.js.map +1 -1
- package/build/languageProcessing/helpers/html/getSubheadingTexts.js +3 -8
- package/build/languageProcessing/helpers/html/getSubheadingTexts.js.map +1 -1
- package/build/languageProcessing/helpers/html/getSubheadings.js +2 -12
- package/build/languageProcessing/helpers/html/getSubheadings.js.map +1 -1
- package/build/languageProcessing/helpers/html/html.js +9 -17
- package/build/languageProcessing/helpers/html/html.js.map +1 -1
- package/build/languageProcessing/helpers/html/htmlParser.js +3 -10
- package/build/languageProcessing/helpers/html/htmlParser.js.map +1 -1
- package/build/languageProcessing/helpers/html/matchParagraphs.js +7 -12
- package/build/languageProcessing/helpers/html/matchParagraphs.js.map +1 -1
- package/build/languageProcessing/helpers/html/normalizeHTML.js +4 -10
- package/build/languageProcessing/helpers/html/normalizeHTML.js.map +1 -1
- package/build/languageProcessing/helpers/image/getAltAttribute.js +3 -9
- package/build/languageProcessing/helpers/image/getAltAttribute.js.map +1 -1
- package/build/languageProcessing/helpers/image/getImagesInTree.js +1 -7
- package/build/languageProcessing/helpers/image/getImagesInTree.js.map +1 -1
- package/build/languageProcessing/helpers/image/imageInText.js +5 -12
- package/build/languageProcessing/helpers/image/imageInText.js.map +1 -1
- package/build/languageProcessing/helpers/index.js +5 -40
- package/build/languageProcessing/helpers/index.js.map +1 -1
- package/build/languageProcessing/helpers/language/getLanguage.js +1 -7
- package/build/languageProcessing/helpers/language/getLanguage.js.map +1 -1
- package/build/languageProcessing/helpers/link/checkNofollow.js +3 -10
- package/build/languageProcessing/helpers/link/checkNofollow.js.map +1 -1
- package/build/languageProcessing/helpers/link/getAnchorsFromText.js +1 -7
- package/build/languageProcessing/helpers/link/getAnchorsFromText.js.map +1 -1
- package/build/languageProcessing/helpers/link/getLinkType.js +7 -13
- package/build/languageProcessing/helpers/link/getLinkType.js.map +1 -1
- package/build/languageProcessing/helpers/match/findKeywordFormsInString.js +10 -17
- package/build/languageProcessing/helpers/match/findKeywordFormsInString.js.map +1 -1
- package/build/languageProcessing/helpers/match/isDoubleQuoted.js +4 -10
- package/build/languageProcessing/helpers/match/isDoubleQuoted.js.map +1 -1
- package/build/languageProcessing/helpers/match/matchTextWithArray.js +6 -12
- package/build/languageProcessing/helpers/match/matchTextWithArray.js.map +1 -1
- package/build/languageProcessing/helpers/match/matchTextWithTransliteration.js +16 -22
- package/build/languageProcessing/helpers/match/matchTextWithTransliteration.js.map +1 -1
- package/build/languageProcessing/helpers/match/matchTextWithWord.js +17 -23
- package/build/languageProcessing/helpers/match/matchTextWithWord.js.map +1 -1
- package/build/languageProcessing/helpers/match/matchWordFormsWithSentence.js +7 -15
- package/build/languageProcessing/helpers/match/matchWordFormsWithSentence.js.map +1 -1
- package/build/languageProcessing/helpers/match/processExactMatchRequest.js +3 -9
- package/build/languageProcessing/helpers/match/processExactMatchRequest.js.map +1 -1
- package/build/languageProcessing/helpers/morphology/baseStemmer.js +1 -7
- package/build/languageProcessing/helpers/morphology/baseStemmer.js.map +1 -1
- package/build/languageProcessing/helpers/morphology/buildFormRule.js +1 -7
- package/build/languageProcessing/helpers/morphology/buildFormRule.js.map +1 -1
- package/build/languageProcessing/helpers/morphology/buildTopicStems.js +13 -23
- package/build/languageProcessing/helpers/morphology/buildTopicStems.js.map +1 -1
- package/build/languageProcessing/helpers/morphology/createRulesFromArrays.js +2 -9
- package/build/languageProcessing/helpers/morphology/createRulesFromArrays.js.map +1 -1
- package/build/languageProcessing/helpers/morphology/exceptionListHelpers.js +5 -13
- package/build/languageProcessing/helpers/morphology/exceptionListHelpers.js.map +1 -1
- package/build/languageProcessing/helpers/morphology/findMatchingEndingInArray.js +1 -7
- package/build/languageProcessing/helpers/morphology/findMatchingEndingInArray.js.map +1 -1
- package/build/languageProcessing/helpers/morphology/flattenSortLength.js +3 -8
- package/build/languageProcessing/helpers/morphology/flattenSortLength.js.map +1 -1
- package/build/languageProcessing/helpers/morphology/getAllWordsFromPaper.js +12 -18
- package/build/languageProcessing/helpers/morphology/getAllWordsFromPaper.js.map +1 -1
- package/build/languageProcessing/helpers/morphology/regexHelpers.js +3 -11
- package/build/languageProcessing/helpers/morphology/regexHelpers.js.map +1 -1
- package/build/languageProcessing/helpers/morphology/stemHelpers.js +2 -9
- package/build/languageProcessing/helpers/morphology/stemHelpers.js.map +1 -1
- package/build/languageProcessing/helpers/morphology/stemPrefixedFunctionWords.js +1 -7
- package/build/languageProcessing/helpers/morphology/stemPrefixedFunctionWords.js.map +1 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/directPrecedenceException.js +5 -11
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/directPrecedenceException.js.map +1 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/getClausesSplitOnStopWords.js +9 -15
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/getClausesSplitOnStopWords.js.map +1 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/nonDirectParticiplePrecedenceException.js +9 -15
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/nonDirectParticiplePrecedenceException.js.map +1 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getClauses.js +28 -34
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getClauses.js.map +1 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getIndicesWithRegex.js +1 -7
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getIndicesWithRegex.js.map +1 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/matchRegularParticiples.js +3 -8
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/matchRegularParticiples.js.map +1 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/precedenceException.js +5 -11
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/precedenceException.js.map +1 -1
- package/build/languageProcessing/helpers/prominentWords/determineProminentWords.js +16 -28
- package/build/languageProcessing/helpers/prominentWords/determineProminentWords.js.map +1 -1
- package/build/languageProcessing/helpers/regex/createRegexFromArray.js +10 -16
- package/build/languageProcessing/helpers/regex/createRegexFromArray.js.map +1 -1
- package/build/languageProcessing/helpers/regex/createRegexFromDoubleArray.js +4 -10
- package/build/languageProcessing/helpers/regex/createRegexFromDoubleArray.js.map +1 -1
- package/build/languageProcessing/helpers/regex/createWordRegex.js +12 -18
- package/build/languageProcessing/helpers/regex/createWordRegex.js.map +1 -1
- package/build/languageProcessing/helpers/regex/matchStringWithRegex.js +1 -7
- package/build/languageProcessing/helpers/regex/matchStringWithRegex.js.map +1 -1
- package/build/languageProcessing/helpers/regex/searchAndReplaceWithOneRegex.js +1 -7
- package/build/languageProcessing/helpers/regex/searchAndReplaceWithOneRegex.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/doubleQuotes.js +1 -7
- package/build/languageProcessing/helpers/sanitize/doubleQuotes.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/filterShortcodesFromTree.js +3 -11
- package/build/languageProcessing/helpers/sanitize/filterShortcodesFromTree.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/mergeListItems.js +1 -7
- package/build/languageProcessing/helpers/sanitize/mergeListItems.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/parseSynonyms.js +5 -11
- package/build/languageProcessing/helpers/sanitize/parseSynonyms.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/quotes.js +4 -12
- package/build/languageProcessing/helpers/sanitize/quotes.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/removeEmailAddresses.js +1 -7
- package/build/languageProcessing/helpers/sanitize/removeEmailAddresses.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/removePunctuation.js +7 -13
- package/build/languageProcessing/helpers/sanitize/removePunctuation.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/removePunctuationExceptQuotes.js +1 -7
- package/build/languageProcessing/helpers/sanitize/removePunctuationExceptQuotes.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/removeSentenceTerminators.js +1 -7
- package/build/languageProcessing/helpers/sanitize/removeSentenceTerminators.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/removeURLs.js +1 -7
- package/build/languageProcessing/helpers/sanitize/removeURLs.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/sanitizeLineBreakTag.js +1 -7
- package/build/languageProcessing/helpers/sanitize/sanitizeLineBreakTag.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/sanitizeString.js +5 -10
- package/build/languageProcessing/helpers/sanitize/sanitizeString.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/stripHTMLTags.js +7 -16
- package/build/languageProcessing/helpers/sanitize/stripHTMLTags.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/stripNonTextTags.js +4 -10
- package/build/languageProcessing/helpers/sanitize/stripNonTextTags.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/stripNumbers.js +4 -10
- package/build/languageProcessing/helpers/sanitize/stripNumbers.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/stripSpaces.js +1 -7
- package/build/languageProcessing/helpers/sanitize/stripSpaces.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/stripWordBoundaries.js +2 -10
- package/build/languageProcessing/helpers/sanitize/stripWordBoundaries.js.map +1 -1
- package/build/languageProcessing/helpers/sanitize/unifyWhitespace.js +2 -11
- package/build/languageProcessing/helpers/sanitize/unifyWhitespace.js.map +1 -1
- package/build/languageProcessing/helpers/sentence/SentenceTokenizer.js +22 -29
- package/build/languageProcessing/helpers/sentence/SentenceTokenizer.js.map +1 -1
- package/build/languageProcessing/helpers/sentence/countSentences.js +4 -10
- package/build/languageProcessing/helpers/sentence/countSentences.js.map +1 -1
- package/build/languageProcessing/helpers/sentence/getSentences.js +13 -20
- package/build/languageProcessing/helpers/sentence/getSentences.js.map +1 -1
- package/build/languageProcessing/helpers/sentence/getSentencesFromTree.js +2 -9
- package/build/languageProcessing/helpers/sentence/getSentencesFromTree.js.map +1 -1
- package/build/languageProcessing/helpers/sentence/memoizedSentenceTokenizer.js +4 -10
- package/build/languageProcessing/helpers/sentence/memoizedSentenceTokenizer.js.map +1 -1
- package/build/languageProcessing/helpers/sentence/sentencesLength.js +7 -13
- package/build/languageProcessing/helpers/sentence/sentencesLength.js.map +1 -1
- package/build/languageProcessing/helpers/syllables/DeviationFragment.js +5 -11
- package/build/languageProcessing/helpers/syllables/DeviationFragment.js.map +1 -1
- package/build/languageProcessing/helpers/syllables/countSyllables.js +23 -30
- package/build/languageProcessing/helpers/syllables/countSyllables.js.map +1 -1
- package/build/languageProcessing/helpers/syllables/syllableCountIterator.js +7 -14
- package/build/languageProcessing/helpers/syllables/syllableCountIterator.js.map +1 -1
- package/build/languageProcessing/helpers/syllables/syllableCountStep.js +5 -12
- package/build/languageProcessing/helpers/syllables/syllableCountStep.js.map +1 -1
- package/build/languageProcessing/helpers/transform/transformWordsWithHyphens.js +1 -7
- package/build/languageProcessing/helpers/transform/transformWordsWithHyphens.js.map +1 -1
- package/build/languageProcessing/helpers/transliterate/replaceDiacritics.js +4 -10
- package/build/languageProcessing/helpers/transliterate/replaceDiacritics.js.map +1 -1
- package/build/languageProcessing/helpers/transliterate/specialCharacterMappings.js +12 -23
- package/build/languageProcessing/helpers/transliterate/specialCharacterMappings.js.map +1 -1
- package/build/languageProcessing/helpers/transliterate/transliterate.js +3 -9
- package/build/languageProcessing/helpers/transliterate/transliterate.js.map +1 -1
- package/build/languageProcessing/helpers/transliterate/transliterateWPstyle.js +3 -9
- package/build/languageProcessing/helpers/transliterate/transliterateWPstyle.js.map +1 -1
- package/build/languageProcessing/helpers/url/parseSlug.js +1 -7
- package/build/languageProcessing/helpers/url/parseSlug.js.map +1 -1
- package/build/languageProcessing/helpers/url/url.js +7 -13
- package/build/languageProcessing/helpers/url/url.js.map +1 -1
- package/build/languageProcessing/helpers/word/addWordboundary.js +1 -7
- package/build/languageProcessing/helpers/word/addWordboundary.js.map +1 -1
- package/build/languageProcessing/helpers/word/areWordsInSentence.js +4 -10
- package/build/languageProcessing/helpers/word/areWordsInSentence.js.map +1 -1
- package/build/languageProcessing/helpers/word/countMetaDescriptionLength.js +1 -7
- package/build/languageProcessing/helpers/word/countMetaDescriptionLength.js.map +1 -1
- package/build/languageProcessing/helpers/word/countWords.js +4 -10
- package/build/languageProcessing/helpers/word/countWords.js.map +1 -1
- package/build/languageProcessing/helpers/word/createPunctuationTokens.js +5 -10
- package/build/languageProcessing/helpers/word/createPunctuationTokens.js.map +1 -1
- package/build/languageProcessing/helpers/word/filterWordsFromArray.js +4 -9
- package/build/languageProcessing/helpers/word/filterWordsFromArray.js.map +1 -1
- package/build/languageProcessing/helpers/word/followsIndex.js +5 -10
- package/build/languageProcessing/helpers/word/followsIndex.js.map +1 -1
- package/build/languageProcessing/helpers/word/getAllWordsFromTree.js +7 -13
- package/build/languageProcessing/helpers/word/getAllWordsFromTree.js.map +1 -1
- package/build/languageProcessing/helpers/word/getWords.js +9 -19
- package/build/languageProcessing/helpers/word/getWords.js.map +1 -1
- package/build/languageProcessing/helpers/word/includesIndex.js +5 -10
- package/build/languageProcessing/helpers/word/includesIndex.js.map +1 -1
- package/build/languageProcessing/helpers/word/indices.js +14 -25
- package/build/languageProcessing/helpers/word/indices.js.map +1 -1
- package/build/languageProcessing/helpers/word/markWordsInSentences.js +23 -35
- package/build/languageProcessing/helpers/word/markWordsInSentences.js.map +1 -1
- package/build/languageProcessing/helpers/word/matchWordInSentence.js +8 -15
- package/build/languageProcessing/helpers/word/matchWordInSentence.js.map +1 -1
- package/build/languageProcessing/helpers/word/splitIntoTokens.js +3 -9
- package/build/languageProcessing/helpers/word/splitIntoTokens.js.map +1 -1
- package/build/languageProcessing/index.js +41 -282
- package/build/languageProcessing/index.js.map +1 -1
- package/build/languageProcessing/languages/_default/Researcher.js +5 -13
- package/build/languageProcessing/languages/_default/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/_default/helpers/getStemmer.js +3 -9
- package/build/languageProcessing/languages/_default/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/ar/Researcher.js +19 -27
- package/build/languageProcessing/languages/ar/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/ar/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/ar/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/ar/config/functionWords.js +7 -13
- package/build/languageProcessing/languages/ar/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/ar/config/internal/passiveVerbsWithLongVowel.js +1 -7
- package/build/languageProcessing/languages/ar/config/internal/passiveVerbsWithLongVowel.js.map +1 -1
- package/build/languageProcessing/languages/ar/config/prefixedFunctionWords.js +2 -8
- package/build/languageProcessing/languages/ar/config/prefixedFunctionWords.js.map +1 -1
- package/build/languageProcessing/languages/ar/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/ar/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/ar/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/ar/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/ar/helpers/createBasicWordForms.js +6 -11
- package/build/languageProcessing/languages/ar/helpers/createBasicWordForms.js.map +1 -1
- package/build/languageProcessing/languages/ar/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/ar/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/ar/helpers/internal/stem.js +1 -7
- package/build/languageProcessing/languages/ar/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/ar/helpers/isPassiveSentence.js +5 -12
- package/build/languageProcessing/languages/ar/helpers/isPassiveSentence.js.map +1 -1
- package/build/languageProcessing/languages/ca/Researcher.js +11 -19
- package/build/languageProcessing/languages/ca/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/ca/config/sentenceLength.js +1 -7
- package/build/languageProcessing/languages/ca/config/sentenceLength.js.map +1 -1
- package/build/languageProcessing/languages/ca/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/ca/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/ca/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/ca/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/ca/helpers/getStemmer.js +3 -9
- package/build/languageProcessing/languages/ca/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/cs/Researcher.js +17 -25
- package/build/languageProcessing/languages/cs/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/cs/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/cs/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/cs/config/functionWords.js +4 -10
- package/build/languageProcessing/languages/cs/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceAuxiliaries.js +2 -8
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceEndings.js +2 -8
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceEndings.js.map +1 -1
- package/build/languageProcessing/languages/cs/config/stopWords.js +1 -7
- package/build/languageProcessing/languages/cs/config/stopWords.js.map +1 -1
- package/build/languageProcessing/languages/cs/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/cs/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/cs/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/cs/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/cs/helpers/getClauses.js +9 -16
- package/build/languageProcessing/languages/cs/helpers/getClauses.js.map +1 -1
- package/build/languageProcessing/languages/cs/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/cs/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/cs/helpers/internal/getParticiples.js +6 -12
- package/build/languageProcessing/languages/cs/helpers/internal/getParticiples.js.map +1 -1
- package/build/languageProcessing/languages/cs/helpers/internal/stem.js +1 -7
- package/build/languageProcessing/languages/cs/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/cs/values/Clause.js +5 -12
- package/build/languageProcessing/languages/cs/values/Clause.js.map +1 -1
- package/build/languageProcessing/languages/de/Researcher.js +27 -35
- package/build/languageProcessing/languages/de/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/de/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/de/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/de/config/functionWords.js +11 -19
- package/build/languageProcessing/languages/de/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/de/config/internal/exceptionsParticiplesActive.js +1 -7
- package/build/languageProcessing/languages/de/config/internal/exceptionsParticiplesActive.js.map +1 -1
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceAuxiliaries.js +4 -10
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceIrregulars.js +1 -7
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceIrregulars.js.map +1 -1
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceRegex.js +1 -7
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceRegex.js.map +1 -1
- package/build/languageProcessing/languages/de/config/keyphraseLength.js +1 -7
- package/build/languageProcessing/languages/de/config/keyphraseLength.js.map +1 -1
- package/build/languageProcessing/languages/de/config/stopWords.js +1 -7
- package/build/languageProcessing/languages/de/config/stopWords.js.map +1 -1
- package/build/languageProcessing/languages/de/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/de/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/de/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/de/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/de/config/wordComplexity.js +1 -7
- package/build/languageProcessing/languages/de/config/wordComplexity.js.map +1 -1
- package/build/languageProcessing/languages/de/helpers/calculateFleschReadingScore.js +3 -9
- package/build/languageProcessing/languages/de/helpers/calculateFleschReadingScore.js.map +1 -1
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsComplex.js +1 -7
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsComplex.js.map +1 -1
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsFunction.js +3 -8
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsFunction.js.map +1 -1
- package/build/languageProcessing/languages/de/helpers/getClauses.js +9 -16
- package/build/languageProcessing/languages/de/helpers/getClauses.js.map +1 -1
- package/build/languageProcessing/languages/de/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/de/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/de/helpers/internal/SentenceTokenizer.js +4 -11
- package/build/languageProcessing/languages/de/helpers/internal/SentenceTokenizer.js.map +1 -1
- package/build/languageProcessing/languages/de/helpers/internal/detectAndStemRegularParticiple.js +4 -10
- package/build/languageProcessing/languages/de/helpers/internal/detectAndStemRegularParticiple.js.map +1 -1
- package/build/languageProcessing/languages/de/helpers/internal/determineStem.js +10 -16
- package/build/languageProcessing/languages/de/helpers/internal/determineStem.js.map +1 -1
- package/build/languageProcessing/languages/de/helpers/internal/getParticiples.js +9 -16
- package/build/languageProcessing/languages/de/helpers/internal/getParticiples.js.map +1 -1
- package/build/languageProcessing/languages/de/helpers/internal/stem.js +1 -7
- package/build/languageProcessing/languages/de/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/de/helpers/memoizedSentenceTokenizer.js +4 -10
- package/build/languageProcessing/languages/de/helpers/memoizedSentenceTokenizer.js.map +1 -1
- package/build/languageProcessing/languages/de/values/Clause.js +11 -18
- package/build/languageProcessing/languages/de/values/Clause.js.map +1 -1
- package/build/languageProcessing/languages/el/Researcher.js +18 -26
- package/build/languageProcessing/languages/el/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/el/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/el/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/el/config/functionWords.js +4 -10
- package/build/languageProcessing/languages/el/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/el/config/internal/auxiliaries.js +1 -7
- package/build/languageProcessing/languages/el/config/internal/auxiliaries.js.map +1 -1
- package/build/languageProcessing/languages/el/config/internal/morphologicalPassiveSuffixes.js +1 -7
- package/build/languageProcessing/languages/el/config/internal/morphologicalPassiveSuffixes.js.map +1 -1
- package/build/languageProcessing/languages/el/config/internal/nonPassiveVerbStems.js +1 -7
- package/build/languageProcessing/languages/el/config/internal/nonPassiveVerbStems.js.map +1 -1
- package/build/languageProcessing/languages/el/config/stopWords.js +1 -7
- package/build/languageProcessing/languages/el/config/stopWords.js.map +1 -1
- package/build/languageProcessing/languages/el/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/el/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/el/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/el/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/el/helpers/getClauses.js +9 -16
- package/build/languageProcessing/languages/el/helpers/getClauses.js.map +1 -1
- package/build/languageProcessing/languages/el/helpers/getStemmer.js +7 -14
- package/build/languageProcessing/languages/el/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/el/helpers/internal/getParticiples.js +3 -9
- package/build/languageProcessing/languages/el/helpers/internal/getParticiples.js.map +1 -1
- package/build/languageProcessing/languages/el/helpers/internal/stem.js +4 -13
- package/build/languageProcessing/languages/el/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/el/helpers/isPassiveSentence.js +7 -14
- package/build/languageProcessing/languages/el/helpers/isPassiveSentence.js.map +1 -1
- package/build/languageProcessing/languages/el/values/Clause.js +6 -12
- package/build/languageProcessing/languages/el/values/Clause.js.map +1 -1
- package/build/languageProcessing/languages/en/Researcher.js +21 -29
- package/build/languageProcessing/languages/en/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/en/config/abbreviations.js +2 -8
- package/build/languageProcessing/languages/en/config/abbreviations.js.map +1 -1
- package/build/languageProcessing/languages/en/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/en/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/en/config/functionWords.js +11 -18
- package/build/languageProcessing/languages/en/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceAuxiliaries.js +6 -12
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceIrregulars.js +1 -7
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceIrregulars.js.map +1 -1
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceNonVerbEndingEd.js +1 -7
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceNonVerbEndingEd.js.map +1 -1
- package/build/languageProcessing/languages/en/config/regularParticiplesRegex.js +1 -7
- package/build/languageProcessing/languages/en/config/regularParticiplesRegex.js.map +1 -1
- package/build/languageProcessing/languages/en/config/stopWords.js +1 -7
- package/build/languageProcessing/languages/en/config/stopWords.js.map +1 -1
- package/build/languageProcessing/languages/en/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/en/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/en/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/en/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/en/config/wordComplexity.js +1 -7
- package/build/languageProcessing/languages/en/config/wordComplexity.js.map +1 -1
- package/build/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js +3 -9
- package/build/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js.map +1 -1
- package/build/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js +4 -10
- package/build/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js.map +1 -1
- package/build/languageProcessing/languages/en/helpers/getClauses.js +15 -22
- package/build/languageProcessing/languages/en/helpers/getClauses.js.map +1 -1
- package/build/languageProcessing/languages/en/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/en/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/en/helpers/internal/determineStem.js +21 -32
- package/build/languageProcessing/languages/en/helpers/internal/determineStem.js.map +1 -1
- package/build/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js +6 -13
- package/build/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js.map +1 -1
- package/build/languageProcessing/languages/en/helpers/internal/getParticiples.js +8 -14
- package/build/languageProcessing/languages/en/helpers/internal/getParticiples.js.map +1 -1
- package/build/languageProcessing/languages/en/helpers/internal/getVerbStem.js +6 -16
- package/build/languageProcessing/languages/en/helpers/internal/getVerbStem.js.map +1 -1
- package/build/languageProcessing/languages/en/values/Clause.js +10 -17
- package/build/languageProcessing/languages/en/values/Clause.js.map +1 -1
- package/build/languageProcessing/languages/es/Researcher.js +23 -31
- package/build/languageProcessing/languages/es/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/es/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/es/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/es/config/functionWords.js +11 -17
- package/build/languageProcessing/languages/es/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceAuxiliaries.js +1 -7
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceParticiples.js +1 -7
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceParticiples.js.map +1 -1
- package/build/languageProcessing/languages/es/config/sentenceLength.js +1 -7
- package/build/languageProcessing/languages/es/config/sentenceLength.js.map +1 -1
- package/build/languageProcessing/languages/es/config/stopWords.js +1 -7
- package/build/languageProcessing/languages/es/config/stopWords.js.map +1 -1
- package/build/languageProcessing/languages/es/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/es/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/es/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/es/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/es/config/wordComplexity.js +1 -7
- package/build/languageProcessing/languages/es/config/wordComplexity.js.map +1 -1
- package/build/languageProcessing/languages/es/helpers/calculateFleschReadingScore.js +3 -9
- package/build/languageProcessing/languages/es/helpers/calculateFleschReadingScore.js.map +1 -1
- package/build/languageProcessing/languages/es/helpers/checkIfWordIsComplex.js +1 -7
- package/build/languageProcessing/languages/es/helpers/checkIfWordIsComplex.js.map +1 -1
- package/build/languageProcessing/languages/es/helpers/getClauses.js +10 -17
- package/build/languageProcessing/languages/es/helpers/getClauses.js.map +1 -1
- package/build/languageProcessing/languages/es/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/es/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/es/helpers/internal/checkVerbStemModifications.js +7 -13
- package/build/languageProcessing/languages/es/helpers/internal/checkVerbStemModifications.js.map +1 -1
- package/build/languageProcessing/languages/es/helpers/internal/getParticiples.js +6 -12
- package/build/languageProcessing/languages/es/helpers/internal/getParticiples.js.map +1 -1
- package/build/languageProcessing/languages/es/helpers/internal/stem.js +5 -13
- package/build/languageProcessing/languages/es/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/es/values/Clause.js +7 -14
- package/build/languageProcessing/languages/es/values/Clause.js.map +1 -1
- package/build/languageProcessing/languages/fa/Researcher.js +19 -27
- package/build/languageProcessing/languages/fa/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/fa/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/fa/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/fa/config/functionWords.js +4 -10
- package/build/languageProcessing/languages/fa/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/fa/config/internal/participles.js +1 -7
- package/build/languageProcessing/languages/fa/config/internal/participles.js.map +1 -1
- package/build/languageProcessing/languages/fa/config/sentenceLength.js +1 -7
- package/build/languageProcessing/languages/fa/config/sentenceLength.js.map +1 -1
- package/build/languageProcessing/languages/fa/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/fa/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/fa/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/fa/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/fa/helpers/createBasicWordForms.js +3 -9
- package/build/languageProcessing/languages/fa/helpers/createBasicWordForms.js.map +1 -1
- package/build/languageProcessing/languages/fa/helpers/getStemmer.js +3 -9
- package/build/languageProcessing/languages/fa/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/fa/helpers/isPassiveSentence.js +6 -12
- package/build/languageProcessing/languages/fa/helpers/isPassiveSentence.js.map +1 -1
- package/build/languageProcessing/languages/fr/Researcher.js +21 -29
- package/build/languageProcessing/languages/fr/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/fr/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/fr/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/fr/config/functionWords.js +11 -17
- package/build/languageProcessing/languages/fr/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/fr/config/internal/exceptionsParticiplesActive.js +4 -9
- package/build/languageProcessing/languages/fr/config/internal/exceptionsParticiplesActive.js.map +1 -1
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceAuxiliaries.js +1 -7
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceIrregulars.js +4 -9
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceIrregulars.js.map +1 -1
- package/build/languageProcessing/languages/fr/config/stopWords.js +1 -7
- package/build/languageProcessing/languages/fr/config/stopWords.js.map +1 -1
- package/build/languageProcessing/languages/fr/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/fr/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/fr/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/fr/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/fr/config/wordComplexity.js +1 -7
- package/build/languageProcessing/languages/fr/config/wordComplexity.js.map +1 -1
- package/build/languageProcessing/languages/fr/helpers/calculateFleschReadingScore.js +3 -9
- package/build/languageProcessing/languages/fr/helpers/calculateFleschReadingScore.js.map +1 -1
- package/build/languageProcessing/languages/fr/helpers/checkIfWordIsComplex.js +3 -9
- package/build/languageProcessing/languages/fr/helpers/checkIfWordIsComplex.js.map +1 -1
- package/build/languageProcessing/languages/fr/helpers/getClauses.js +10 -17
- package/build/languageProcessing/languages/fr/helpers/getClauses.js.map +1 -1
- package/build/languageProcessing/languages/fr/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/fr/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/fr/helpers/internal/getParticiples.js +11 -16
- package/build/languageProcessing/languages/fr/helpers/internal/getParticiples.js.map +1 -1
- package/build/languageProcessing/languages/fr/helpers/internal/stem.js +3 -10
- package/build/languageProcessing/languages/fr/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/fr/values/Clause.js +14 -20
- package/build/languageProcessing/languages/fr/values/Clause.js.map +1 -1
- package/build/languageProcessing/languages/he/Researcher.js +21 -29
- package/build/languageProcessing/languages/he/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/he/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/he/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/he/config/functionWords.js +4 -11
- package/build/languageProcessing/languages/he/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/he/config/internal/regularRootsHufal.js +1 -7
- package/build/languageProcessing/languages/he/config/internal/regularRootsHufal.js.map +1 -1
- package/build/languageProcessing/languages/he/config/internal/regularRootsNifal.js +1 -7
- package/build/languageProcessing/languages/he/config/internal/regularRootsNifal.js.map +1 -1
- package/build/languageProcessing/languages/he/config/internal/regularRootsPual.js +1 -7
- package/build/languageProcessing/languages/he/config/internal/regularRootsPual.js.map +1 -1
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsHufal.js +1 -7
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsHufal.js.map +1 -1
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsNifal.js +1 -7
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsNifal.js.map +1 -1
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsPual.js +1 -7
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsPual.js.map +1 -1
- package/build/languageProcessing/languages/he/config/prefixedFunctionWords.js +2 -8
- package/build/languageProcessing/languages/he/config/prefixedFunctionWords.js.map +1 -1
- package/build/languageProcessing/languages/he/config/sentenceLength.js +1 -7
- package/build/languageProcessing/languages/he/config/sentenceLength.js.map +1 -1
- package/build/languageProcessing/languages/he/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/he/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/he/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/he/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/he/helpers/createBasicWordForms.js +6 -11
- package/build/languageProcessing/languages/he/helpers/createBasicWordForms.js.map +1 -1
- package/build/languageProcessing/languages/he/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/he/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/he/helpers/internal/stem.js +1 -7
- package/build/languageProcessing/languages/he/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/he/helpers/isPassiveSentence.js +10 -16
- package/build/languageProcessing/languages/he/helpers/isPassiveSentence.js.map +1 -1
- package/build/languageProcessing/languages/he/helpers/stem.js +1 -7
- package/build/languageProcessing/languages/he/helpers/stem.js.map +1 -1
- package/build/languageProcessing/languages/hu/Researcher.js +19 -27
- package/build/languageProcessing/languages/hu/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/hu/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/hu/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/hu/config/functionWords.js +4 -10
- package/build/languageProcessing/languages/hu/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/hu/config/internal/auxiliaries.js +1 -7
- package/build/languageProcessing/languages/hu/config/internal/auxiliaries.js.map +1 -1
- package/build/languageProcessing/languages/hu/config/internal/morphologicalPassiveAffixes.js +3 -9
- package/build/languageProcessing/languages/hu/config/internal/morphologicalPassiveAffixes.js.map +1 -1
- package/build/languageProcessing/languages/hu/config/internal/nonPassivesInVaAndVe.js +2 -7
- package/build/languageProcessing/languages/hu/config/internal/nonPassivesInVaAndVe.js.map +1 -1
- package/build/languageProcessing/languages/hu/config/internal/odikVerbs.js +1 -7
- package/build/languageProcessing/languages/hu/config/internal/odikVerbs.js.map +1 -1
- package/build/languageProcessing/languages/hu/config/internal/participles.js +2 -7
- package/build/languageProcessing/languages/hu/config/internal/participles.js.map +1 -1
- package/build/languageProcessing/languages/hu/config/stopWords.js +2 -7
- package/build/languageProcessing/languages/hu/config/stopWords.js.map +1 -1
- package/build/languageProcessing/languages/hu/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/hu/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/hu/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/hu/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/hu/helpers/getClauses.js +9 -16
- package/build/languageProcessing/languages/hu/helpers/getClauses.js.map +1 -1
- package/build/languageProcessing/languages/hu/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/hu/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/hu/helpers/internal/getParticiples.js +6 -12
- package/build/languageProcessing/languages/hu/helpers/internal/getParticiples.js.map +1 -1
- package/build/languageProcessing/languages/hu/helpers/internal/stem.js +1 -7
- package/build/languageProcessing/languages/hu/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/hu/helpers/isPassiveSentence.js +9 -15
- package/build/languageProcessing/languages/hu/helpers/isPassiveSentence.js.map +1 -1
- package/build/languageProcessing/languages/hu/values/Clause.js +8 -14
- package/build/languageProcessing/languages/hu/values/Clause.js.map +1 -1
- package/build/languageProcessing/languages/id/Researcher.js +17 -25
- package/build/languageProcessing/languages/id/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/id/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/id/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/id/config/functionWords.js +8 -16
- package/build/languageProcessing/languages/id/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/id/config/internal/nonPassiveVerbsStartingDi.js +1 -7
- package/build/languageProcessing/languages/id/config/internal/nonPassiveVerbsStartingDi.js.map +1 -1
- package/build/languageProcessing/languages/id/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/id/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/id/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/id/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/id/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/id/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/id/helpers/internal/stem.js +29 -34
- package/build/languageProcessing/languages/id/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/id/helpers/internal/stemHelpers.js +5 -13
- package/build/languageProcessing/languages/id/helpers/internal/stemHelpers.js.map +1 -1
- package/build/languageProcessing/languages/id/helpers/isPassiveSentence.js +5 -12
- package/build/languageProcessing/languages/id/helpers/isPassiveSentence.js.map +1 -1
- package/build/languageProcessing/languages/id/helpers/splitIntoTokensCustom.js +3 -9
- package/build/languageProcessing/languages/id/helpers/splitIntoTokensCustom.js.map +1 -1
- package/build/languageProcessing/languages/it/Researcher.js +23 -31
- package/build/languageProcessing/languages/it/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/it/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/it/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/it/config/functionWords.js +11 -17
- package/build/languageProcessing/languages/it/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceAuxiliaries.js +1 -7
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceParticiples.js +1 -7
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceParticiples.js.map +1 -1
- package/build/languageProcessing/languages/it/config/sentenceLength.js +1 -7
- package/build/languageProcessing/languages/it/config/sentenceLength.js.map +1 -1
- package/build/languageProcessing/languages/it/config/stopWords.js +1 -7
- package/build/languageProcessing/languages/it/config/stopWords.js.map +1 -1
- package/build/languageProcessing/languages/it/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/it/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/it/config/twoPartTransitionWords.js +1 -7
- package/build/languageProcessing/languages/it/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/it/helpers/calculateFleschReadingScore.js +3 -9
- package/build/languageProcessing/languages/it/helpers/calculateFleschReadingScore.js.map +1 -1
- package/build/languageProcessing/languages/it/helpers/getClauses.js +10 -17
- package/build/languageProcessing/languages/it/helpers/getClauses.js.map +1 -1
- package/build/languageProcessing/languages/it/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/it/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/it/helpers/internal/getParticiples.js +6 -12
- package/build/languageProcessing/languages/it/helpers/internal/getParticiples.js.map +1 -1
- package/build/languageProcessing/languages/it/helpers/internal/stem.js +3 -9
- package/build/languageProcessing/languages/it/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/it/values/Clause.js +7 -14
- package/build/languageProcessing/languages/it/values/Clause.js.map +1 -1
- package/build/languageProcessing/languages/ja/Researcher.js +51 -59
- package/build/languageProcessing/languages/ja/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/ja/config/assessmentApplicabilityCharacterCount.js +1 -7
- package/build/languageProcessing/languages/ja/config/assessmentApplicabilityCharacterCount.js.map +1 -1
- package/build/languageProcessing/languages/ja/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/ja/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/ja/config/functionWords.js +1 -7
- package/build/languageProcessing/languages/ja/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/ja/config/keyphraseLength.js +1 -7
- package/build/languageProcessing/languages/ja/config/keyphraseLength.js.map +1 -1
- package/build/languageProcessing/languages/ja/config/metaDescriptionLength.js +1 -7
- package/build/languageProcessing/languages/ja/config/metaDescriptionLength.js.map +1 -1
- package/build/languageProcessing/languages/ja/config/paragraphLength.js +1 -7
- package/build/languageProcessing/languages/ja/config/paragraphLength.js.map +1 -1
- package/build/languageProcessing/languages/ja/config/sentenceLength.js +1 -7
- package/build/languageProcessing/languages/ja/config/sentenceLength.js.map +1 -1
- package/build/languageProcessing/languages/ja/config/subheadingsTooLong.js +1 -7
- package/build/languageProcessing/languages/ja/config/subheadingsTooLong.js.map +1 -1
- package/build/languageProcessing/languages/ja/config/textLength.js +1 -7
- package/build/languageProcessing/languages/ja/config/textLength.js.map +1 -1
- package/build/languageProcessing/languages/ja/config/topicLength.js +1 -7
- package/build/languageProcessing/languages/ja/config/topicLength.js.map +1 -1
- package/build/languageProcessing/languages/ja/config/transitionWords.js +2 -7
- package/build/languageProcessing/languages/ja/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js +16 -22
- package/build/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js.map +1 -1
- package/build/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js +5 -11
- package/build/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js.map +1 -1
- package/build/languageProcessing/languages/ja/customResearches/getWordForms.js +11 -17
- package/build/languageProcessing/languages/ja/customResearches/getWordForms.js.map +1 -1
- package/build/languageProcessing/languages/ja/customResearches/textLength.js +3 -9
- package/build/languageProcessing/languages/ja/customResearches/textLength.js.map +1 -1
- package/build/languageProcessing/languages/ja/helpers/countCharacters.js +6 -12
- package/build/languageProcessing/languages/ja/helpers/countCharacters.js.map +1 -1
- package/build/languageProcessing/languages/ja/helpers/customGetStemmer.js +8 -14
- package/build/languageProcessing/languages/ja/helpers/customGetStemmer.js.map +1 -1
- package/build/languageProcessing/languages/ja/helpers/getContentWords.js +5 -11
- package/build/languageProcessing/languages/ja/helpers/getContentWords.js.map +1 -1
- package/build/languageProcessing/languages/ja/helpers/getWords.js +8 -15
- package/build/languageProcessing/languages/ja/helpers/getWords.js.map +1 -1
- package/build/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js +6 -13
- package/build/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js.map +1 -1
- package/build/languageProcessing/languages/ja/helpers/internal/createWordForms.js +4 -9
- package/build/languageProcessing/languages/ja/helpers/internal/createWordForms.js.map +1 -1
- package/build/languageProcessing/languages/ja/helpers/internal/determineStem.js +3 -9
- package/build/languageProcessing/languages/ja/helpers/internal/determineStem.js.map +1 -1
- package/build/languageProcessing/languages/ja/helpers/matchTextWithWord.js +7 -13
- package/build/languageProcessing/languages/ja/helpers/matchTextWithWord.js.map +1 -1
- package/build/languageProcessing/languages/ja/helpers/matchTransitionWords.js +3 -9
- package/build/languageProcessing/languages/ja/helpers/matchTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/ja/helpers/memoizedSentenceTokenizer.js +4 -10
- package/build/languageProcessing/languages/ja/helpers/memoizedSentenceTokenizer.js.map +1 -1
- package/build/languageProcessing/languages/ja/helpers/splitIntoTokensCustom.js +5 -11
- package/build/languageProcessing/languages/ja/helpers/splitIntoTokensCustom.js.map +1 -1
- package/build/languageProcessing/languages/ja/helpers/wordsCharacterCount.js +1 -7
- package/build/languageProcessing/languages/ja/helpers/wordsCharacterCount.js.map +1 -1
- package/build/languageProcessing/languages/nb/Researcher.js +17 -25
- package/build/languageProcessing/languages/nb/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/nb/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/nb/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/nb/config/functionWords.js +5 -11
- package/build/languageProcessing/languages/nb/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/nb/config/internal/participles.js +2 -7
- package/build/languageProcessing/languages/nb/config/internal/participles.js.map +1 -1
- package/build/languageProcessing/languages/nb/config/internal/passiveVoiceAuxiliaries.js +1 -7
- package/build/languageProcessing/languages/nb/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
- package/build/languageProcessing/languages/nb/config/stopWords.js +1 -7
- package/build/languageProcessing/languages/nb/config/stopWords.js.map +1 -1
- package/build/languageProcessing/languages/nb/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/nb/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/nb/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/nb/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/nb/helpers/getClauses.js +11 -18
- package/build/languageProcessing/languages/nb/helpers/getClauses.js.map +1 -1
- package/build/languageProcessing/languages/nb/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/nb/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/nb/helpers/internal/getParticiples.js +8 -14
- package/build/languageProcessing/languages/nb/helpers/internal/getParticiples.js.map +1 -1
- package/build/languageProcessing/languages/nb/helpers/internal/stem.js +1 -7
- package/build/languageProcessing/languages/nb/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/nb/values/Clause.js +8 -14
- package/build/languageProcessing/languages/nb/values/Clause.js.map +1 -1
- package/build/languageProcessing/languages/nl/Researcher.js +23 -31
- package/build/languageProcessing/languages/nl/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/nl/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/nl/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/nl/config/functionWords.js +10 -16
- package/build/languageProcessing/languages/nl/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/nl/config/internal/nonParticiples.js +1 -7
- package/build/languageProcessing/languages/nl/config/internal/nonParticiples.js.map +1 -1
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceAuxiliaries.js +1 -7
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceIrregulars.js +1 -7
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceIrregulars.js.map +1 -1
- package/build/languageProcessing/languages/nl/config/keyphraseLength.js +1 -7
- package/build/languageProcessing/languages/nl/config/keyphraseLength.js.map +1 -1
- package/build/languageProcessing/languages/nl/config/stopWords.js +1 -7
- package/build/languageProcessing/languages/nl/config/stopWords.js.map +1 -1
- package/build/languageProcessing/languages/nl/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/nl/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/nl/config/twoPartTransitionWords.js +1 -7
- package/build/languageProcessing/languages/nl/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/nl/helpers/calculateFleschReadingScore.js +3 -9
- package/build/languageProcessing/languages/nl/helpers/calculateFleschReadingScore.js.map +1 -1
- package/build/languageProcessing/languages/nl/helpers/getClauses.js +9 -16
- package/build/languageProcessing/languages/nl/helpers/getClauses.js.map +1 -1
- package/build/languageProcessing/languages/nl/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/nl/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/nl/helpers/internal/checkExceptionsWithFullForms.js +7 -13
- package/build/languageProcessing/languages/nl/helpers/internal/checkExceptionsWithFullForms.js.map +1 -1
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemRegularParticiple.js +8 -14
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemRegularParticiple.js.map +1 -1
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemSuffixes.js +10 -15
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemSuffixes.js.map +1 -1
- package/build/languageProcessing/languages/nl/helpers/internal/determineStem.js +10 -16
- package/build/languageProcessing/languages/nl/helpers/internal/determineStem.js.map +1 -1
- package/build/languageProcessing/languages/nl/helpers/internal/getParticiples.js +7 -13
- package/build/languageProcessing/languages/nl/helpers/internal/getParticiples.js.map +1 -1
- package/build/languageProcessing/languages/nl/helpers/internal/getStemWordsWithTAndDEnding.js +7 -12
- package/build/languageProcessing/languages/nl/helpers/internal/getStemWordsWithTAndDEnding.js.map +1 -1
- package/build/languageProcessing/languages/nl/helpers/internal/stem.js +17 -23
- package/build/languageProcessing/languages/nl/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/nl/helpers/internal/stemModificationHelpers.js +4 -11
- package/build/languageProcessing/languages/nl/helpers/internal/stemModificationHelpers.js.map +1 -1
- package/build/languageProcessing/languages/nl/helpers/internal/stemTOrDFromEndOfWord.js +8 -14
- package/build/languageProcessing/languages/nl/helpers/internal/stemTOrDFromEndOfWord.js.map +1 -1
- package/build/languageProcessing/languages/nl/values/Clause.js +10 -16
- package/build/languageProcessing/languages/nl/values/Clause.js.map +1 -1
- package/build/languageProcessing/languages/pl/Researcher.js +19 -27
- package/build/languageProcessing/languages/pl/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/pl/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/pl/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/pl/config/functionWords.js +9 -16
- package/build/languageProcessing/languages/pl/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/pl/config/internal/auxiliaries.js +1 -7
- package/build/languageProcessing/languages/pl/config/internal/auxiliaries.js.map +1 -1
- package/build/languageProcessing/languages/pl/config/internal/participles.js +1 -7
- package/build/languageProcessing/languages/pl/config/internal/participles.js.map +1 -1
- package/build/languageProcessing/languages/pl/config/sentenceLength.js +1 -7
- package/build/languageProcessing/languages/pl/config/sentenceLength.js.map +1 -1
- package/build/languageProcessing/languages/pl/config/stopWords.js +1 -7
- package/build/languageProcessing/languages/pl/config/stopWords.js.map +1 -1
- package/build/languageProcessing/languages/pl/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/pl/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/pl/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/pl/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/pl/helpers/getClauses.js +9 -16
- package/build/languageProcessing/languages/pl/helpers/getClauses.js.map +1 -1
- package/build/languageProcessing/languages/pl/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/pl/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/pl/helpers/internal/getParticiples.js +7 -13
- package/build/languageProcessing/languages/pl/helpers/internal/getParticiples.js.map +1 -1
- package/build/languageProcessing/languages/pl/helpers/internal/stem.js +1 -7
- package/build/languageProcessing/languages/pl/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/pl/values/Clause.js +8 -14
- package/build/languageProcessing/languages/pl/values/Clause.js.map +1 -1
- package/build/languageProcessing/languages/pt/Researcher.js +23 -31
- package/build/languageProcessing/languages/pt/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/pt/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/pt/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/pt/config/functionWords.js +10 -16
- package/build/languageProcessing/languages/pt/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceAuxiliaries.js +1 -7
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceParticiples.js +1 -7
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceParticiples.js.map +1 -1
- package/build/languageProcessing/languages/pt/config/sentenceLength.js +1 -7
- package/build/languageProcessing/languages/pt/config/sentenceLength.js.map +1 -1
- package/build/languageProcessing/languages/pt/config/stopWords.js +1 -7
- package/build/languageProcessing/languages/pt/config/stopWords.js.map +1 -1
- package/build/languageProcessing/languages/pt/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/pt/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/pt/config/twoPartTransitionWords.js +1 -7
- package/build/languageProcessing/languages/pt/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/pt/helpers/calculateFleschReadingScore.js +3 -9
- package/build/languageProcessing/languages/pt/helpers/calculateFleschReadingScore.js.map +1 -1
- package/build/languageProcessing/languages/pt/helpers/getClauses.js +10 -17
- package/build/languageProcessing/languages/pt/helpers/getClauses.js.map +1 -1
- package/build/languageProcessing/languages/pt/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/pt/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/pt/helpers/internal/getParticiples.js +6 -12
- package/build/languageProcessing/languages/pt/helpers/internal/getParticiples.js.map +1 -1
- package/build/languageProcessing/languages/pt/helpers/internal/stem.js +3 -9
- package/build/languageProcessing/languages/pt/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/pt/values/Clause.js +7 -14
- package/build/languageProcessing/languages/pt/values/Clause.js.map +1 -1
- package/build/languageProcessing/languages/ru/Researcher.js +23 -31
- package/build/languageProcessing/languages/ru/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/ru/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/ru/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/ru/config/fleschReadingEaseScores.js +1 -7
- package/build/languageProcessing/languages/ru/config/fleschReadingEaseScores.js.map +1 -1
- package/build/languageProcessing/languages/ru/config/functionWords.js +8 -14
- package/build/languageProcessing/languages/ru/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/ru/config/internal/participlesShortenedList.js +2 -8
- package/build/languageProcessing/languages/ru/config/internal/participlesShortenedList.js.map +1 -1
- package/build/languageProcessing/languages/ru/config/internal/passiveVoiceParticiples.js +1 -7
- package/build/languageProcessing/languages/ru/config/internal/passiveVoiceParticiples.js.map +1 -1
- package/build/languageProcessing/languages/ru/config/sentenceLength.js +1 -7
- package/build/languageProcessing/languages/ru/config/sentenceLength.js.map +1 -1
- package/build/languageProcessing/languages/ru/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/ru/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/ru/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/ru/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/ru/helpers/calculateFleschReadingScore.js +3 -9
- package/build/languageProcessing/languages/ru/helpers/calculateFleschReadingScore.js.map +1 -1
- package/build/languageProcessing/languages/ru/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/ru/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/ru/helpers/internal/stem.js +1 -7
- package/build/languageProcessing/languages/ru/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/ru/helpers/isPassiveSentence.js +6 -12
- package/build/languageProcessing/languages/ru/helpers/isPassiveSentence.js.map +1 -1
- package/build/languageProcessing/languages/sk/Researcher.js +17 -25
- package/build/languageProcessing/languages/sk/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/sk/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/sk/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/sk/config/functionWords.js +5 -11
- package/build/languageProcessing/languages/sk/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/sk/config/internal/nonPassives.js +1 -7
- package/build/languageProcessing/languages/sk/config/internal/nonPassives.js.map +1 -1
- package/build/languageProcessing/languages/sk/config/internal/passiveVoiceAuxiliaries.js +2 -8
- package/build/languageProcessing/languages/sk/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
- package/build/languageProcessing/languages/sk/config/stopWords.js +1 -7
- package/build/languageProcessing/languages/sk/config/stopWords.js.map +1 -1
- package/build/languageProcessing/languages/sk/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/sk/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/sk/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/sk/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/sk/helpers/getClauses.js +9 -16
- package/build/languageProcessing/languages/sk/helpers/getClauses.js.map +1 -1
- package/build/languageProcessing/languages/sk/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/sk/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/sk/helpers/internal/getParticiples.js +3 -9
- package/build/languageProcessing/languages/sk/helpers/internal/getParticiples.js.map +1 -1
- package/build/languageProcessing/languages/sk/helpers/internal/stem.js +1 -7
- package/build/languageProcessing/languages/sk/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/sk/values/Clause.js +8 -14
- package/build/languageProcessing/languages/sk/values/Clause.js.map +1 -1
- package/build/languageProcessing/languages/sv/Researcher.js +17 -25
- package/build/languageProcessing/languages/sv/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/sv/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/sv/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/sv/config/functionWords.js +7 -13
- package/build/languageProcessing/languages/sv/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/sv/config/internal/passiveVerbs.js +2 -7
- package/build/languageProcessing/languages/sv/config/internal/passiveVerbs.js.map +1 -1
- package/build/languageProcessing/languages/sv/config/keyphraseLength.js +1 -7
- package/build/languageProcessing/languages/sv/config/keyphraseLength.js.map +1 -1
- package/build/languageProcessing/languages/sv/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/sv/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/sv/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/sv/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/sv/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/sv/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/sv/helpers/internal/stem.js +1 -7
- package/build/languageProcessing/languages/sv/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/sv/helpers/isPassiveSentence.js +6 -12
- package/build/languageProcessing/languages/sv/helpers/isPassiveSentence.js.map +1 -1
- package/build/languageProcessing/languages/tr/Researcher.js +17 -25
- package/build/languageProcessing/languages/tr/Researcher.js.map +1 -1
- package/build/languageProcessing/languages/tr/config/firstWordExceptions.js +1 -7
- package/build/languageProcessing/languages/tr/config/firstWordExceptions.js.map +1 -1
- package/build/languageProcessing/languages/tr/config/functionWords.js +4 -10
- package/build/languageProcessing/languages/tr/config/functionWords.js.map +1 -1
- package/build/languageProcessing/languages/tr/config/internal/nonPassiveExceptions.js +3 -8
- package/build/languageProcessing/languages/tr/config/internal/nonPassiveExceptions.js.map +1 -1
- package/build/languageProcessing/languages/tr/config/internal/passiveEndings.js +1 -7
- package/build/languageProcessing/languages/tr/config/internal/passiveEndings.js.map +1 -1
- package/build/languageProcessing/languages/tr/config/sentenceLength.js +1 -7
- package/build/languageProcessing/languages/tr/config/sentenceLength.js.map +1 -1
- package/build/languageProcessing/languages/tr/config/transitionWords.js +4 -10
- package/build/languageProcessing/languages/tr/config/transitionWords.js.map +1 -1
- package/build/languageProcessing/languages/tr/config/twoPartTransitionWords.js +2 -7
- package/build/languageProcessing/languages/tr/config/twoPartTransitionWords.js.map +1 -1
- package/build/languageProcessing/languages/tr/helpers/getStemmer.js +8 -14
- package/build/languageProcessing/languages/tr/helpers/getStemmer.js.map +1 -1
- package/build/languageProcessing/languages/tr/helpers/internal/stem.js +3 -9
- package/build/languageProcessing/languages/tr/helpers/internal/stem.js.map +1 -1
- package/build/languageProcessing/languages/tr/helpers/isPassiveSentence.js +9 -15
- package/build/languageProcessing/languages/tr/helpers/isPassiveSentence.js.map +1 -1
- package/build/languageProcessing/researches/altTagCount.js +10 -16
- package/build/languageProcessing/researches/altTagCount.js.map +1 -1
- package/build/languageProcessing/researches/checkRelatedKeywords.js +72 -0
- package/build/languageProcessing/researches/checkRelatedKeywords.js.map +1 -0
- package/build/languageProcessing/researches/countSentencesFromText.js +9 -15
- package/build/languageProcessing/researches/countSentencesFromText.js.map +1 -1
- package/build/languageProcessing/researches/findKeyphraseInSEOTitle.js +19 -26
- package/build/languageProcessing/researches/findKeyphraseInSEOTitle.js.map +1 -1
- package/build/languageProcessing/researches/findKeywordInFirstParagraph.js +17 -23
- package/build/languageProcessing/researches/findKeywordInFirstParagraph.js.map +1 -1
- package/build/languageProcessing/researches/findTransitionWords.js +16 -23
- package/build/languageProcessing/researches/findTransitionWords.js.map +1 -1
- package/build/languageProcessing/researches/functionWordsInKeyphrase.js +10 -16
- package/build/languageProcessing/researches/functionWordsInKeyphrase.js.map +1 -1
- package/build/languageProcessing/researches/getAnchorsWithKeyphrase.js +21 -28
- package/build/languageProcessing/researches/getAnchorsWithKeyphrase.js.map +1 -1
- package/build/languageProcessing/researches/getFleschReadingScore.js +18 -25
- package/build/languageProcessing/researches/getFleschReadingScore.js.map +1 -1
- package/build/languageProcessing/researches/getKeywordDensity.js +7 -14
- package/build/languageProcessing/researches/getKeywordDensity.js.map +1 -1
- package/build/languageProcessing/researches/getLinkStatistics.js +7 -13
- package/build/languageProcessing/researches/getLinkStatistics.js.map +1 -1
- package/build/languageProcessing/researches/getLinks.js +7 -13
- package/build/languageProcessing/researches/getLinks.js.map +1 -1
- package/build/languageProcessing/researches/getLongCenterAlignedTexts.js +1 -7
- package/build/languageProcessing/researches/getLongCenterAlignedTexts.js.map +1 -1
- package/build/languageProcessing/researches/getParagraphLength.js +15 -21
- package/build/languageProcessing/researches/getParagraphLength.js.map +1 -1
- package/build/languageProcessing/researches/getParagraphs.js +4 -9
- package/build/languageProcessing/researches/getParagraphs.js.map +1 -1
- package/build/languageProcessing/researches/getPassiveVoiceResult.js +21 -30
- package/build/languageProcessing/researches/getPassiveVoiceResult.js.map +1 -1
- package/build/languageProcessing/researches/getProminentWordsForInsights.js +12 -18
- package/build/languageProcessing/researches/getProminentWordsForInsights.js.map +1 -1
- package/build/languageProcessing/researches/getProminentWordsForInternalLinking.js +20 -26
- package/build/languageProcessing/researches/getProminentWordsForInternalLinking.js.map +1 -1
- package/build/languageProcessing/researches/getSentenceBeginnings.js +30 -36
- package/build/languageProcessing/researches/getSentenceBeginnings.js.map +1 -1
- package/build/languageProcessing/researches/getSubheadingTextLengths.js +12 -18
- package/build/languageProcessing/researches/getSubheadingTextLengths.js.map +1 -1
- package/build/languageProcessing/researches/getWordForms.js +13 -19
- package/build/languageProcessing/researches/getWordForms.js.map +1 -1
- package/build/languageProcessing/researches/h1s.js +1 -7
- package/build/languageProcessing/researches/h1s.js.map +1 -1
- package/build/languageProcessing/researches/imageCount.js +4 -10
- package/build/languageProcessing/researches/imageCount.js.map +1 -1
- package/build/languageProcessing/researches/index.js +4 -27
- package/build/languageProcessing/researches/index.js.map +1 -1
- package/build/languageProcessing/researches/keyphraseDistribution.js +22 -32
- package/build/languageProcessing/researches/keyphraseDistribution.js.map +1 -1
- package/build/languageProcessing/researches/keyphraseLength.js +1 -7
- package/build/languageProcessing/researches/keyphraseLength.js.map +1 -1
- package/build/languageProcessing/researches/keywordCount.js +30 -39
- package/build/languageProcessing/researches/keywordCount.js.map +1 -1
- package/build/languageProcessing/researches/keywordCountInUrl.js +8 -16
- package/build/languageProcessing/researches/keywordCountInUrl.js.map +1 -1
- package/build/languageProcessing/researches/matchKeywordInSubheadings.js +15 -20
- package/build/languageProcessing/researches/matchKeywordInSubheadings.js.map +1 -1
- package/build/languageProcessing/researches/metaDescriptionKeyword.js +6 -12
- package/build/languageProcessing/researches/metaDescriptionKeyword.js.map +1 -1
- package/build/languageProcessing/researches/metaDescriptionLength.js +3 -9
- package/build/languageProcessing/researches/metaDescriptionLength.js.map +1 -1
- package/build/languageProcessing/researches/pageTitleWidth.js +1 -7
- package/build/languageProcessing/researches/pageTitleWidth.js.map +1 -1
- package/build/languageProcessing/researches/readingTime.js +7 -13
- package/build/languageProcessing/researches/readingTime.js.map +1 -1
- package/build/languageProcessing/researches/sentences.js +7 -13
- package/build/languageProcessing/researches/sentences.js.map +1 -1
- package/build/languageProcessing/researches/videoCount.js +1 -7
- package/build/languageProcessing/researches/videoCount.js.map +1 -1
- package/build/languageProcessing/researches/wordComplexity.js +15 -21
- package/build/languageProcessing/researches/wordComplexity.js.map +1 -1
- package/build/languageProcessing/researches/wordCountInText.js +10 -15
- package/build/languageProcessing/researches/wordCountInText.js.map +1 -1
- package/build/languageProcessing/values/Clause.js +1 -7
- package/build/languageProcessing/values/Clause.js.map +1 -1
- package/build/languageProcessing/values/ProminentWord.js +1 -7
- package/build/languageProcessing/values/ProminentWord.js.map +1 -1
- package/build/languageProcessing/values/Sentence.js +1 -7
- package/build/languageProcessing/values/Sentence.js.map +1 -1
- package/build/languageProcessing/values/index.js +4 -27
- package/build/languageProcessing/values/index.js.map +1 -1
- package/build/markers/addMark.js +1 -7
- package/build/markers/addMark.js.map +1 -1
- package/build/markers/addMarkSingleWord.js +7 -12
- package/build/markers/addMarkSingleWord.js.map +1 -1
- package/build/markers/index.js +3 -20
- package/build/markers/index.js.map +1 -1
- package/build/markers/removeDuplicateMarks.js +3 -8
- package/build/markers/removeDuplicateMarks.js.map +1 -1
- package/build/markers/removeMarks.js +1 -7
- package/build/markers/removeMarks.js.map +1 -1
- package/build/parse/build/build.js +17 -25
- package/build/parse/build/build.js.map +1 -1
- package/build/parse/build/index.js +7 -12
- package/build/parse/build/index.js.map +1 -1
- package/build/parse/build/private/adapt.js +15 -21
- package/build/parse/build/private/adapt.js.map +1 -1
- package/build/parse/build/private/adaptAttributes.js +3 -9
- package/build/parse/build/private/adaptAttributes.js.map +1 -1
- package/build/parse/build/private/alwaysFilterElements.js +9 -14
- package/build/parse/build/private/alwaysFilterElements.js.map +1 -1
- package/build/parse/build/private/combineIntoImplicitParagraphs.js +12 -18
- package/build/parse/build/private/combineIntoImplicitParagraphs.js.map +1 -1
- package/build/parse/build/private/filterBeforeTokenizing.js +5 -10
- package/build/parse/build/private/filterBeforeTokenizing.js.map +1 -1
- package/build/parse/build/private/filterHelpers.js +3 -11
- package/build/parse/build/private/filterHelpers.js.map +1 -1
- package/build/parse/build/private/filterTree.js +3 -8
- package/build/parse/build/private/filterTree.js.map +1 -1
- package/build/parse/build/private/getTextElementPositions.js +5 -10
- package/build/parse/build/private/getTextElementPositions.js.map +1 -1
- package/build/parse/build/private/helpers/parseClassAttribute.js +1 -7
- package/build/parse/build/private/helpers/parseClassAttribute.js.map +1 -1
- package/build/parse/build/private/isPhrasingContent.js +1 -7
- package/build/parse/build/private/isPhrasingContent.js.map +1 -1
- package/build/parse/build/private/parseBlocks.js +4 -11
- package/build/parse/build/private/parseBlocks.js.map +1 -1
- package/build/parse/build/private/tokenize.js +8 -14
- package/build/parse/build/private/tokenize.js.map +1 -1
- package/build/parse/language/LanguageProcessor.js +8 -15
- package/build/parse/language/LanguageProcessor.js.map +1 -1
- package/build/parse/structure/Heading.js +3 -9
- package/build/parse/structure/Heading.js.map +1 -1
- package/build/parse/structure/Node.js +8 -14
- package/build/parse/structure/Node.js.map +1 -1
- package/build/parse/structure/Paragraph.js +3 -9
- package/build/parse/structure/Paragraph.js.map +1 -1
- package/build/parse/structure/Sentence.js +1 -7
- package/build/parse/structure/Sentence.js.map +1 -1
- package/build/parse/structure/SourceCodeLocation.js +1 -7
- package/build/parse/structure/SourceCodeLocation.js.map +1 -1
- package/build/parse/structure/Text.js +3 -10
- package/build/parse/structure/Text.js.map +1 -1
- package/build/parse/structure/Token.js +3 -8
- package/build/parse/structure/Token.js.map +1 -1
- package/build/parse/structure/index.js +10 -33
- package/build/parse/structure/index.js.map +1 -1
- package/build/parse/traverse/findAllInTree.js +1 -7
- package/build/parse/traverse/findAllInTree.js.map +1 -1
- package/build/parse/traverse/index.js +8 -19
- package/build/parse/traverse/index.js.map +1 -1
- package/build/parse/traverse/innerText.js +3 -8
- package/build/parse/traverse/innerText.js.map +1 -1
- package/build/parsedPaper/ParsedPaper.js +1 -8
- package/build/parsedPaper/ParsedPaper.js.map +1 -1
- package/build/parsedPaper/assess/TreeAssessor.js +6 -12
- package/build/parsedPaper/assess/TreeAssessor.js.map +1 -1
- package/build/parsedPaper/assess/assessmentListFactories.js +1 -11
- package/build/parsedPaper/assess/assessmentListFactories.js.map +1 -1
- package/build/parsedPaper/assess/assessments/Assessment.js +15 -9
- package/build/parsedPaper/assess/assessments/Assessment.js.map +1 -1
- package/build/parsedPaper/assess/assessments/index.js +6 -13
- package/build/parsedPaper/assess/assessments/index.js.map +1 -1
- package/build/parsedPaper/assess/assessorFactories.js +16 -24
- package/build/parsedPaper/assess/assessorFactories.js.map +1 -1
- package/build/parsedPaper/assess/cornerstone/assessmentListFactories.js +1 -9
- package/build/parsedPaper/assess/cornerstone/assessmentListFactories.js.map +1 -1
- package/build/parsedPaper/assess/cornerstone/index.js +2 -10
- package/build/parsedPaper/assess/cornerstone/index.js.map +1 -1
- package/build/parsedPaper/assess/index.js +13 -29
- package/build/parsedPaper/assess/index.js.map +1 -1
- package/build/parsedPaper/build/PaperParser.js +5 -11
- package/build/parsedPaper/build/PaperParser.js.map +1 -1
- package/build/parsedPaper/build/linguisticParsing/Sentence.js +1 -7
- package/build/parsedPaper/build/linguisticParsing/Sentence.js.map +1 -1
- package/build/parsedPaper/build/linguisticParsing/SentenceTokenizer.js +16 -23
- package/build/parsedPaper/build/linguisticParsing/SentenceTokenizer.js.map +1 -1
- package/build/parsedPaper/build/linguisticParsing/parseText.js +3 -9
- package/build/parsedPaper/build/linguisticParsing/parseText.js.map +1 -1
- package/build/parsedPaper/build/tree/TreeBuilder.js +3 -9
- package/build/parsedPaper/build/tree/TreeBuilder.js.map +1 -1
- package/build/parsedPaper/build/tree/cleanup/calculateTextIndices.js +5 -10
- package/build/parsedPaper/build/tree/cleanup/calculateTextIndices.js.map +1 -1
- package/build/parsedPaper/build/tree/cleanup/getElementContent.js +1 -7
- package/build/parsedPaper/build/tree/cleanup/getElementContent.js.map +1 -1
- package/build/parsedPaper/build/tree/cleanup/postParsing.js +5 -11
- package/build/parsedPaper/build/tree/cleanup/postParsing.js.map +1 -1
- package/build/parsedPaper/build/tree/html/HTMLTreeConverter.js +21 -27
- package/build/parsedPaper/build/tree/html/HTMLTreeConverter.js.map +1 -1
- package/build/parsedPaper/build/tree/html/buildTree.js +7 -13
- package/build/parsedPaper/build/tree/html/buildTree.js.map +1 -1
- package/build/parsedPaper/build/tree/html/htmlConstants.js +4 -9
- package/build/parsedPaper/build/tree/html/htmlConstants.js.map +1 -1
- package/build/parsedPaper/build/tree/index.js +3 -8
- package/build/parsedPaper/build/tree/index.js.map +1 -1
- package/build/parsedPaper/build/tree/metadata/buildTree.js +12 -18
- package/build/parsedPaper/build/tree/metadata/buildTree.js.map +1 -1
- package/build/parsedPaper/research/TreeResearcher.js +4 -9
- package/build/parsedPaper/research/TreeResearcher.js.map +1 -1
- package/build/parsedPaper/research/index.js +10 -12
- package/build/parsedPaper/research/index.js.map +1 -1
- package/build/parsedPaper/research/researches/Headings.js +5 -11
- package/build/parsedPaper/research/researches/Headings.js.map +1 -1
- package/build/parsedPaper/research/researches/LinkStatistics.js +6 -12
- package/build/parsedPaper/research/researches/LinkStatistics.js.map +1 -1
- package/build/parsedPaper/research/researches/Research.js +5 -10
- package/build/parsedPaper/research/researches/Research.js.map +1 -1
- package/build/parsedPaper/research/researches/index.js +1 -13
- package/build/parsedPaper/research/researches/index.js.map +1 -1
- package/build/parsedPaper/structure/tree/FormattingElement.js +3 -9
- package/build/parsedPaper/structure/tree/FormattingElement.js.map +1 -1
- package/build/parsedPaper/structure/tree/SourceCodeLocation.js +1 -7
- package/build/parsedPaper/structure/tree/SourceCodeLocation.js.map +1 -1
- package/build/parsedPaper/structure/tree/TextContainer.js +5 -10
- package/build/parsedPaper/structure/tree/TextContainer.js.map +1 -1
- package/build/parsedPaper/structure/tree/index.js +9 -74
- package/build/parsedPaper/structure/tree/index.js.map +1 -1
- package/build/parsedPaper/structure/tree/nodes/Heading.js +3 -9
- package/build/parsedPaper/structure/tree/nodes/Heading.js.map +1 -1
- package/build/parsedPaper/structure/tree/nodes/LeafNode.js +5 -12
- package/build/parsedPaper/structure/tree/nodes/LeafNode.js.map +1 -1
- package/build/parsedPaper/structure/tree/nodes/List.js +5 -11
- package/build/parsedPaper/structure/tree/nodes/List.js.map +1 -1
- package/build/parsedPaper/structure/tree/nodes/ListItem.js +3 -10
- package/build/parsedPaper/structure/tree/nodes/ListItem.js.map +1 -1
- package/build/parsedPaper/structure/tree/nodes/MetadataMiscellaneous.js +3 -9
- package/build/parsedPaper/structure/tree/nodes/MetadataMiscellaneous.js.map +1 -1
- package/build/parsedPaper/structure/tree/nodes/MetadataText.js +3 -9
- package/build/parsedPaper/structure/tree/nodes/MetadataText.js.map +1 -1
- package/build/parsedPaper/structure/tree/nodes/Node.js +6 -12
- package/build/parsedPaper/structure/tree/nodes/Node.js.map +1 -1
- package/build/parsedPaper/structure/tree/nodes/Paragraph.js +3 -9
- package/build/parsedPaper/structure/tree/nodes/Paragraph.js.map +1 -1
- package/build/parsedPaper/structure/tree/nodes/StructuredNode.js +3 -10
- package/build/parsedPaper/structure/tree/nodes/StructuredNode.js.map +1 -1
- package/build/parsedPaper/structure/tree/nodes/index.js +10 -69
- package/build/parsedPaper/structure/tree/nodes/index.js.map +1 -1
- package/build/scoring/assessments/assessment.js +17 -15
- package/build/scoring/assessments/assessment.js.map +1 -1
- package/build/scoring/assessments/index.js +53 -56
- package/build/scoring/assessments/index.js.map +1 -1
- package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js +30 -47
- package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js.map +1 -1
- package/build/scoring/assessments/readability/RelatedKeywordsAssessment.js +98 -0
- package/build/scoring/assessments/readability/RelatedKeywordsAssessment.js.map +1 -0
- package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js +22 -35
- package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js.map +1 -1
- package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js +24 -39
- package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js.map +1 -1
- package/build/scoring/assessments/readability/TransitionWordsAssessment.js +29 -47
- package/build/scoring/assessments/readability/TransitionWordsAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/FAQsAssessment.js +174 -0
- package/build/scoring/assessments/seo/FAQsAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/ImageCountAssessment.js +17 -33
- package/build/scoring/assessments/seo/ImageCountAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/InternalLinksAssessment.js +21 -35
- package/build/scoring/assessments/seo/InternalLinksAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js +20 -34
- package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/KeyphraseAssessment.js +18 -32
- package/build/scoring/assessments/seo/KeyphraseAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js +21 -34
- package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/KeywordDensityAssessment.js +26 -40
- package/build/scoring/assessments/seo/KeywordDensityAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js +23 -42
- package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js +19 -34
- package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js +25 -41
- package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js +16 -30
- package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/OutboundLinksAssessment.js +21 -40
- package/build/scoring/assessments/seo/OutboundLinksAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/PageTitleWidthAssessment.js +17 -31
- package/build/scoring/assessments/seo/PageTitleWidthAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/SchemaAssessment.js +95 -0
- package/build/scoring/assessments/seo/SchemaAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/SingleH1Assessment.js +20 -33
- package/build/scoring/assessments/seo/SingleH1Assessment.js.map +1 -1
- package/build/scoring/assessments/seo/SingleTitleAssessment.js +20 -33
- package/build/scoring/assessments/seo/SingleTitleAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js +18 -35
- package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/TextImagesAssessment.js +20 -36
- package/build/scoring/assessments/seo/TextImagesAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/TextLengthAssessment.js +21 -37
- package/build/scoring/assessments/seo/TextLengthAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/UrlKeywordAssessment.js +20 -36
- package/build/scoring/assessments/seo/UrlKeywordAssessment.js.map +1 -1
- package/build/scoring/assessments/seo/UrlLengthAssessment.js +19 -33
- package/build/scoring/assessments/seo/UrlLengthAssessment.js.map +1 -1
- package/build/scoring/assessors/assessor.js +53 -33
- package/build/scoring/assessors/assessor.js.map +1 -1
- package/build/scoring/assessors/avadaAssessor.js +37 -17
- package/build/scoring/assessors/avadaAssessor.js.map +1 -1
- package/build/scoring/assessors/contentAssessor.js +16 -22
- package/build/scoring/assessors/contentAssessor.js.map +1 -1
- package/build/scoring/assessors/index.js +4 -34
- package/build/scoring/assessors/index.js.map +1 -1
- package/build/scoring/assessors/seoAssessor.js +27 -32
- package/build/scoring/assessors/seoAssessor.js.map +1 -1
- package/build/scoring/helpers/assessments/checkForTooLongSentences.js +3 -8
- package/build/scoring/helpers/assessments/checkForTooLongSentences.js.map +1 -1
- package/build/scoring/helpers/assessments/inRange.js +2 -10
- package/build/scoring/helpers/assessments/inRange.js.map +1 -1
- package/build/scoring/helpers/assessments/keyphraseLengthFactor.js +1 -7
- package/build/scoring/helpers/assessments/keyphraseLengthFactor.js.map +1 -1
- package/build/scoring/helpers/assessments/recommendedKeywordCount.js +5 -11
- package/build/scoring/helpers/assessments/recommendedKeywordCount.js.map +1 -1
- package/build/scoring/helpers/index.js +27 -18
- package/build/scoring/helpers/index.js.map +1 -1
- package/build/scoring/interpreters/index.js +2 -13
- package/build/scoring/interpreters/index.js.map +1 -1
- package/build/scoring/interpreters/scoreToRating.js +1 -7
- package/build/scoring/interpreters/scoreToRating.js.map +1 -1
- package/build/scoring/renderers/AssessorPresenter.js +12 -18
- package/build/scoring/renderers/AssessorPresenter.js.map +1 -1
- package/build/scoring/scoreAggregators/ReadabilityScoreAggregator.js +8 -14
- package/build/scoring/scoreAggregators/ReadabilityScoreAggregator.js.map +1 -1
- package/build/scoring/scoreAggregators/SEOScoreAggregator.js +3 -9
- package/build/scoring/scoreAggregators/SEOScoreAggregator.js.map +1 -1
- package/build/scoring/scoreAggregators/ScoreAggregator.js +1 -7
- package/build/scoring/scoreAggregators/ScoreAggregator.js.map +1 -1
- package/build/scoring/scoreAggregators/index.js +3 -27
- package/build/scoring/scoreAggregators/index.js.map +1 -1
- package/build/values/AssessmentResult.js +31 -57
- package/build/values/AssessmentResult.js.map +1 -1
- package/build/values/Mark.js +9 -15
- package/build/values/Mark.js.map +1 -1
- package/build/values/Paper.js +115 -16
- package/build/values/Paper.js.map +1 -1
- package/build/values/index.js +4 -27
- package/build/values/index.js.map +1 -1
- package/build/vendor/turkishStemmer.js +1 -7
- package/build/vendor/turkishStemmer.js.map +1 -1
- package/package.json +11 -1
- package/build/bundledPlugins/index.js +0 -14
- package/build/bundledPlugins/index.js.map +0 -1
- package/build/bundledPlugins/previouslyUsedKeywords.js +0 -171
- package/build/bundledPlugins/previouslyUsedKeywords.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getKeywordDensity.js","names":["
|
|
1
|
+
{"version":3,"file":"getKeywordDensity.js","names":["countWords","getKeyphraseDensity","paper","researcher","getWordsCustomHelper","getHelper","wordCount","getText","length","keyphraseCount","getResearch","count","getKeywordDensity","console","warn"],"sources":["../../../src/languageProcessing/researches/getKeywordDensity.js"],"sourcesContent":["import countWords from '@axyseo/languageProcessing/helpers/word/countWords';\n\n/**\n * Calculates the keyphrase density.\n *\n * @param {Paper} paper The paper containing keyphrase and text.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {number} The keyphrase density.\n */\nexport default function getKeyphraseDensity(paper, researcher) {\n const getWordsCustomHelper = researcher.getHelper('getWordsCustomHelper');\n let wordCount = 0;\n\n // If there is a custom getWords helper, use its output for countWords.\n if (getWordsCustomHelper) {\n wordCount = getWordsCustomHelper(paper.getText()).length;\n } else {\n wordCount = countWords(paper.getText());\n }\n\n if (wordCount === 0) {\n return 0;\n }\n const keyphraseCount = researcher.getResearch('getKeyphraseCount');\n\n return (keyphraseCount.count / wordCount) * 100;\n}\n\n/**\n * Calculates the keyphrase density.\n *\n * @deprecated Use getKeyphraseDensity instead.\n *\n * @param {Paper} paper The paper containing keyphrase and text.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {number} The keyphrase density.\n */\nexport function getKeywordDensity(paper, researcher) {\n console.warn('This function is deprecated, use getKeyphraseDensity instead.');\n return getKeyphraseDensity(paper, researcher);\n}\n"],"mappings":"AAAA,OAAOA,UAAU;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,mBAAmBA,CAACC,KAAK,EAAEC,UAAU,EAAE;EAC7D,MAAMC,oBAAoB,GAAGD,UAAU,CAACE,SAAS,CAAC,sBAAsB,CAAC;EACzE,IAAIC,SAAS,GAAG,CAAC;;EAEjB;EACA,IAAIF,oBAAoB,EAAE;IACxBE,SAAS,GAAGF,oBAAoB,CAACF,KAAK,CAACK,OAAO,CAAC,CAAC,CAAC,CAACC,MAAM;EAC1D,CAAC,MAAM;IACLF,SAAS,GAAGN,UAAU,CAACE,KAAK,CAACK,OAAO,CAAC,CAAC,CAAC;EACzC;EAEA,IAAID,SAAS,KAAK,CAAC,EAAE;IACnB,OAAO,CAAC;EACV;EACA,MAAMG,cAAc,GAAGN,UAAU,CAACO,WAAW,CAAC,mBAAmB,CAAC;EAElE,OAAQD,cAAc,CAACE,KAAK,GAAGL,SAAS,GAAI,GAAG;AACjD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASM,iBAAiBA,CAACV,KAAK,EAAEC,UAAU,EAAE;EACnDU,OAAO,CAACC,IAAI,CAAC,+DAA+D,CAAC;EAC7E,OAAOb,mBAAmB,CAACC,KAAK,EAAEC,UAAU,CAAC;AAC/C","ignoreList":[]}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import checkNofollow from "../helpers/link/checkNofollow.js";
|
|
2
|
+
import getAnchors from "../helpers/link/getAnchorsFromText.js";
|
|
3
|
+
import getLinkType from "../helpers/link/getLinkType.js";
|
|
2
4
|
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _checkNofollow = _interopRequireDefault(require("../helpers/link/checkNofollow.js"));
|
|
8
|
-
var _getAnchorsFromText = _interopRequireDefault(require("../helpers/link/getAnchorsFromText.js"));
|
|
9
|
-
var _getLinkType = _interopRequireDefault(require("../helpers/link/getLinkType.js"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
5
|
/**
|
|
12
6
|
* Counts the links found in the text.
|
|
13
7
|
*
|
|
@@ -25,8 +19,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
25
19
|
* otherDofollow: other links without a nofollow attribute.
|
|
26
20
|
* otherNofollow: other links with a nofollow attribute.
|
|
27
21
|
*/
|
|
28
|
-
function
|
|
29
|
-
const anchors = (
|
|
22
|
+
export default function (paper) {
|
|
23
|
+
const anchors = getAnchors(paper.getText());
|
|
30
24
|
/*
|
|
31
25
|
* We get the site's URL (e.g., https://yoast.com) or domain (e.g., yoast.com) from the paper.
|
|
32
26
|
* In case of WordPress, the variable is a URL. In case of Shopify, it is a domain.
|
|
@@ -46,8 +40,8 @@ function _default(paper) {
|
|
|
46
40
|
};
|
|
47
41
|
for (let i = 0; i < anchors.length; i++) {
|
|
48
42
|
const currentAnchor = anchors[i];
|
|
49
|
-
const linkType = (
|
|
50
|
-
const linkFollow = (
|
|
43
|
+
const linkType = getLinkType(currentAnchor, siteUrlOrDomain);
|
|
44
|
+
const linkFollow = checkNofollow(currentAnchor);
|
|
51
45
|
linkCount[linkType + "Total"]++;
|
|
52
46
|
linkCount[linkType + linkFollow]++;
|
|
53
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLinkStatistics.js","names":["
|
|
1
|
+
{"version":3,"file":"getLinkStatistics.js","names":["checkNofollow","getAnchors","getLinkType","paper","anchors","getText","siteUrlOrDomain","getPermalink","linkCount","total","length","internalTotal","internalDofollow","internalNofollow","externalTotal","externalDofollow","externalNofollow","otherTotal","otherDofollow","otherNofollow","i","currentAnchor","linkType","linkFollow"],"sources":["../../../src/languageProcessing/researches/getLinkStatistics.js"],"sourcesContent":["import checkNofollow from \"../helpers/link/checkNofollow.js\";\nimport getAnchors from \"../helpers/link/getAnchorsFromText.js\";\nimport getLinkType from \"../helpers/link/getLinkType.js\";\n\n/**\n * Counts the links found in the text.\n *\n * @param {Paper} paper The paper object containing text, keyword and url.\n *\n * @returns {object} The object containing all linktypes.\n * total: the total number of links found.\n * internalTotal: the total number of links that are internal.\n * internalDofollow: the internal links without a nofollow attribute.\n * internalNofollow: the internal links with a nofollow attribute.\n * externalTotal: the total number of links that are external.\n * externalDofollow: the external links without a nofollow attribute.\n * externalNofollow: the internal links with a dofollow attribute.\n * otherTotal: all links that are not HTTP or HTTPS.\n * otherDofollow: other links without a nofollow attribute.\n * otherNofollow: other links with a nofollow attribute.\n */\nexport default function( paper ) {\n\tconst anchors = getAnchors( paper.getText() );\n\t/*\n\t * We get the site's URL (e.g., https://yoast.com) or domain (e.g., yoast.com) from the paper.\n\t * In case of WordPress, the variable is a URL. In case of Shopify, it is a domain.\n\t */\n\tconst siteUrlOrDomain = paper.getPermalink();\n\n\tconst linkCount = {\n\t\ttotal: anchors.length,\n\t\tinternalTotal: 0,\n\t\tinternalDofollow: 0,\n\t\tinternalNofollow: 0,\n\t\texternalTotal: 0,\n\t\texternalDofollow: 0,\n\t\texternalNofollow: 0,\n\t\totherTotal: 0,\n\t\totherDofollow: 0,\n\t\totherNofollow: 0,\n\t};\n\n\tfor ( let i = 0; i < anchors.length; i++ ) {\n\t\tconst currentAnchor = anchors[ i ];\n\n\t\tconst linkType = getLinkType( currentAnchor, siteUrlOrDomain );\n\t\tconst linkFollow = checkNofollow( currentAnchor );\n\n\t\tlinkCount[ linkType + \"Total\" ]++;\n\t\tlinkCount[ linkType + linkFollow ]++;\n\t}\n\n\treturn linkCount;\n}\n"],"mappings":"AAAA,OAAOA,aAAa;AACpB,OAAOC,UAAU;AACjB,OAAOC,WAAW;;AAElB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUC,KAAK,EAAG;EAChC,MAAMC,OAAO,GAAGH,UAAU,CAAEE,KAAK,CAACE,OAAO,CAAC,CAAE,CAAC;EAC7C;AACD;AACA;AACA;EACC,MAAMC,eAAe,GAAGH,KAAK,CAACI,YAAY,CAAC,CAAC;EAE5C,MAAMC,SAAS,GAAG;IACjBC,KAAK,EAAEL,OAAO,CAACM,MAAM;IACrBC,aAAa,EAAE,CAAC;IAChBC,gBAAgB,EAAE,CAAC;IACnBC,gBAAgB,EAAE,CAAC;IACnBC,aAAa,EAAE,CAAC;IAChBC,gBAAgB,EAAE,CAAC;IACnBC,gBAAgB,EAAE,CAAC;IACnBC,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE,CAAC;IAChBC,aAAa,EAAE;EAChB,CAAC;EAED,KAAM,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGhB,OAAO,CAACM,MAAM,EAAEU,CAAC,EAAE,EAAG;IAC1C,MAAMC,aAAa,GAAGjB,OAAO,CAAEgB,CAAC,CAAE;IAElC,MAAME,QAAQ,GAAGpB,WAAW,CAAEmB,aAAa,EAAEf,eAAgB,CAAC;IAC9D,MAAMiB,UAAU,GAAGvB,aAAa,CAAEqB,aAAc,CAAC;IAEjDb,SAAS,CAAEc,QAAQ,GAAG,OAAO,CAAE,EAAE;IACjCd,SAAS,CAAEc,QAAQ,GAAGC,UAAU,CAAE,EAAE;EACrC;EAEA,OAAOf,SAAS;AACjB","ignoreList":[]}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _getAnchorsFromText = _interopRequireDefault(require("../helpers/link/getAnchorsFromText.js"));
|
|
8
|
-
var _lodash = require("lodash");
|
|
9
|
-
var _url = _interopRequireDefault(require("../helpers/url/url.js"));
|
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
1
|
/** @module analyses/getLinkStatistics */
|
|
12
2
|
|
|
3
|
+
import getAnchors from "../helpers/link/getAnchorsFromText.js";
|
|
4
|
+
import { map } from "lodash";
|
|
5
|
+
import url from "../helpers/url/url.js";
|
|
6
|
+
|
|
13
7
|
/**
|
|
14
8
|
* Checks a text for anchors and returns the number found.
|
|
15
9
|
*
|
|
16
10
|
* @param {Object} paper The paper to get the text from.
|
|
17
11
|
* @returns {Array} An array with the anchors
|
|
18
12
|
*/
|
|
19
|
-
function
|
|
20
|
-
const anchors = (
|
|
21
|
-
return
|
|
13
|
+
export default function (paper) {
|
|
14
|
+
const anchors = getAnchors(paper.getText());
|
|
15
|
+
return map(anchors, url.getFromAnchorTag);
|
|
22
16
|
}
|
|
23
17
|
//# sourceMappingURL=getLinks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLinks.js","names":["
|
|
1
|
+
{"version":3,"file":"getLinks.js","names":["getAnchors","map","url","paper","anchors","getText","getFromAnchorTag"],"sources":["../../../src/languageProcessing/researches/getLinks.js"],"sourcesContent":["/** @module analyses/getLinkStatistics */\n\nimport getAnchors from \"../helpers/link/getAnchorsFromText.js\";\n\nimport { map } from \"lodash\";\nimport url from \"../helpers/url/url.js\";\n\n/**\n * Checks a text for anchors and returns the number found.\n *\n * @param {Object} paper The paper to get the text from.\n * @returns {Array} An array with the anchors\n */\nexport default function( paper ) {\n\tconst anchors = getAnchors( paper.getText() );\n\n\treturn map( anchors, url.getFromAnchorTag );\n}\n"],"mappings":"AAAA;;AAEA,OAAOA,UAAU;AAEjB,SAASC,GAAG,QAAQ,QAAQ;AAC5B,OAAOC,GAAG;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUC,KAAK,EAAG;EAChC,MAAMC,OAAO,GAAGJ,UAAU,CAAEG,KAAK,CAACE,OAAO,CAAC,CAAE,CAAC;EAE7C,OAAOJ,GAAG,CAAEG,OAAO,EAAEF,GAAG,CAACI,gBAAiB,CAAC;AAC5C","ignoreList":[]}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
1
|
/**
|
|
8
2
|
* The maximum allowed length of a center-aligned paragraph or heading in characters.
|
|
9
3
|
* @type {number}
|
|
@@ -33,7 +27,7 @@ function getLongCenterAlignedElements(nodes) {
|
|
|
33
27
|
* @param {Paper} paper The paper to analyze.
|
|
34
28
|
* @returns {Node[]} An array of nodes containing too long center-aligned paragraphs/headings.
|
|
35
29
|
*/
|
|
36
|
-
function
|
|
30
|
+
export default function (paper) {
|
|
37
31
|
const tree = paper.getTree();
|
|
38
32
|
const paragraphs = tree.findAll(node => node.name === "p");
|
|
39
33
|
const headings = tree.findAll(node => HEADING_TAGS_REGEX.test(node.name));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLongCenterAlignedTexts.js","names":["MAX_CENTER_ALIGNED_LENGTH","HEADING_TAGS_REGEX","getLongCenterAlignedElements","nodes","filter","node","isCenterAligned","attributes","class","Set","has","innerText","length","
|
|
1
|
+
{"version":3,"file":"getLongCenterAlignedTexts.js","names":["MAX_CENTER_ALIGNED_LENGTH","HEADING_TAGS_REGEX","getLongCenterAlignedElements","nodes","filter","node","isCenterAligned","attributes","class","Set","has","innerText","length","paper","tree","getTree","paragraphs","findAll","name","headings","test","concat"],"sources":["../../../src/languageProcessing/researches/getLongCenterAlignedTexts.js"],"sourcesContent":["/**\n * The maximum allowed length of a center-aligned paragraph or heading in characters.\n * @type {number}\n */\nconst MAX_CENTER_ALIGNED_LENGTH = 50;\n\n/**\n * A regular expression to match heading tags.\n * @type {RegExp}\n */\nconst HEADING_TAGS_REGEX = /^h[1-6]$/;\n\n/**\n * Filters out all nodes that are center-aligned and longer than 50 characters (as defined in `MAX_CENTER_ALIGNED_LENGTH`).\n * @param {Node[]} nodes An array of nodes.\n * @returns {Node[]} An array containing all center-aligned nodes that are longer than 50 characters.\n */\nfunction getLongCenterAlignedElements( nodes ) {\n\treturn nodes.filter( node => {\n\t\tconst isCenterAligned = node.attributes.class instanceof Set && node.attributes.class.has( \"has-text-align-center\" );\n\t\treturn isCenterAligned && node.innerText().length > MAX_CENTER_ALIGNED_LENGTH;\n\t} );\n}\n\n/**\n * Finds all paragraphs and headings that are center-aligned and longer than 50 characters (after stripping HTML tags).\n * @param {Paper} paper The paper to analyze.\n * @returns {Node[]} An array of nodes containing too long center-aligned paragraphs/headings.\n */\nexport default function( paper ) {\n\tconst tree = paper.getTree();\n\n\tconst paragraphs = tree.findAll( node => node.name === \"p\" );\n\tconst headings = tree.findAll( node => HEADING_TAGS_REGEX.test( node.name ) );\n\n\treturn getLongCenterAlignedElements( paragraphs.concat( headings ) );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA,MAAMA,yBAAyB,GAAG,EAAE;;AAEpC;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,GAAG,UAAU;;AAErC;AACA;AACA;AACA;AACA;AACA,SAASC,4BAA4BA,CAAEC,KAAK,EAAG;EAC9C,OAAOA,KAAK,CAACC,MAAM,CAAEC,IAAI,IAAI;IAC5B,MAAMC,eAAe,GAAGD,IAAI,CAACE,UAAU,CAACC,KAAK,YAAYC,GAAG,IAAIJ,IAAI,CAACE,UAAU,CAACC,KAAK,CAACE,GAAG,CAAE,uBAAwB,CAAC;IACpH,OAAOJ,eAAe,IAAID,IAAI,CAACM,SAAS,CAAC,CAAC,CAACC,MAAM,GAAGZ,yBAAyB;EAC9E,CAAE,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUa,KAAK,EAAG;EAChC,MAAMC,IAAI,GAAGD,KAAK,CAACE,OAAO,CAAC,CAAC;EAE5B,MAAMC,UAAU,GAAGF,IAAI,CAACG,OAAO,CAAEZ,IAAI,IAAIA,IAAI,CAACa,IAAI,KAAK,GAAI,CAAC;EAC5D,MAAMC,QAAQ,GAAGL,IAAI,CAACG,OAAO,CAAEZ,IAAI,IAAIJ,kBAAkB,CAACmB,IAAI,CAAEf,IAAI,CAACa,IAAK,CAAE,CAAC;EAE7E,OAAOhB,4BAA4B,CAAEc,UAAU,CAACK,MAAM,CAAEF,QAAS,CAAE,CAAC;AACrE","ignoreList":[]}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { imageRegex } from "../helpers/image/imageInText";
|
|
2
|
+
import sanitizeLineBreakTag from "../helpers/sanitize/sanitizeLineBreakTag";
|
|
3
|
+
import countWords from "../helpers/word/countWords.js";
|
|
4
|
+
import matchParagraphs from "../helpers/html/matchParagraphs.js";
|
|
5
|
+
import { filter } from "lodash";
|
|
6
|
+
import removeHtmlBlocks from "../helpers/html/htmlParser";
|
|
7
|
+
import { filterShortcodesFromHTML } from "../helpers";
|
|
2
8
|
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _imageInText = require("../helpers/image/imageInText");
|
|
8
|
-
var _sanitizeLineBreakTag = _interopRequireDefault(require("../helpers/sanitize/sanitizeLineBreakTag"));
|
|
9
|
-
var _countWords = _interopRequireDefault(require("../helpers/word/countWords.js"));
|
|
10
|
-
var _matchParagraphs = _interopRequireDefault(require("../helpers/html/matchParagraphs.js"));
|
|
11
|
-
var _lodash = require("lodash");
|
|
12
|
-
var _htmlParser = _interopRequireDefault(require("../helpers/html/htmlParser"));
|
|
13
|
-
var _helpers = require("../helpers");
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
9
|
/**
|
|
16
10
|
* Gets all paragraphs and their word counts or character counts from the text.
|
|
17
11
|
*
|
|
@@ -20,29 +14,29 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
20
14
|
*
|
|
21
15
|
* @returns {Array} The array containing an object with the paragraph word or character count and paragraph text.
|
|
22
16
|
*/
|
|
23
|
-
function
|
|
17
|
+
export default function (paper, researcher) {
|
|
24
18
|
let text = paper.getText();
|
|
25
|
-
text = (
|
|
26
|
-
text =
|
|
19
|
+
text = removeHtmlBlocks(text);
|
|
20
|
+
text = filterShortcodesFromHTML(text, paper._attributes && paper._attributes.shortcodes);
|
|
27
21
|
|
|
28
22
|
// Remove images from text before retrieving the paragraphs.
|
|
29
23
|
// This step is done here so that applying highlight in captions is possible for ParagraphTooLongAssessment.
|
|
30
|
-
text = text.replace(
|
|
24
|
+
text = text.replace(imageRegex, "");
|
|
31
25
|
|
|
32
26
|
// Replace line break tags containing attribute(s) with paragraph tag.
|
|
33
|
-
text = (
|
|
34
|
-
const paragraphs = (
|
|
27
|
+
text = sanitizeLineBreakTag(text);
|
|
28
|
+
const paragraphs = matchParagraphs(text);
|
|
35
29
|
const paragraphsLength = [];
|
|
36
30
|
|
|
37
31
|
// An optional custom helper to count length to use instead of countWords.
|
|
38
32
|
const customCountLength = researcher.getHelper("customCountLength");
|
|
39
33
|
paragraphs.map(function (paragraph) {
|
|
40
34
|
paragraphsLength.push({
|
|
41
|
-
countLength: customCountLength ? customCountLength(paragraph) : (
|
|
35
|
+
countLength: customCountLength ? customCountLength(paragraph) : countWords(paragraph),
|
|
42
36
|
text: paragraph
|
|
43
37
|
});
|
|
44
38
|
});
|
|
45
|
-
return
|
|
39
|
+
return filter(paragraphsLength, function (paragraphLength) {
|
|
46
40
|
return paragraphLength.countLength > 0;
|
|
47
41
|
});
|
|
48
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getParagraphLength.js","names":["
|
|
1
|
+
{"version":3,"file":"getParagraphLength.js","names":["imageRegex","sanitizeLineBreakTag","countWords","matchParagraphs","filter","removeHtmlBlocks","filterShortcodesFromHTML","paper","researcher","text","getText","_attributes","shortcodes","replace","paragraphs","paragraphsLength","customCountLength","getHelper","map","paragraph","push","countLength","paragraphLength"],"sources":["../../../src/languageProcessing/researches/getParagraphLength.js"],"sourcesContent":["import { imageRegex } from \"../helpers/image/imageInText\";\nimport sanitizeLineBreakTag from \"../helpers/sanitize/sanitizeLineBreakTag\";\nimport countWords from \"../helpers/word/countWords.js\";\nimport matchParagraphs from \"../helpers/html/matchParagraphs.js\";\nimport { filter } from \"lodash\";\nimport removeHtmlBlocks from \"../helpers/html/htmlParser\";\nimport { filterShortcodesFromHTML } from \"../helpers\";\n\n/**\n * Gets all paragraphs and their word counts or character counts from the text.\n *\n * @param {Paper} \t\tpaper \t\tThe paper object to get the text from.\n * @param {Researcher} \tresearcher \tThe researcher to use for analysis.\n *\n * @returns {Array} The array containing an object with the paragraph word or character count and paragraph text.\n */\nexport default function( paper, researcher ) {\n\tlet text = paper.getText();\n\ttext = removeHtmlBlocks( text );\n\ttext = filterShortcodesFromHTML( text, paper._attributes && paper._attributes.shortcodes );\n\n\t// Remove images from text before retrieving the paragraphs.\n\t// This step is done here so that applying highlight in captions is possible for ParagraphTooLongAssessment.\n\ttext = text.replace( imageRegex, \"\" );\n\n\t// Replace line break tags containing attribute(s) with paragraph tag.\n\ttext = sanitizeLineBreakTag( text );\n\tconst paragraphs = matchParagraphs( text );\n\tconst paragraphsLength = [];\n\n\t// An optional custom helper to count length to use instead of countWords.\n\tconst customCountLength = researcher.getHelper( \"customCountLength\" );\n\n\tparagraphs.map( function( paragraph ) {\n\t\tparagraphsLength.push( {\n\t\t\tcountLength: customCountLength ? customCountLength( paragraph ) : countWords( paragraph ),\n\t\t\ttext: paragraph,\n\t\t} );\n\t} );\n\n\treturn filter( paragraphsLength, function( paragraphLength ) {\n\t\treturn ( paragraphLength.countLength > 0 );\n\t} );\n}\n"],"mappings":"AAAA,SAASA,UAAU;AACnB,OAAOC,oBAAoB;AAC3B,OAAOC,UAAU;AACjB,OAAOC,eAAe;AACtB,SAASC,MAAM,QAAQ,QAAQ;AAC/B,OAAOC,gBAAgB;AACvB,SAASC,wBAAwB;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUC,KAAK,EAAEC,UAAU,EAAG;EAC5C,IAAIC,IAAI,GAAGF,KAAK,CAACG,OAAO,CAAC,CAAC;EAC1BD,IAAI,GAAGJ,gBAAgB,CAAEI,IAAK,CAAC;EAC/BA,IAAI,GAAGH,wBAAwB,CAAEG,IAAI,EAAEF,KAAK,CAACI,WAAW,IAAIJ,KAAK,CAACI,WAAW,CAACC,UAAW,CAAC;;EAE1F;EACA;EACAH,IAAI,GAAGA,IAAI,CAACI,OAAO,CAAEb,UAAU,EAAE,EAAG,CAAC;;EAErC;EACAS,IAAI,GAAGR,oBAAoB,CAAEQ,IAAK,CAAC;EACnC,MAAMK,UAAU,GAAGX,eAAe,CAAEM,IAAK,CAAC;EAC1C,MAAMM,gBAAgB,GAAG,EAAE;;EAE3B;EACA,MAAMC,iBAAiB,GAAGR,UAAU,CAACS,SAAS,CAAE,mBAAoB,CAAC;EAErEH,UAAU,CAACI,GAAG,CAAE,UAAUC,SAAS,EAAG;IACrCJ,gBAAgB,CAACK,IAAI,CAAE;MACtBC,WAAW,EAAEL,iBAAiB,GAAGA,iBAAiB,CAAEG,SAAU,CAAC,GAAGjB,UAAU,CAAEiB,SAAU,CAAC;MACzFV,IAAI,EAAEU;IACP,CAAE,CAAC;EACJ,CAAE,CAAC;EAEH,OAAOf,MAAM,CAAEW,gBAAgB,EAAE,UAAUO,eAAe,EAAG;IAC5D,OAASA,eAAe,CAACD,WAAW,GAAG,CAAC;EACzC,CAAE,CAAC;AACJ","ignoreList":[]}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { reject } from "lodash";
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _lodash = require("lodash");
|
|
8
3
|
/**
|
|
9
4
|
* Returns all paragraphs in a given Paper.
|
|
10
5
|
* Remove paragraphs that do not contain sentences or only consist of links.
|
|
@@ -12,12 +7,12 @@ var _lodash = require("lodash");
|
|
|
12
7
|
* @param {Paper} paper The current paper.
|
|
13
8
|
* @returns {Paragraph[]} All paragraphs in the paper.
|
|
14
9
|
*/
|
|
15
|
-
function
|
|
10
|
+
export default function (paper) {
|
|
16
11
|
let paragraphs = paper.getTree().findAll(node => node.name === "p");
|
|
17
12
|
|
|
18
13
|
// Remove empty paragraphs without sentences and paragraphs only consisting of links.
|
|
19
|
-
paragraphs =
|
|
20
|
-
paragraphs =
|
|
14
|
+
paragraphs = reject(paragraphs, paragraph => paragraph.sentences.length === 0);
|
|
15
|
+
paragraphs = reject(paragraphs, paragraph => paragraph.childNodes.every(node => node.name === "a"));
|
|
21
16
|
return paragraphs;
|
|
22
17
|
}
|
|
23
18
|
//# sourceMappingURL=getParagraphs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getParagraphs.js","names":["
|
|
1
|
+
{"version":3,"file":"getParagraphs.js","names":["reject","paper","paragraphs","getTree","findAll","node","name","paragraph","sentences","length","childNodes","every"],"sources":["../../../src/languageProcessing/researches/getParagraphs.js"],"sourcesContent":["import { reject } from \"lodash\";\n\n/**\n * Returns all paragraphs in a given Paper.\n * Remove paragraphs that do not contain sentences or only consist of links.\n *\n * @param {Paper} paper The current paper.\n * @returns {Paragraph[]} All paragraphs in the paper.\n */\nexport default function( paper ) {\n\tlet paragraphs = paper.getTree().findAll( node => node.name === \"p\" );\n\n\t// Remove empty paragraphs without sentences and paragraphs only consisting of links.\n\tparagraphs = reject( paragraphs, paragraph => paragraph.sentences.length === 0 );\n\tparagraphs = reject( paragraphs, paragraph => paragraph.childNodes.every( node => node.name === \"a\" ) );\n\n\treturn paragraphs;\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,QAAQ;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUC,KAAK,EAAG;EAChC,IAAIC,UAAU,GAAGD,KAAK,CAACE,OAAO,CAAC,CAAC,CAACC,OAAO,CAAEC,IAAI,IAAIA,IAAI,CAACC,IAAI,KAAK,GAAI,CAAC;;EAErE;EACAJ,UAAU,GAAGF,MAAM,CAAEE,UAAU,EAAEK,SAAS,IAAIA,SAAS,CAACC,SAAS,CAACC,MAAM,KAAK,CAAE,CAAC;EAChFP,UAAU,GAAGF,MAAM,CAAEE,UAAU,EAAEK,SAAS,IAAIA,SAAS,CAACG,UAAU,CAACC,KAAK,CAAEN,IAAI,IAAIA,IAAI,CAACC,IAAI,KAAK,GAAI,CAAE,CAAC;EAEvG,OAAOJ,UAAU;AAClB","ignoreList":[]}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import getSentences from "../helpers/sentence/getSentences.js";
|
|
2
|
+
import { stripFullTags as stripHTMLTags } from "../helpers/sanitize/stripHTMLTags.js";
|
|
3
|
+
import Sentence from "../../languageProcessing/values/Sentence.js";
|
|
4
|
+
import { forEach } from "lodash";
|
|
5
|
+
import removeHtmlBlocks from "../helpers/html/htmlParser";
|
|
6
|
+
import { filterShortcodesFromHTML } from "../helpers";
|
|
2
7
|
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = getPassiveVoice;
|
|
7
|
-
exports.getPeriphrasticPassives = exports.getMorphologicalPassives = void 0;
|
|
8
|
-
var _getSentences = _interopRequireDefault(require("../helpers/sentence/getSentences.js"));
|
|
9
|
-
var _stripHTMLTags = require("../helpers/sanitize/stripHTMLTags.js");
|
|
10
|
-
var _Sentence = _interopRequireDefault(require("../../languageProcessing/values/Sentence.js"));
|
|
11
|
-
var _lodash = require("lodash");
|
|
12
|
-
var _htmlParser = _interopRequireDefault(require("../helpers/html/htmlParser"));
|
|
13
|
-
var _helpers = require("../helpers");
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
8
|
/**
|
|
16
9
|
* Looks for morphological passive voice.
|
|
17
10
|
* Supported morphological languages: "ru", "sv", "id", "ar", "he", "tr", "fa".
|
|
@@ -21,19 +14,19 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
21
14
|
*
|
|
22
15
|
* @returns {Object} The found passive sentences.
|
|
23
16
|
*/
|
|
24
|
-
const getMorphologicalPassives = function (paper, researcher) {
|
|
17
|
+
export const getMorphologicalPassives = function (paper, researcher) {
|
|
25
18
|
const isPassiveSentence = researcher.getHelper("isPassiveSentence");
|
|
26
19
|
let text = paper.getText();
|
|
27
|
-
text = (
|
|
28
|
-
text =
|
|
20
|
+
text = removeHtmlBlocks(text);
|
|
21
|
+
text = filterShortcodesFromHTML(text, paper._attributes && paper._attributes.shortcodes);
|
|
29
22
|
const memoizedTokenizer = researcher.getHelper("memoizedTokenizer");
|
|
30
|
-
const sentences = (
|
|
31
|
-
return new
|
|
23
|
+
const sentences = getSentences(text, memoizedTokenizer).map(function (sentence) {
|
|
24
|
+
return new Sentence(sentence);
|
|
32
25
|
});
|
|
33
26
|
const totalNumberSentences = sentences.length;
|
|
34
27
|
const passiveSentences = [];
|
|
35
|
-
|
|
36
|
-
const strippedSentence = (
|
|
28
|
+
forEach(sentences, function (sentence) {
|
|
29
|
+
const strippedSentence = stripHTMLTags(sentence.getSentenceText()).toLocaleLowerCase();
|
|
37
30
|
sentence.setPassive(isPassiveSentence(strippedSentence));
|
|
38
31
|
if (sentence.isPassive() === true) {
|
|
39
32
|
passiveSentences.push(sentence.getSentenceText());
|
|
@@ -54,20 +47,19 @@ const getMorphologicalPassives = function (paper, researcher) {
|
|
|
54
47
|
*
|
|
55
48
|
* @returns {Object} The found passive sentences.
|
|
56
49
|
*/
|
|
57
|
-
|
|
58
|
-
const getPeriphrasticPassives = function (paper, researcher) {
|
|
50
|
+
export const getPeriphrasticPassives = function (paper, researcher) {
|
|
59
51
|
const getClauses = researcher.getHelper("getClauses");
|
|
60
52
|
let text = paper.getText();
|
|
61
|
-
text = (
|
|
62
|
-
text =
|
|
53
|
+
text = removeHtmlBlocks(text);
|
|
54
|
+
text = filterShortcodesFromHTML(text, paper._attributes && paper._attributes.shortcodes);
|
|
63
55
|
const memoizedTokenizer = researcher.getHelper("memoizedTokenizer");
|
|
64
|
-
const sentences = (
|
|
65
|
-
return new
|
|
56
|
+
const sentences = getSentences(text, memoizedTokenizer).map(function (sentence) {
|
|
57
|
+
return new Sentence(sentence);
|
|
66
58
|
});
|
|
67
59
|
const totalNumberSentences = sentences.length;
|
|
68
60
|
const passiveSentences = [];
|
|
69
|
-
|
|
70
|
-
const strippedSentence = (
|
|
61
|
+
forEach(sentences, function (sentence) {
|
|
62
|
+
const strippedSentence = stripHTMLTags(sentence.getSentenceText()).toLocaleLowerCase();
|
|
71
63
|
|
|
72
64
|
// The functionality based on sentencePart objects should be rewritten using array indices of stopwords and auxiliaries.
|
|
73
65
|
|
|
@@ -96,7 +88,6 @@ const getPeriphrasticPassives = function (paper, researcher) {
|
|
|
96
88
|
*
|
|
97
89
|
* @returns {Object} The found passive sentences.
|
|
98
90
|
*/
|
|
99
|
-
exports.getPeriphrasticPassives = getPeriphrasticPassives;
|
|
100
91
|
const getMorphologicalAndPeriphrasticPassive = function (paper, researcher) {
|
|
101
92
|
const morphologicalPassives = getMorphologicalPassives(paper, researcher);
|
|
102
93
|
const periphrasticPassives = getPeriphrasticPassives(paper, researcher).passives;
|
|
@@ -114,7 +105,7 @@ const getMorphologicalAndPeriphrasticPassive = function (paper, researcher) {
|
|
|
114
105
|
*
|
|
115
106
|
* @returns {Object} The found passive sentences.
|
|
116
107
|
*/
|
|
117
|
-
function getPassiveVoice(paper, researcher) {
|
|
108
|
+
export default function getPassiveVoice(paper, researcher) {
|
|
118
109
|
const passiveType = researcher.getConfig("passiveConstructionType");
|
|
119
110
|
if (passiveType === "periphrastic") {
|
|
120
111
|
return getPeriphrasticPassives(paper, researcher);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPassiveVoiceResult.js","names":["
|
|
1
|
+
{"version":3,"file":"getPassiveVoiceResult.js","names":["getSentences","stripFullTags","stripHTMLTags","Sentence","forEach","removeHtmlBlocks","filterShortcodesFromHTML","getMorphologicalPassives","paper","researcher","isPassiveSentence","getHelper","text","getText","_attributes","shortcodes","memoizedTokenizer","sentences","map","sentence","totalNumberSentences","length","passiveSentences","strippedSentence","getSentenceText","toLocaleLowerCase","setPassive","isPassive","push","total","passives","getPeriphrasticPassives","getClauses","clauses","setClauses","getMorphologicalAndPeriphrasticPassive","morphologicalPassives","periphrasticPassives","concat","getPassiveVoice","passiveType","getConfig"],"sources":["../../../src/languageProcessing/researches/getPassiveVoiceResult.js"],"sourcesContent":["import getSentences from \"../helpers/sentence/getSentences.js\";\nimport { stripFullTags as stripHTMLTags } from \"../helpers/sanitize/stripHTMLTags.js\";\nimport Sentence from \"../../languageProcessing/values/Sentence.js\";\n\nimport { forEach } from \"lodash\";\nimport removeHtmlBlocks from \"../helpers/html/htmlParser\";\nimport { filterShortcodesFromHTML } from \"../helpers\";\n\n/**\n * Looks for morphological passive voice.\n * Supported morphological languages: \"ru\", \"sv\", \"id\", \"ar\", \"he\", \"tr\", \"fa\".\n * Farsi is implemented as morphological because the periphrastic passives are used as compound verbs (among other compound passives).\n * @param {Paper} paper The paper object.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Object} The found passive sentences.\n */\nexport const getMorphologicalPassives = function( paper, researcher ) {\n\tconst isPassiveSentence = researcher.getHelper( \"isPassiveSentence\" );\n\tlet text = paper.getText();\n\ttext = removeHtmlBlocks( text );\n\ttext = filterShortcodesFromHTML( text, paper._attributes && paper._attributes.shortcodes );\n\tconst memoizedTokenizer = researcher.getHelper( \"memoizedTokenizer\" );\n\tconst sentences = getSentences( text, memoizedTokenizer )\n\t\t.map( function( sentence ) {\n\t\t\treturn new Sentence( sentence );\n\t\t} );\n\tconst totalNumberSentences = sentences.length;\n\tconst passiveSentences = [];\n\n\tforEach( sentences, function( sentence ) {\n\t\tconst strippedSentence = stripHTMLTags( sentence.getSentenceText() ).toLocaleLowerCase();\n\n\t\tsentence.setPassive( isPassiveSentence( strippedSentence ) );\n\n\t\tif ( sentence.isPassive() === true ) {\n\t\t\tpassiveSentences.push( sentence.getSentenceText() );\n\t\t}\n\t} );\n\n\treturn {\n\t\ttotal: totalNumberSentences,\n\t\tpassives: passiveSentences,\n\t};\n};\n\n/**\n * Looks for periphrastic passive voice.\n * Supported periphrastic languages: \"en\", \"de\", \"nl\", \"fr\", \"es\", \"it\", \"pt\", \"pl\", \"sk\".\n *\n * @param {Paper} paper The paper object.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Object} The found passive sentences.\n */\nexport const getPeriphrasticPassives = function( paper, researcher ) {\n\tconst getClauses = researcher.getHelper( \"getClauses\" );\n\tlet text = paper.getText();\n\ttext = removeHtmlBlocks( text );\n\ttext = filterShortcodesFromHTML( text, paper._attributes && paper._attributes.shortcodes );\n\tconst memoizedTokenizer = researcher.getHelper( \"memoizedTokenizer\" );\n\tconst sentences = getSentences( text, memoizedTokenizer )\n\t\t.map( function( sentence ) {\n\t\t\treturn new Sentence( sentence );\n\t\t} );\n\tconst totalNumberSentences = sentences.length;\n\tconst passiveSentences = [];\n\n\tforEach( sentences, function( sentence ) {\n\t\tconst strippedSentence = stripHTMLTags( sentence.getSentenceText() ).toLocaleLowerCase();\n\n\t\t// The functionality based on sentencePart objects should be rewritten using array indices of stopwords and auxiliaries.\n\n\t\t// Divide a sentence into clauses and return an array of clause objects that have been checked for passiveness.\n\t\tconst clauses = getClauses( strippedSentence );\n\t\tsentence.setClauses( clauses );\n\n\t\t// Check sentence passiveness based on its clause passiveness.\n\t\tif ( sentence.isPassive() ) {\n\t\t\tpassiveSentences.push( sentence.getSentenceText() );\n\t\t}\n\t} );\n\n\treturn {\n\t\ttotal: totalNumberSentences,\n\t\tpassives: passiveSentences,\n\t};\n};\n\n/**\n * Looks for both morphological and periphrastic passive voice\n * Supported languages with both morphological and periphrastic passives: \"hu\", \"nb\".\n * Due to technical difficulties \"nb\" is only implemented as periphrastic at the moment. Languages that have not been implemented yet: \"da\".\n *\n * @param {Paper} paper The paper object.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Object} The found passive sentences.\n */\nconst getMorphologicalAndPeriphrasticPassive = function( paper, researcher ) {\n\tconst morphologicalPassives = getMorphologicalPassives( paper, researcher );\n\tconst periphrasticPassives = getPeriphrasticPassives( paper, researcher ).passives;\n\n\treturn {\n\t\ttotal: morphologicalPassives.total,\n\t\tpassives: periphrasticPassives.concat( morphologicalPassives.passives ),\n\t};\n};\n\n/**\n * Looks for passive voice.\n *\n * @param {Paper} paper The paper object.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Object} The found passive sentences.\n */\nexport default function getPassiveVoice( paper, researcher ) {\n\tconst passiveType = researcher.getConfig( \"passiveConstructionType\" );\n\n\tif ( passiveType === \"periphrastic\" ) {\n\t\treturn getPeriphrasticPassives( paper, researcher );\n\t}\n\tif ( passiveType === \"morphological\" ) {\n\t\treturn getMorphologicalPassives( paper, researcher );\n\t}\n\n\treturn getMorphologicalAndPeriphrasticPassive( paper, researcher );\n}\n"],"mappings":"AAAA,OAAOA,YAAY;AACnB,SAASC,aAAa,IAAIC,aAAa;AACvC,OAAOC,QAAQ;AAEf,SAASC,OAAO,QAAQ,QAAQ;AAChC,OAAOC,gBAAgB;AACvB,SAASC,wBAAwB;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,wBAAwB,GAAG,SAAAA,CAAUC,KAAK,EAAEC,UAAU,EAAG;EACrE,MAAMC,iBAAiB,GAAGD,UAAU,CAACE,SAAS,CAAE,mBAAoB,CAAC;EACrE,IAAIC,IAAI,GAAGJ,KAAK,CAACK,OAAO,CAAC,CAAC;EAC1BD,IAAI,GAAGP,gBAAgB,CAAEO,IAAK,CAAC;EAC/BA,IAAI,GAAGN,wBAAwB,CAAEM,IAAI,EAAEJ,KAAK,CAACM,WAAW,IAAIN,KAAK,CAACM,WAAW,CAACC,UAAW,CAAC;EAC1F,MAAMC,iBAAiB,GAAGP,UAAU,CAACE,SAAS,CAAE,mBAAoB,CAAC;EACrE,MAAMM,SAAS,GAAGjB,YAAY,CAAEY,IAAI,EAAEI,iBAAkB,CAAC,CACvDE,GAAG,CAAE,UAAUC,QAAQ,EAAG;IAC1B,OAAO,IAAIhB,QAAQ,CAAEgB,QAAS,CAAC;EAChC,CAAE,CAAC;EACJ,MAAMC,oBAAoB,GAAGH,SAAS,CAACI,MAAM;EAC7C,MAAMC,gBAAgB,GAAG,EAAE;EAE3BlB,OAAO,CAAEa,SAAS,EAAE,UAAUE,QAAQ,EAAG;IACxC,MAAMI,gBAAgB,GAAGrB,aAAa,CAAEiB,QAAQ,CAACK,eAAe,CAAC,CAAE,CAAC,CAACC,iBAAiB,CAAC,CAAC;IAExFN,QAAQ,CAACO,UAAU,CAAEhB,iBAAiB,CAAEa,gBAAiB,CAAE,CAAC;IAE5D,IAAKJ,QAAQ,CAACQ,SAAS,CAAC,CAAC,KAAK,IAAI,EAAG;MACpCL,gBAAgB,CAACM,IAAI,CAAET,QAAQ,CAACK,eAAe,CAAC,CAAE,CAAC;IACpD;EACD,CAAE,CAAC;EAEH,OAAO;IACNK,KAAK,EAAET,oBAAoB;IAC3BU,QAAQ,EAAER;EACX,CAAC;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMS,uBAAuB,GAAG,SAAAA,CAAUvB,KAAK,EAAEC,UAAU,EAAG;EACpE,MAAMuB,UAAU,GAAGvB,UAAU,CAACE,SAAS,CAAE,YAAa,CAAC;EACvD,IAAIC,IAAI,GAAGJ,KAAK,CAACK,OAAO,CAAC,CAAC;EAC1BD,IAAI,GAAGP,gBAAgB,CAAEO,IAAK,CAAC;EAC/BA,IAAI,GAAGN,wBAAwB,CAAEM,IAAI,EAAEJ,KAAK,CAACM,WAAW,IAAIN,KAAK,CAACM,WAAW,CAACC,UAAW,CAAC;EAC1F,MAAMC,iBAAiB,GAAGP,UAAU,CAACE,SAAS,CAAE,mBAAoB,CAAC;EACrE,MAAMM,SAAS,GAAGjB,YAAY,CAAEY,IAAI,EAAEI,iBAAkB,CAAC,CACvDE,GAAG,CAAE,UAAUC,QAAQ,EAAG;IAC1B,OAAO,IAAIhB,QAAQ,CAAEgB,QAAS,CAAC;EAChC,CAAE,CAAC;EACJ,MAAMC,oBAAoB,GAAGH,SAAS,CAACI,MAAM;EAC7C,MAAMC,gBAAgB,GAAG,EAAE;EAE3BlB,OAAO,CAAEa,SAAS,EAAE,UAAUE,QAAQ,EAAG;IACxC,MAAMI,gBAAgB,GAAGrB,aAAa,CAAEiB,QAAQ,CAACK,eAAe,CAAC,CAAE,CAAC,CAACC,iBAAiB,CAAC,CAAC;;IAExF;;IAEA;IACA,MAAMQ,OAAO,GAAGD,UAAU,CAAET,gBAAiB,CAAC;IAC9CJ,QAAQ,CAACe,UAAU,CAAED,OAAQ,CAAC;;IAE9B;IACA,IAAKd,QAAQ,CAACQ,SAAS,CAAC,CAAC,EAAG;MAC3BL,gBAAgB,CAACM,IAAI,CAAET,QAAQ,CAACK,eAAe,CAAC,CAAE,CAAC;IACpD;EACD,CAAE,CAAC;EAEH,OAAO;IACNK,KAAK,EAAET,oBAAoB;IAC3BU,QAAQ,EAAER;EACX,CAAC;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMa,sCAAsC,GAAG,SAAAA,CAAU3B,KAAK,EAAEC,UAAU,EAAG;EAC5E,MAAM2B,qBAAqB,GAAG7B,wBAAwB,CAAEC,KAAK,EAAEC,UAAW,CAAC;EAC3E,MAAM4B,oBAAoB,GAAGN,uBAAuB,CAAEvB,KAAK,EAAEC,UAAW,CAAC,CAACqB,QAAQ;EAElF,OAAO;IACND,KAAK,EAAEO,qBAAqB,CAACP,KAAK;IAClCC,QAAQ,EAAEO,oBAAoB,CAACC,MAAM,CAAEF,qBAAqB,CAACN,QAAS;EACvE,CAAC;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASS,eAAeA,CAAE/B,KAAK,EAAEC,UAAU,EAAG;EAC5D,MAAM+B,WAAW,GAAG/B,UAAU,CAACgC,SAAS,CAAE,yBAA0B,CAAC;EAErE,IAAKD,WAAW,KAAK,cAAc,EAAG;IACrC,OAAOT,uBAAuB,CAAEvB,KAAK,EAAEC,UAAW,CAAC;EACpD;EACA,IAAK+B,WAAW,KAAK,eAAe,EAAG;IACtC,OAAOjC,wBAAwB,CAAEC,KAAK,EAAEC,UAAW,CAAC;EACrD;EAEA,OAAO0B,sCAAsC,CAAE3B,KAAK,EAAEC,UAAW,CAAC;AACnE","ignoreList":[]}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { take } from "lodash";
|
|
2
|
+
import { collapseProminentWordsOnStem, filterProminentWords, getProminentWords, retrieveAbbreviations, sortProminentWords } from "../helpers/prominentWords/determineProminentWords";
|
|
3
|
+
import removeURLs from "../helpers/sanitize/removeURLs.js";
|
|
4
|
+
import removeEmailAddresses from "../helpers/sanitize/removeEmailAddresses";
|
|
2
5
|
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _lodash = require("lodash");
|
|
8
|
-
var _determineProminentWords = require("../helpers/prominentWords/determineProminentWords");
|
|
9
|
-
var _removeURLs = _interopRequireDefault(require("../helpers/sanitize/removeURLs.js"));
|
|
10
|
-
var _removeEmailAddresses = _interopRequireDefault(require("../helpers/sanitize/removeEmailAddresses"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
6
|
/**
|
|
13
7
|
* Retrieves the prominent words from the given paper.
|
|
14
8
|
*
|
|
@@ -26,20 +20,20 @@ function getProminentWordsForInsights(paper, researcher) {
|
|
|
26
20
|
const getWordsCustomHelper = researcher.getHelper("getWordsCustomHelper");
|
|
27
21
|
let text = paper.getText();
|
|
28
22
|
// We don't want to include URLs or email addresses in prominent words.
|
|
29
|
-
text = (
|
|
30
|
-
text = (
|
|
23
|
+
text = removeURLs(text);
|
|
24
|
+
text = removeEmailAddresses(text);
|
|
31
25
|
|
|
32
26
|
// If the language has a custom helper to get words from the text, we don't retrieve the abbreviation.
|
|
33
|
-
const abbreviations = getWordsCustomHelper ? [] :
|
|
34
|
-
const prominentWordsFromText =
|
|
35
|
-
const collapsedWords =
|
|
36
|
-
|
|
27
|
+
const abbreviations = getWordsCustomHelper ? [] : retrieveAbbreviations(text);
|
|
28
|
+
const prominentWordsFromText = getProminentWords(text, abbreviations, stemmer, functionWords, getWordsCustomHelper);
|
|
29
|
+
const collapsedWords = collapseProminentWordsOnStem(prominentWordsFromText);
|
|
30
|
+
sortProminentWords(collapsedWords);
|
|
37
31
|
|
|
38
32
|
/*
|
|
39
33
|
* Collapse the list of prominent words on stems, sort it, filter out all words that occur less than
|
|
40
34
|
* 5 times in the text. Return the 20 top items from this list.
|
|
41
35
|
*/
|
|
42
|
-
return
|
|
36
|
+
return take(filterProminentWords(collapsedWords, 5), 20);
|
|
43
37
|
}
|
|
44
|
-
|
|
38
|
+
export default getProminentWordsForInsights;
|
|
45
39
|
//# sourceMappingURL=getProminentWordsForInsights.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getProminentWordsForInsights.js","names":["
|
|
1
|
+
{"version":3,"file":"getProminentWordsForInsights.js","names":["take","collapseProminentWordsOnStem","filterProminentWords","getProminentWords","retrieveAbbreviations","sortProminentWords","removeURLs","removeEmailAddresses","getProminentWordsForInsights","paper","researcher","functionWords","getConfig","customStemmer","getHelper","stemmer","getWordsCustomHelper","text","getText","abbreviations","prominentWordsFromText","collapsedWords"],"sources":["../../../src/languageProcessing/researches/getProminentWordsForInsights.js"],"sourcesContent":["import { take } from \"lodash\";\nimport {\n\tcollapseProminentWordsOnStem,\n\tfilterProminentWords,\n\tgetProminentWords,\n\tretrieveAbbreviations,\n\tsortProminentWords,\n} from \"../helpers/prominentWords/determineProminentWords\";\nimport removeURLs from \"../helpers/sanitize/removeURLs.js\";\nimport removeEmailAddresses from \"../helpers/sanitize/removeEmailAddresses\";\n\n/**\n * Retrieves the prominent words from the given paper.\n *\n * @param {Paper} paper The paper to determine the prominent words of.\n * @param {Researcher} researcher The researcher to use for analysis.\n *\n * @returns {WordCombination[]} Prominent words for this paper, filtered and sorted.\n */\nfunction getProminentWordsForInsights( paper, researcher ) {\n\tconst functionWords = researcher.getConfig( \"functionWords\" );\n\t// An optional custom helper to return custom function to return the stem of a word.\n\tconst customStemmer = researcher.getHelper( \"customGetStemmer\" );\n\tconst stemmer = customStemmer ? customStemmer( researcher ) : researcher.getHelper( \"getStemmer\" )( researcher );\n\t// An optional custom helper to get words from the text.\n\tconst getWordsCustomHelper = researcher.getHelper( \"getWordsCustomHelper\" );\n\n\tlet text = paper.getText();\n\t// We don't want to include URLs or email addresses in prominent words.\n\ttext = removeURLs( text );\n\ttext = removeEmailAddresses( text );\n\n\t// If the language has a custom helper to get words from the text, we don't retrieve the abbreviation.\n\tconst abbreviations = getWordsCustomHelper ? [] : retrieveAbbreviations( text );\n\n\tconst prominentWordsFromText = getProminentWords( text, abbreviations, stemmer, functionWords, getWordsCustomHelper );\n\n\tconst collapsedWords = collapseProminentWordsOnStem( prominentWordsFromText );\n\tsortProminentWords( collapsedWords );\n\n\t/*\n\t * Collapse the list of prominent words on stems, sort it, filter out all words that occur less than\n\t * 5 times in the text. Return the 20 top items from this list.\n\t */\n\treturn take( filterProminentWords( collapsedWords, 5 ), 20 );\n}\n\nexport default getProminentWordsForInsights;\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,QAAQ;AAC7B,SACCC,4BAA4B,EAC5BC,oBAAoB,EACpBC,iBAAiB,EACjBC,qBAAqB,EACrBC,kBAAkB;AAEnB,OAAOC,UAAU;AACjB,OAAOC,oBAAoB;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,4BAA4BA,CAAEC,KAAK,EAAEC,UAAU,EAAG;EAC1D,MAAMC,aAAa,GAAGD,UAAU,CAACE,SAAS,CAAE,eAAgB,CAAC;EAC7D;EACA,MAAMC,aAAa,GAAGH,UAAU,CAACI,SAAS,CAAE,kBAAmB,CAAC;EAChE,MAAMC,OAAO,GAAGF,aAAa,GAAGA,aAAa,CAAEH,UAAW,CAAC,GAAGA,UAAU,CAACI,SAAS,CAAE,YAAa,CAAC,CAAEJ,UAAW,CAAC;EAChH;EACA,MAAMM,oBAAoB,GAAGN,UAAU,CAACI,SAAS,CAAE,sBAAuB,CAAC;EAE3E,IAAIG,IAAI,GAAGR,KAAK,CAACS,OAAO,CAAC,CAAC;EAC1B;EACAD,IAAI,GAAGX,UAAU,CAAEW,IAAK,CAAC;EACzBA,IAAI,GAAGV,oBAAoB,CAAEU,IAAK,CAAC;;EAEnC;EACA,MAAME,aAAa,GAAGH,oBAAoB,GAAG,EAAE,GAAGZ,qBAAqB,CAAEa,IAAK,CAAC;EAE/E,MAAMG,sBAAsB,GAAGjB,iBAAiB,CAAEc,IAAI,EAAEE,aAAa,EAAEJ,OAAO,EAAEJ,aAAa,EAAEK,oBAAqB,CAAC;EAErH,MAAMK,cAAc,GAAGpB,4BAA4B,CAAEmB,sBAAuB,CAAC;EAC7Ef,kBAAkB,CAAEgB,cAAe,CAAC;;EAEpC;AACD;AACA;AACA;EACC,OAAOrB,IAAI,CAAEE,oBAAoB,CAAEmB,cAAc,EAAE,CAAE,CAAC,EAAE,EAAG,CAAC;AAC7D;AAEA,eAAeb,4BAA4B","ignoreList":[]}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { take } from "lodash";
|
|
2
|
+
import countWords from "../helpers/word/countWords";
|
|
3
|
+
import { collapseProminentWordsOnStem, filterProminentWords, getProminentWords, getProminentWordsFromPaperAttributes, retrieveAbbreviations, sortProminentWords } from "../helpers/prominentWords/determineProminentWords";
|
|
4
|
+
import { getSubheadingsTopLevel, removeSubheadingsTopLevel } from "../helpers/html/getSubheadings";
|
|
5
|
+
import baseStemmer from "../helpers/morphology/baseStemmer";
|
|
6
|
+
import removeURLs from "../helpers/sanitize/removeURLs.js";
|
|
7
|
+
import removeEmailAddresses from "../helpers/sanitize/removeEmailAddresses";
|
|
2
8
|
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _lodash = require("lodash");
|
|
8
|
-
var _countWords = _interopRequireDefault(require("../helpers/word/countWords"));
|
|
9
|
-
var _determineProminentWords = require("../helpers/prominentWords/determineProminentWords");
|
|
10
|
-
var _getSubheadings = require("../helpers/html/getSubheadings");
|
|
11
|
-
var _baseStemmer = _interopRequireDefault(require("../helpers/morphology/baseStemmer"));
|
|
12
|
-
var _removeURLs = _interopRequireDefault(require("../helpers/sanitize/removeURLs.js"));
|
|
13
|
-
var _removeEmailAddresses = _interopRequireDefault(require("../helpers/sanitize/removeEmailAddresses"));
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
9
|
/**
|
|
16
10
|
* Removes URLs and email addresses from the text.
|
|
17
11
|
*
|
|
@@ -20,8 +14,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
20
14
|
* @returns {string} The text without URLs and email addresses.
|
|
21
15
|
*/
|
|
22
16
|
const sanitizeText = function (text) {
|
|
23
|
-
text = (
|
|
24
|
-
return (
|
|
17
|
+
text = removeURLs(text);
|
|
18
|
+
return removeEmailAddresses(text);
|
|
25
19
|
};
|
|
26
20
|
|
|
27
21
|
/**
|
|
@@ -60,25 +54,25 @@ function getProminentWordsForInternalLinking(paper, researcher) {
|
|
|
60
54
|
if (customCountLength(text) < 200) {
|
|
61
55
|
return result;
|
|
62
56
|
}
|
|
63
|
-
} else if ((
|
|
57
|
+
} else if (countWords(text) < 100) {
|
|
64
58
|
return result;
|
|
65
59
|
}
|
|
66
|
-
const subheadings =
|
|
60
|
+
const subheadings = getSubheadingsTopLevel(text).map(subheading => subheading[2]);
|
|
67
61
|
const attributes = [paper.getKeyword(), paper.getSynonyms(), title, metadescription, subheadings.join(" ")];
|
|
68
62
|
|
|
69
63
|
// If the language has a custom helper to get words from the text, we don't retrieve the abbreviation.
|
|
70
|
-
const abbreviations = getWordsCustomHelper ? [] :
|
|
71
|
-
const removedSubheadingText =
|
|
72
|
-
const prominentWordsFromText =
|
|
73
|
-
const prominentWordsFromPaperAttributes =
|
|
64
|
+
const abbreviations = getWordsCustomHelper ? [] : retrieveAbbreviations(text.concat(attributes.join(" ")));
|
|
65
|
+
const removedSubheadingText = removeSubheadingsTopLevel(text);
|
|
66
|
+
const prominentWordsFromText = getProminentWords(removedSubheadingText, abbreviations, stemmer, functionWords, getWordsCustomHelper);
|
|
67
|
+
const prominentWordsFromPaperAttributes = getProminentWordsFromPaperAttributes(attributes, abbreviations, stemmer, functionWords, getWordsCustomHelper);
|
|
74
68
|
|
|
75
69
|
/*
|
|
76
70
|
* If a word is used in any of the attributes, its weight is automatically high.
|
|
77
71
|
* To make sure the word survives weight filters and gets saved in the database, make the number of occurrences times-3.
|
|
78
72
|
*/
|
|
79
73
|
prominentWordsFromPaperAttributes.forEach(relevantWord => relevantWord.setOccurrences(relevantWord.getOccurrences() * 3));
|
|
80
|
-
const collapsedWords =
|
|
81
|
-
|
|
74
|
+
const collapsedWords = collapseProminentWordsOnStem(prominentWordsFromPaperAttributes.concat(prominentWordsFromText));
|
|
75
|
+
sortProminentWords(collapsedWords);
|
|
82
76
|
|
|
83
77
|
/*
|
|
84
78
|
* If morphology data are available for a language, the minimum number of occurrences to consider a word to be prominent is 4.
|
|
@@ -88,7 +82,7 @@ function getProminentWordsForInternalLinking(paper, researcher) {
|
|
|
88
82
|
* If morphology data are not available, and therefore word forms are not recognized, the minimum threshold is lowered to 2.
|
|
89
83
|
*/
|
|
90
84
|
let minimumNumberOfOccurrences = 4;
|
|
91
|
-
if (stemmer ===
|
|
85
|
+
if (stemmer === baseStemmer) {
|
|
92
86
|
minimumNumberOfOccurrences = 2;
|
|
93
87
|
}
|
|
94
88
|
|
|
@@ -96,8 +90,8 @@ function getProminentWordsForInternalLinking(paper, researcher) {
|
|
|
96
90
|
* Return the 100 top items from the collapsed and sorted list. The number is picked deliberately to prevent larger
|
|
97
91
|
* articles from getting too long of lists.
|
|
98
92
|
*/
|
|
99
|
-
result.prominentWords =
|
|
93
|
+
result.prominentWords = take(filterProminentWords(collapsedWords, minimumNumberOfOccurrences), 100);
|
|
100
94
|
return result;
|
|
101
95
|
}
|
|
102
|
-
|
|
96
|
+
export default getProminentWordsForInternalLinking;
|
|
103
97
|
//# sourceMappingURL=getProminentWordsForInternalLinking.js.map
|