axyseo 2.0.0-alpha.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/README.md +228 -0
- package/build/bundledPlugins/index.js +14 -0
- package/build/bundledPlugins/index.js.map +1 -0
- package/build/bundledPlugins/previouslyUsedKeywords.js +171 -0
- package/build/bundledPlugins/previouslyUsedKeywords.js.map +1 -0
- package/build/config/diacritics.js +140 -0
- package/build/config/diacritics.js.map +1 -0
- package/build/config/getTransliterations.js +3572 -0
- package/build/config/getTransliterations.js.map +1 -0
- package/build/config/transliterationsWPstyle.js +1424 -0
- package/build/config/transliterationsWPstyle.js.map +1 -0
- package/build/config/wordBoundaries.js +26 -0
- package/build/config/wordBoundaries.js.map +1 -0
- package/build/config/wordBoundariesWithoutPunctuation.js +16 -0
- package/build/config/wordBoundariesWithoutPunctuation.js.map +1 -0
- package/build/const/analysis.js +20 -0
- package/build/const/analysis.js.map +1 -0
- package/build/errors/invalidType.js +22 -0
- package/build/errors/invalidType.js.map +1 -0
- package/build/errors/missingArgument.js +22 -0
- package/build/errors/missingArgument.js.map +1 -0
- package/build/helpers/createMeasurementElement.js +46 -0
- package/build/helpers/createMeasurementElement.js.map +1 -0
- package/build/helpers/domManipulation.js +66 -0
- package/build/helpers/domManipulation.js.map +1 -0
- package/build/helpers/errors.js +26 -0
- package/build/helpers/errors.js.map +1 -0
- package/build/helpers/factory.js +207 -0
- package/build/helpers/factory.js.map +1 -0
- package/build/helpers/formatNumber.js +18 -0
- package/build/helpers/formatNumber.js.map +1 -0
- package/build/helpers/formatString.js +38 -0
- package/build/helpers/formatString.js.map +1 -0
- package/build/helpers/getLanguagesWithWordComplexity.js +15 -0
- package/build/helpers/getLanguagesWithWordComplexity.js.map +1 -0
- package/build/helpers/getLanguagesWithWordFormSupport.js +16 -0
- package/build/helpers/getLanguagesWithWordFormSupport.js.map +1 -0
- package/build/helpers/getWordComplexityConfig.js +27 -0
- package/build/helpers/getWordComplexityConfig.js.map +1 -0
- package/build/helpers/getWordComplexityHelper.js +27 -0
- package/build/helpers/getWordComplexityHelper.js.map +1 -0
- package/build/helpers/htmlEntities.js +21 -0
- package/build/helpers/htmlEntities.js.map +1 -0
- package/build/helpers/includesAny.js +24 -0
- package/build/helpers/includesAny.js.map +1 -0
- package/build/helpers/index.js +179 -0
- package/build/helpers/index.js.map +1 -0
- package/build/helpers/shortlinker/Shortlinker.js +79 -0
- package/build/helpers/shortlinker/Shortlinker.js.map +1 -0
- package/build/helpers/shortlinker/index.js +17 -0
- package/build/helpers/shortlinker/index.js.map +1 -0
- package/build/helpers/shortlinker/singleton.js +76 -0
- package/build/helpers/shortlinker/singleton.js.map +1 -0
- package/build/helpers/types.js +37 -0
- package/build/helpers/types.js.map +1 -0
- package/build/index.js +103 -0
- package/build/index.js.map +1 -0
- package/build/languageProcessing/AbstractResearcher.js +348 -0
- package/build/languageProcessing/AbstractResearcher.js.map +1 -0
- package/build/languageProcessing/helpers/highlighting/getMarkingsInSentence.js +123 -0
- package/build/languageProcessing/helpers/highlighting/getMarkingsInSentence.js.map +1 -0
- package/build/languageProcessing/helpers/html/getFieldsToMark.js +37 -0
- package/build/languageProcessing/helpers/html/getFieldsToMark.js.map +1 -0
- package/build/languageProcessing/helpers/html/getSubheadingTexts.js +47 -0
- package/build/languageProcessing/helpers/html/getSubheadingTexts.js.map +1 -0
- package/build/languageProcessing/helpers/html/getSubheadings.js +92 -0
- package/build/languageProcessing/helpers/html/getSubheadings.js.map +1 -0
- package/build/languageProcessing/helpers/html/html.js +152 -0
- package/build/languageProcessing/helpers/html/html.js.map +1 -0
- package/build/languageProcessing/helpers/html/htmlParser.js +132 -0
- package/build/languageProcessing/helpers/html/htmlParser.js.map +1 -0
- package/build/languageProcessing/helpers/html/matchParagraphs.js +61 -0
- package/build/languageProcessing/helpers/html/matchParagraphs.js.map +1 -0
- package/build/languageProcessing/helpers/html/normalizeHTML.js +23 -0
- package/build/languageProcessing/helpers/html/normalizeHTML.js.map +1 -0
- package/build/languageProcessing/helpers/image/getAltAttribute.js +24 -0
- package/build/languageProcessing/helpers/image/getAltAttribute.js.map +1 -0
- package/build/languageProcessing/helpers/image/getImagesInTree.js +21 -0
- package/build/languageProcessing/helpers/image/getImagesInTree.js.map +1 -0
- package/build/languageProcessing/helpers/image/imageInText.js +26 -0
- package/build/languageProcessing/helpers/image/imageInText.js.map +1 -0
- package/build/languageProcessing/helpers/index.js +41 -0
- package/build/languageProcessing/helpers/index.js.map +1 -0
- package/build/languageProcessing/helpers/language/getLanguage.js +16 -0
- package/build/languageProcessing/helpers/language/getLanguage.js.map +1 -0
- package/build/languageProcessing/helpers/link/checkNofollow.js +42 -0
- package/build/languageProcessing/helpers/link/checkNofollow.js.map +1 -0
- package/build/languageProcessing/helpers/link/getAnchorsFromText.js +37 -0
- package/build/languageProcessing/helpers/link/getAnchorsFromText.js.map +1 -0
- package/build/languageProcessing/helpers/link/getLinkType.js +36 -0
- package/build/languageProcessing/helpers/link/getLinkType.js.map +1 -0
- package/build/languageProcessing/helpers/match/findKeywordFormsInString.js +101 -0
- package/build/languageProcessing/helpers/match/findKeywordFormsInString.js.map +1 -0
- package/build/languageProcessing/helpers/match/isDoubleQuoted.js +19 -0
- package/build/languageProcessing/helpers/match/isDoubleQuoted.js.map +1 -0
- package/build/languageProcessing/helpers/match/matchTextWithArray.js +41 -0
- package/build/languageProcessing/helpers/match/matchTextWithArray.js.map +1 -0
- package/build/languageProcessing/helpers/match/matchTextWithTransliteration.js +58 -0
- package/build/languageProcessing/helpers/match/matchTextWithTransliteration.js.map +1 -0
- package/build/languageProcessing/helpers/match/matchTextWithWord.js +47 -0
- package/build/languageProcessing/helpers/match/matchTextWithWord.js.map +1 -0
- package/build/languageProcessing/helpers/match/matchWordFormsWithSentence.js +162 -0
- package/build/languageProcessing/helpers/match/matchWordFormsWithSentence.js.map +1 -0
- package/build/languageProcessing/helpers/match/processExactMatchRequest.js +29 -0
- package/build/languageProcessing/helpers/match/processExactMatchRequest.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/baseStemmer.js +18 -0
- package/build/languageProcessing/helpers/morphology/baseStemmer.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/buildFormRule.js +26 -0
- package/build/languageProcessing/helpers/morphology/buildFormRule.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/buildTopicStems.js +164 -0
- package/build/languageProcessing/helpers/morphology/buildTopicStems.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/createRulesFromArrays.js +48 -0
- package/build/languageProcessing/helpers/morphology/createRulesFromArrays.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/exceptionListHelpers.js +71 -0
- package/build/languageProcessing/helpers/morphology/exceptionListHelpers.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/findMatchingEndingInArray.js +29 -0
- package/build/languageProcessing/helpers/morphology/findMatchingEndingInArray.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/flattenSortLength.js +19 -0
- package/build/languageProcessing/helpers/morphology/flattenSortLength.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/getAllWordsFromPaper.js +35 -0
- package/build/languageProcessing/helpers/morphology/getAllWordsFromPaper.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/regexHelpers.js +53 -0
- package/build/languageProcessing/helpers/morphology/regexHelpers.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/stemHelpers.js +46 -0
- package/build/languageProcessing/helpers/morphology/stemHelpers.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/stemPrefixedFunctionWords.js +39 -0
- package/build/languageProcessing/helpers/morphology/stemPrefixedFunctionWords.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/directPrecedenceException.js +42 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/directPrecedenceException.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/getClausesSplitOnStopWords.js +116 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/getClausesSplitOnStopWords.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/nonDirectParticiplePrecedenceException.js +45 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/nonDirectParticiplePrecedenceException.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getClauses.js +220 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getClauses.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getIndicesWithRegex.js +27 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getIndicesWithRegex.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/matchRegularParticiples.js +28 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/matchRegularParticiples.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/precedenceException.js +46 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/precedenceException.js.map +1 -0
- package/build/languageProcessing/helpers/prominentWords/determineProminentWords.js +203 -0
- package/build/languageProcessing/helpers/prominentWords/determineProminentWords.js.map +1 -0
- package/build/languageProcessing/helpers/regex/createRegexFromArray.js +38 -0
- package/build/languageProcessing/helpers/regex/createRegexFromArray.js.map +1 -0
- package/build/languageProcessing/helpers/regex/createRegexFromDoubleArray.js +39 -0
- package/build/languageProcessing/helpers/regex/createRegexFromDoubleArray.js.map +1 -0
- package/build/languageProcessing/helpers/regex/createWordRegex.js +34 -0
- package/build/languageProcessing/helpers/regex/createWordRegex.js.map +1 -0
- package/build/languageProcessing/helpers/regex/matchStringWithRegex.js +24 -0
- package/build/languageProcessing/helpers/regex/matchStringWithRegex.js.map +1 -0
- package/build/languageProcessing/helpers/regex/searchAndReplaceWithOneRegex.js +21 -0
- package/build/languageProcessing/helpers/regex/searchAndReplaceWithOneRegex.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/doubleQuotes.js +19 -0
- package/build/languageProcessing/helpers/sanitize/doubleQuotes.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/filterShortcodesFromTree.js +131 -0
- package/build/languageProcessing/helpers/sanitize/filterShortcodesFromTree.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/mergeListItems.js +30 -0
- package/build/languageProcessing/helpers/sanitize/mergeListItems.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/parseSynonyms.js +24 -0
- package/build/languageProcessing/helpers/sanitize/parseSynonyms.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/quotes.js +47 -0
- package/build/languageProcessing/helpers/sanitize/quotes.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/removeEmailAddresses.js +19 -0
- package/build/languageProcessing/helpers/sanitize/removeEmailAddresses.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/removePunctuation.js +64 -0
- package/build/languageProcessing/helpers/sanitize/removePunctuation.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/removePunctuationExceptQuotes.js +24 -0
- package/build/languageProcessing/helpers/sanitize/removePunctuationExceptQuotes.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/removeSentenceTerminators.js +20 -0
- package/build/languageProcessing/helpers/sanitize/removeSentenceTerminators.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/removeURLs.js +19 -0
- package/build/languageProcessing/helpers/sanitize/removeURLs.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/sanitizeLineBreakTag.js +18 -0
- package/build/languageProcessing/helpers/sanitize/sanitizeLineBreakTag.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/sanitizeString.js +23 -0
- package/build/languageProcessing/helpers/sanitize/sanitizeString.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/stripHTMLTags.js +59 -0
- package/build/languageProcessing/helpers/sanitize/stripHTMLTags.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/stripNonTextTags.js +22 -0
- package/build/languageProcessing/helpers/sanitize/stripNonTextTags.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/stripNumbers.js +26 -0
- package/build/languageProcessing/helpers/sanitize/stripNumbers.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/stripSpaces.js +29 -0
- package/build/languageProcessing/helpers/sanitize/stripSpaces.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/stripWordBoundaries.js +65 -0
- package/build/languageProcessing/helpers/sanitize/stripWordBoundaries.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/unifyWhitespace.js +64 -0
- package/build/languageProcessing/helpers/sanitize/unifyWhitespace.js.map +1 -0
- package/build/languageProcessing/helpers/sentence/SentenceTokenizer.js +565 -0
- package/build/languageProcessing/helpers/sentence/SentenceTokenizer.js.map +1 -0
- package/build/languageProcessing/helpers/sentence/countSentences.js +27 -0
- package/build/languageProcessing/helpers/sentence/countSentences.js.map +1 -0
- package/build/languageProcessing/helpers/sentence/getSentences.js +71 -0
- package/build/languageProcessing/helpers/sentence/getSentences.js.map +1 -0
- package/build/languageProcessing/helpers/sentence/getSentencesFromTree.js +60 -0
- package/build/languageProcessing/helpers/sentence/getSentencesFromTree.js.map +1 -0
- package/build/languageProcessing/helpers/sentence/memoizedSentenceTokenizer.js +37 -0
- package/build/languageProcessing/helpers/sentence/memoizedSentenceTokenizer.js.map +1 -0
- package/build/languageProcessing/helpers/sentence/sentencesLength.js +37 -0
- package/build/languageProcessing/helpers/sentence/sentencesLength.js.map +1 -0
- package/build/languageProcessing/helpers/syllables/DeviationFragment.js +108 -0
- package/build/languageProcessing/helpers/syllables/DeviationFragment.js.map +1 -0
- package/build/languageProcessing/helpers/syllables/countSyllables.js +173 -0
- package/build/languageProcessing/helpers/syllables/countSyllables.js.map +1 -0
- package/build/languageProcessing/helpers/syllables/syllableCountIterator.js +63 -0
- package/build/languageProcessing/helpers/syllables/syllableCountIterator.js.map +1 -0
- package/build/languageProcessing/helpers/syllables/syllableCountStep.js +75 -0
- package/build/languageProcessing/helpers/syllables/syllableCountStep.js.map +1 -0
- package/build/languageProcessing/helpers/transform/transformWordsWithHyphens.js +24 -0
- package/build/languageProcessing/helpers/transform/transformWordsWithHyphens.js.map +1 -0
- package/build/languageProcessing/helpers/transliterate/replaceDiacritics.js +25 -0
- package/build/languageProcessing/helpers/transliterate/replaceDiacritics.js.map +1 -0
- package/build/languageProcessing/helpers/transliterate/specialCharacterMappings.js +194 -0
- package/build/languageProcessing/helpers/transliterate/specialCharacterMappings.js.map +1 -0
- package/build/languageProcessing/helpers/transliterate/transliterate.js +24 -0
- package/build/languageProcessing/helpers/transliterate/transliterate.js.map +1 -0
- package/build/languageProcessing/helpers/transliterate/transliterateWPstyle.js +25 -0
- package/build/languageProcessing/helpers/transliterate/transliterateWPstyle.js.map +1 -0
- package/build/languageProcessing/helpers/url/parseSlug.js +17 -0
- package/build/languageProcessing/helpers/url/parseSlug.js.map +1 -0
- package/build/languageProcessing/helpers/url/url.js +174 -0
- package/build/languageProcessing/helpers/url/url.js.map +1 -0
- package/build/languageProcessing/helpers/word/addWordboundary.js +41 -0
- package/build/languageProcessing/helpers/word/addWordboundary.js.map +1 -0
- package/build/languageProcessing/helpers/word/areWordsInSentence.js +23 -0
- package/build/languageProcessing/helpers/word/areWordsInSentence.js.map +1 -0
- package/build/languageProcessing/helpers/word/countMetaDescriptionLength.js +24 -0
- package/build/languageProcessing/helpers/word/countMetaDescriptionLength.js.map +1 -0
- package/build/languageProcessing/helpers/word/countWords.js +21 -0
- package/build/languageProcessing/helpers/word/countWords.js.map +1 -0
- package/build/languageProcessing/helpers/word/createPunctuationTokens.js +46 -0
- package/build/languageProcessing/helpers/word/createPunctuationTokens.js.map +1 -0
- package/build/languageProcessing/helpers/word/filterWordsFromArray.js +21 -0
- package/build/languageProcessing/helpers/word/filterWordsFromArray.js.map +1 -0
- package/build/languageProcessing/helpers/word/followsIndex.js +29 -0
- package/build/languageProcessing/helpers/word/followsIndex.js.map +1 -0
- package/build/languageProcessing/helpers/word/getAllWordsFromTree.js +30 -0
- package/build/languageProcessing/helpers/word/getAllWordsFromTree.js.map +1 -0
- package/build/languageProcessing/helpers/word/getWords.js +47 -0
- package/build/languageProcessing/helpers/word/getWords.js.map +1 -0
- package/build/languageProcessing/helpers/word/includesIndex.js +34 -0
- package/build/languageProcessing/helpers/word/includesIndex.js.map +1 -0
- package/build/languageProcessing/helpers/word/indices.js +141 -0
- package/build/languageProcessing/helpers/word/indices.js.map +1 -0
- package/build/languageProcessing/helpers/word/markWordsInSentences.js +189 -0
- package/build/languageProcessing/helpers/word/markWordsInSentences.js.map +1 -0
- package/build/languageProcessing/helpers/word/matchWordInSentence.js +63 -0
- package/build/languageProcessing/helpers/word/matchWordInSentence.js.map +1 -0
- package/build/languageProcessing/helpers/word/splitIntoTokens.js +52 -0
- package/build/languageProcessing/helpers/word/splitIntoTokens.js.map +1 -0
- package/build/languageProcessing/index.js +283 -0
- package/build/languageProcessing/index.js.map +1 -0
- package/build/languageProcessing/languages/_default/Researcher.js +43 -0
- package/build/languageProcessing/languages/_default/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/_default/helpers/getStemmer.js +20 -0
- package/build/languageProcessing/languages/_default/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/ar/Researcher.js +54 -0
- package/build/languageProcessing/languages/ar/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/ar/config/firstWordExceptions.js +18 -0
- package/build/languageProcessing/languages/ar/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/ar/config/functionWords.js +80 -0
- package/build/languageProcessing/languages/ar/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/ar/config/internal/passiveVerbsWithLongVowel.js +13 -0
- package/build/languageProcessing/languages/ar/config/internal/passiveVerbsWithLongVowel.js.map +1 -0
- package/build/languageProcessing/languages/ar/config/prefixedFunctionWords.js +11 -0
- package/build/languageProcessing/languages/ar/config/prefixedFunctionWords.js.map +1 -0
- package/build/languageProcessing/languages/ar/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/ar/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ar/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/ar/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ar/helpers/createBasicWordForms.js +38 -0
- package/build/languageProcessing/languages/ar/helpers/createBasicWordForms.js.map +1 -0
- package/build/languageProcessing/languages/ar/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/ar/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/ar/helpers/internal/stem.js +635 -0
- package/build/languageProcessing/languages/ar/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/ar/helpers/isPassiveSentence.js +41 -0
- package/build/languageProcessing/languages/ar/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/ca/Researcher.js +52 -0
- package/build/languageProcessing/languages/ca/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/ca/config/sentenceLength.js +10 -0
- package/build/languageProcessing/languages/ca/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/ca/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/ca/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ca/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/ca/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ca/helpers/getStemmer.js +20 -0
- package/build/languageProcessing/languages/ca/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/cs/Researcher.js +52 -0
- package/build/languageProcessing/languages/cs/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/firstWordExceptions.js +20 -0
- package/build/languageProcessing/languages/cs/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/functionWords.js +50 -0
- package/build/languageProcessing/languages/cs/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceAuxiliaries.js +10 -0
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceEndings.js +14 -0
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceEndings.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/stopWords.js +12 -0
- package/build/languageProcessing/languages/cs/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/cs/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/cs/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/cs/helpers/getClauses.js +35 -0
- package/build/languageProcessing/languages/cs/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/cs/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/cs/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/cs/helpers/internal/getParticiples.js +24 -0
- package/build/languageProcessing/languages/cs/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/cs/helpers/internal/stem.js +341 -0
- package/build/languageProcessing/languages/cs/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/cs/values/Clause.js +45 -0
- package/build/languageProcessing/languages/cs/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/de/Researcher.js +61 -0
- package/build/languageProcessing/languages/de/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/de/config/firstWordExceptions.js +20 -0
- package/build/languageProcessing/languages/de/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/de/config/functionWords.js +103 -0
- package/build/languageProcessing/languages/de/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/de/config/internal/exceptionsParticiplesActive.js +13 -0
- package/build/languageProcessing/languages/de/config/internal/exceptionsParticiplesActive.js.map +1 -0
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceAuxiliaries.js +29 -0
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceIrregulars.js +15 -0
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceIrregulars.js.map +1 -0
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceRegex.js +78 -0
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceRegex.js.map +1 -0
- package/build/languageProcessing/languages/de/config/keyphraseLength.js +17 -0
- package/build/languageProcessing/languages/de/config/keyphraseLength.js.map +1 -0
- package/build/languageProcessing/languages/de/config/stopWords.js +12 -0
- package/build/languageProcessing/languages/de/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/de/config/syllables.json +460 -0
- package/build/languageProcessing/languages/de/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/de/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/de/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/de/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/de/config/wordComplexity.js +11 -0
- package/build/languageProcessing/languages/de/config/wordComplexity.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/calculateFleschReadingScore.js +23 -0
- package/build/languageProcessing/languages/de/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsComplex.js +47 -0
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsComplex.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsFunction.js +20 -0
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsFunction.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/getClauses.js +34 -0
- package/build/languageProcessing/languages/de/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/de/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/internal/SentenceTokenizer.js +38 -0
- package/build/languageProcessing/languages/de/helpers/internal/SentenceTokenizer.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/internal/detectAndStemRegularParticiple.js +118 -0
- package/build/languageProcessing/languages/de/helpers/internal/detectAndStemRegularParticiple.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/internal/determineStem.js +113 -0
- package/build/languageProcessing/languages/de/helpers/internal/determineStem.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/internal/getParticiples.js +39 -0
- package/build/languageProcessing/languages/de/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/internal/stem.js +222 -0
- package/build/languageProcessing/languages/de/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/memoizedSentenceTokenizer.js +37 -0
- package/build/languageProcessing/languages/de/helpers/memoizedSentenceTokenizer.js.map +1 -0
- package/build/languageProcessing/languages/de/values/Clause.js +91 -0
- package/build/languageProcessing/languages/de/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/el/Researcher.js +55 -0
- package/build/languageProcessing/languages/el/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/el/config/firstWordExceptions.js +33 -0
- package/build/languageProcessing/languages/el/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/el/config/functionWords.js +47 -0
- package/build/languageProcessing/languages/el/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/el/config/internal/auxiliaries.js +12 -0
- package/build/languageProcessing/languages/el/config/internal/auxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/el/config/internal/morphologicalPassiveSuffixes.js +8 -0
- package/build/languageProcessing/languages/el/config/internal/morphologicalPassiveSuffixes.js.map +1 -0
- package/build/languageProcessing/languages/el/config/internal/nonPassiveVerbStems.js +22 -0
- package/build/languageProcessing/languages/el/config/internal/nonPassiveVerbStems.js.map +1 -0
- package/build/languageProcessing/languages/el/config/stopWords.js +13 -0
- package/build/languageProcessing/languages/el/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/el/config/transitionWords.js +18 -0
- package/build/languageProcessing/languages/el/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/el/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/el/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/el/helpers/getClauses.js +34 -0
- package/build/languageProcessing/languages/el/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/el/helpers/getStemmer.js +29 -0
- package/build/languageProcessing/languages/el/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/el/helpers/internal/getParticiples.js +24 -0
- package/build/languageProcessing/languages/el/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/el/helpers/internal/stem.js +347 -0
- package/build/languageProcessing/languages/el/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/el/helpers/isPassiveSentence.js +43 -0
- package/build/languageProcessing/languages/el/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/el/values/Clause.js +46 -0
- package/build/languageProcessing/languages/el/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/en/Researcher.js +55 -0
- package/build/languageProcessing/languages/en/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/en/config/abbreviations.js +16 -0
- package/build/languageProcessing/languages/en/config/abbreviations.js.map +1 -0
- package/build/languageProcessing/languages/en/config/firstWordExceptions.js +20 -0
- package/build/languageProcessing/languages/en/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/en/config/functionWords.js +110 -0
- package/build/languageProcessing/languages/en/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceAuxiliaries.js +15 -0
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceIrregulars.js +15 -0
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceIrregulars.js.map +1 -0
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceNonVerbEndingEd.js +13 -0
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceNonVerbEndingEd.js.map +1 -0
- package/build/languageProcessing/languages/en/config/regularParticiplesRegex.js +12 -0
- package/build/languageProcessing/languages/en/config/regularParticiplesRegex.js.map +1 -0
- package/build/languageProcessing/languages/en/config/stopWords.js +12 -0
- package/build/languageProcessing/languages/en/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/en/config/syllables.json +86 -0
- package/build/languageProcessing/languages/en/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/en/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/en/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/en/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/en/config/wordComplexity.js +12 -0
- package/build/languageProcessing/languages/en/config/wordComplexity.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js +23 -0
- package/build/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js +49 -0
- package/build/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/getClauses.js +58 -0
- package/build/languageProcessing/languages/en/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/en/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/internal/determineStem.js +161 -0
- package/build/languageProcessing/languages/en/helpers/internal/determineStem.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js +149 -0
- package/build/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/internal/getParticiples.js +33 -0
- package/build/languageProcessing/languages/en/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/internal/getVerbStem.js +228 -0
- package/build/languageProcessing/languages/en/helpers/internal/getVerbStem.js.map +1 -0
- package/build/languageProcessing/languages/en/values/Clause.js +68 -0
- package/build/languageProcessing/languages/en/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/es/Researcher.js +57 -0
- package/build/languageProcessing/languages/es/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/es/config/firstWordExceptions.js +20 -0
- package/build/languageProcessing/languages/es/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/es/config/functionWords.js +111 -0
- package/build/languageProcessing/languages/es/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceAuxiliaries.js +12 -0
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceParticiples.js +13 -0
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceParticiples.js.map +1 -0
- package/build/languageProcessing/languages/es/config/sentenceLength.js +10 -0
- package/build/languageProcessing/languages/es/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/es/config/stopWords.js +12 -0
- package/build/languageProcessing/languages/es/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/es/config/syllables.json +176 -0
- package/build/languageProcessing/languages/es/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/es/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/es/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/es/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/es/config/wordComplexity.js +11 -0
- package/build/languageProcessing/languages/es/config/wordComplexity.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/calculateFleschReadingScore.js +23 -0
- package/build/languageProcessing/languages/es/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/checkIfWordIsComplex.js +59 -0
- package/build/languageProcessing/languages/es/helpers/checkIfWordIsComplex.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/getClauses.js +38 -0
- package/build/languageProcessing/languages/es/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/es/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/internal/checkVerbStemModifications.js +40 -0
- package/build/languageProcessing/languages/es/helpers/internal/checkVerbStemModifications.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/internal/getParticiples.js +43 -0
- package/build/languageProcessing/languages/es/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/internal/stem.js +574 -0
- package/build/languageProcessing/languages/es/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/es/values/Clause.js +49 -0
- package/build/languageProcessing/languages/es/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/fa/Researcher.js +56 -0
- package/build/languageProcessing/languages/fa/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/fa/config/firstWordExceptions.js +18 -0
- package/build/languageProcessing/languages/fa/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/fa/config/functionWords.js +41 -0
- package/build/languageProcessing/languages/fa/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/fa/config/internal/participles.js +14 -0
- package/build/languageProcessing/languages/fa/config/internal/participles.js.map +1 -0
- package/build/languageProcessing/languages/fa/config/sentenceLength.js +10 -0
- package/build/languageProcessing/languages/fa/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/fa/config/transitionWords.js +18 -0
- package/build/languageProcessing/languages/fa/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/fa/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/fa/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/fa/helpers/createBasicWordForms.js +99 -0
- package/build/languageProcessing/languages/fa/helpers/createBasicWordForms.js.map +1 -0
- package/build/languageProcessing/languages/fa/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/fa/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/fa/helpers/isPassiveSentence.js +22 -0
- package/build/languageProcessing/languages/fa/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/fr/Researcher.js +55 -0
- package/build/languageProcessing/languages/fr/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/firstWordExceptions.js +20 -0
- package/build/languageProcessing/languages/fr/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/functionWords.js +144 -0
- package/build/languageProcessing/languages/fr/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/internal/exceptionsParticiplesActive.js +22 -0
- package/build/languageProcessing/languages/fr/config/internal/exceptionsParticiplesActive.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceAuxiliaries.js +12 -0
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceIrregulars.js +27 -0
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceIrregulars.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/stopWords.js +12 -0
- package/build/languageProcessing/languages/fr/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/syllables.json +1426 -0
- package/build/languageProcessing/languages/fr/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/fr/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/fr/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/wordComplexity.js +11 -0
- package/build/languageProcessing/languages/fr/config/wordComplexity.js.map +1 -0
- package/build/languageProcessing/languages/fr/helpers/calculateFleschReadingScore.js +23 -0
- package/build/languageProcessing/languages/fr/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/fr/helpers/checkIfWordIsComplex.js +72 -0
- package/build/languageProcessing/languages/fr/helpers/checkIfWordIsComplex.js.map +1 -0
- package/build/languageProcessing/languages/fr/helpers/getClauses.js +42 -0
- package/build/languageProcessing/languages/fr/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/fr/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/fr/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/fr/helpers/internal/getParticiples.js +71 -0
- package/build/languageProcessing/languages/fr/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/fr/helpers/internal/stem.js +544 -0
- package/build/languageProcessing/languages/fr/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/fr/values/Clause.js +90 -0
- package/build/languageProcessing/languages/fr/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/he/Researcher.js +59 -0
- package/build/languageProcessing/languages/he/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/he/config/firstWordExceptions.js +18 -0
- package/build/languageProcessing/languages/he/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/he/config/functionWords.js +504 -0
- package/build/languageProcessing/languages/he/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/he/config/internal/regularRootsHufal.js +13 -0
- package/build/languageProcessing/languages/he/config/internal/regularRootsHufal.js.map +1 -0
- package/build/languageProcessing/languages/he/config/internal/regularRootsNifal.js +13 -0
- package/build/languageProcessing/languages/he/config/internal/regularRootsNifal.js.map +1 -0
- package/build/languageProcessing/languages/he/config/internal/regularRootsPual.js +13 -0
- package/build/languageProcessing/languages/he/config/internal/regularRootsPual.js.map +1 -0
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsHufal.js +15 -0
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsHufal.js.map +1 -0
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsNifal.js +15 -0
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsNifal.js.map +1 -0
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsPual.js +15 -0
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsPual.js.map +1 -0
- package/build/languageProcessing/languages/he/config/prefixedFunctionWords.js +9 -0
- package/build/languageProcessing/languages/he/config/prefixedFunctionWords.js.map +1 -0
- package/build/languageProcessing/languages/he/config/sentenceLength.js +10 -0
- package/build/languageProcessing/languages/he/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/he/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/he/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/he/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/he/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/he/helpers/createBasicWordForms.js +40 -0
- package/build/languageProcessing/languages/he/helpers/createBasicWordForms.js.map +1 -0
- package/build/languageProcessing/languages/he/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/he/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/he/helpers/internal/stem.js +59 -0
- package/build/languageProcessing/languages/he/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/he/helpers/isPassiveSentence.js +122 -0
- package/build/languageProcessing/languages/he/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/he/helpers/stem.js +59 -0
- package/build/languageProcessing/languages/he/helpers/stem.js.map +1 -0
- package/build/languageProcessing/languages/hu/Researcher.js +57 -0
- package/build/languageProcessing/languages/hu/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/firstWordExceptions.js +32 -0
- package/build/languageProcessing/languages/hu/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/functionWords.js +52 -0
- package/build/languageProcessing/languages/hu/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/internal/auxiliaries.js +20 -0
- package/build/languageProcessing/languages/hu/config/internal/auxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/internal/morphologicalPassiveAffixes.js +12 -0
- package/build/languageProcessing/languages/hu/config/internal/morphologicalPassiveAffixes.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/internal/nonPassivesInVaAndVe.js +25 -0
- package/build/languageProcessing/languages/hu/config/internal/nonPassivesInVaAndVe.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/internal/odikVerbs.js +25 -0
- package/build/languageProcessing/languages/hu/config/internal/odikVerbs.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/internal/participles.js +25 -0
- package/build/languageProcessing/languages/hu/config/internal/participles.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/stopWords.js +29 -0
- package/build/languageProcessing/languages/hu/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/hu/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/hu/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/hu/helpers/getClauses.js +34 -0
- package/build/languageProcessing/languages/hu/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/hu/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/hu/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/hu/helpers/internal/getParticiples.js +25 -0
- package/build/languageProcessing/languages/hu/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/hu/helpers/internal/stem.js +390 -0
- package/build/languageProcessing/languages/hu/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/hu/helpers/isPassiveSentence.js +53 -0
- package/build/languageProcessing/languages/hu/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/hu/values/Clause.js +47 -0
- package/build/languageProcessing/languages/hu/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/id/Researcher.js +55 -0
- package/build/languageProcessing/languages/id/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/id/config/firstWordExceptions.js +18 -0
- package/build/languageProcessing/languages/id/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/id/config/functionWords.js +109 -0
- package/build/languageProcessing/languages/id/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/id/config/internal/nonPassiveVerbsStartingDi.js +13 -0
- package/build/languageProcessing/languages/id/config/internal/nonPassiveVerbsStartingDi.js.map +1 -0
- package/build/languageProcessing/languages/id/config/transitionWords.js +30 -0
- package/build/languageProcessing/languages/id/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/id/config/twoPartTransitionWords.js +14 -0
- package/build/languageProcessing/languages/id/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/id/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/id/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/id/helpers/internal/stem.js +394 -0
- package/build/languageProcessing/languages/id/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/id/helpers/internal/stemHelpers.js +86 -0
- package/build/languageProcessing/languages/id/helpers/internal/stemHelpers.js.map +1 -0
- package/build/languageProcessing/languages/id/helpers/isPassiveSentence.js +47 -0
- package/build/languageProcessing/languages/id/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/id/helpers/splitIntoTokensCustom.js +53 -0
- package/build/languageProcessing/languages/id/helpers/splitIntoTokensCustom.js.map +1 -0
- package/build/languageProcessing/languages/it/Researcher.js +57 -0
- package/build/languageProcessing/languages/it/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/it/config/firstWordExceptions.js +20 -0
- package/build/languageProcessing/languages/it/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/it/config/functionWords.js +141 -0
- package/build/languageProcessing/languages/it/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceAuxiliaries.js +12 -0
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceParticiples.js +13 -0
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceParticiples.js.map +1 -0
- package/build/languageProcessing/languages/it/config/sentenceLength.js +10 -0
- package/build/languageProcessing/languages/it/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/it/config/stopWords.js +12 -0
- package/build/languageProcessing/languages/it/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/it/config/syllables.json +573 -0
- package/build/languageProcessing/languages/it/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/it/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/it/config/twoPartTransitionWords.js +12 -0
- package/build/languageProcessing/languages/it/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/it/helpers/calculateFleschReadingScore.js +23 -0
- package/build/languageProcessing/languages/it/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/it/helpers/getClauses.js +40 -0
- package/build/languageProcessing/languages/it/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/it/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/it/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/it/helpers/internal/getParticiples.js +42 -0
- package/build/languageProcessing/languages/it/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/it/helpers/internal/stem.js +408 -0
- package/build/languageProcessing/languages/it/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/it/values/Clause.js +51 -0
- package/build/languageProcessing/languages/it/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/ja/Researcher.js +94 -0
- package/build/languageProcessing/languages/ja/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/assessmentApplicabilityCharacterCount.js +11 -0
- package/build/languageProcessing/languages/ja/config/assessmentApplicabilityCharacterCount.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/firstWordExceptions.js +14 -0
- package/build/languageProcessing/languages/ja/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/functionWords.js +8 -0
- package/build/languageProcessing/languages/ja/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/keyphraseLength.js +23 -0
- package/build/languageProcessing/languages/ja/config/keyphraseLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/metaDescriptionLength.js +11 -0
- package/build/languageProcessing/languages/ja/config/metaDescriptionLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/paragraphLength.js +17 -0
- package/build/languageProcessing/languages/ja/config/paragraphLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/sentenceLength.js +11 -0
- package/build/languageProcessing/languages/ja/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/subheadingsTooLong.js +25 -0
- package/build/languageProcessing/languages/ja/config/subheadingsTooLong.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/textLength.js +54 -0
- package/build/languageProcessing/languages/ja/config/textLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/topicLength.js +12 -0
- package/build/languageProcessing/languages/ja/config/topicLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/transitionWords.js +9 -0
- package/build/languageProcessing/languages/ja/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js +102 -0
- package/build/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js.map +1 -0
- package/build/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js +25 -0
- package/build/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/customResearches/getWordForms.js +57 -0
- package/build/languageProcessing/languages/ja/customResearches/getWordForms.js.map +1 -0
- package/build/languageProcessing/languages/ja/customResearches/textLength.js +31 -0
- package/build/languageProcessing/languages/ja/customResearches/textLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/countCharacters.js +27 -0
- package/build/languageProcessing/languages/ja/helpers/countCharacters.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/customGetStemmer.js +28 -0
- package/build/languageProcessing/languages/ja/helpers/customGetStemmer.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/getContentWords.js +27 -0
- package/build/languageProcessing/languages/ja/helpers/getContentWords.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/getWords.js +38 -0
- package/build/languageProcessing/languages/ja/helpers/getWords.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js +99 -0
- package/build/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/internal/createWordForms.js +70 -0
- package/build/languageProcessing/languages/ja/helpers/internal/createWordForms.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/internal/determineStem.js +23 -0
- package/build/languageProcessing/languages/ja/helpers/internal/determineStem.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/matchTextWithWord.js +58 -0
- package/build/languageProcessing/languages/ja/helpers/matchTextWithWord.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/matchTransitionWords.js +29 -0
- package/build/languageProcessing/languages/ja/helpers/matchTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/memoizedSentenceTokenizer.js +37 -0
- package/build/languageProcessing/languages/ja/helpers/memoizedSentenceTokenizer.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/splitIntoTokensCustom.js +27 -0
- package/build/languageProcessing/languages/ja/helpers/splitIntoTokensCustom.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/wordsCharacterCount.js +19 -0
- package/build/languageProcessing/languages/ja/helpers/wordsCharacterCount.js.map +1 -0
- package/build/languageProcessing/languages/nb/Researcher.js +54 -0
- package/build/languageProcessing/languages/nb/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/firstWordExceptions.js +18 -0
- package/build/languageProcessing/languages/nb/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/functionWords.js +54 -0
- package/build/languageProcessing/languages/nb/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/internal/participles.js +12 -0
- package/build/languageProcessing/languages/nb/config/internal/participles.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/internal/passiveVoiceAuxiliaries.js +12 -0
- package/build/languageProcessing/languages/nb/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/stopWords.js +13 -0
- package/build/languageProcessing/languages/nb/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/nb/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/nb/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/nb/helpers/getClauses.js +37 -0
- package/build/languageProcessing/languages/nb/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/nb/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/nb/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/nb/helpers/internal/getParticiples.js +31 -0
- package/build/languageProcessing/languages/nb/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/nb/helpers/internal/stem.js +135 -0
- package/build/languageProcessing/languages/nb/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/nb/values/Clause.js +49 -0
- package/build/languageProcessing/languages/nb/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/nl/Researcher.js +57 -0
- package/build/languageProcessing/languages/nl/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/firstWordExceptions.js +20 -0
- package/build/languageProcessing/languages/nl/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/functionWords.js +102 -0
- package/build/languageProcessing/languages/nl/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/internal/nonParticiples.js +12 -0
- package/build/languageProcessing/languages/nl/config/internal/nonParticiples.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceAuxiliaries.js +12 -0
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceIrregulars.js +13 -0
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceIrregulars.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/keyphraseLength.js +17 -0
- package/build/languageProcessing/languages/nl/config/keyphraseLength.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/stopWords.js +12 -0
- package/build/languageProcessing/languages/nl/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/syllables.json +343 -0
- package/build/languageProcessing/languages/nl/config/transitionWords.js +11 -0
- package/build/languageProcessing/languages/nl/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/twoPartTransitionWords.js +12 -0
- package/build/languageProcessing/languages/nl/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/calculateFleschReadingScore.js +23 -0
- package/build/languageProcessing/languages/nl/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/getClauses.js +34 -0
- package/build/languageProcessing/languages/nl/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/nl/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/checkExceptionsWithFullForms.js +124 -0
- package/build/languageProcessing/languages/nl/helpers/internal/checkExceptionsWithFullForms.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemRegularParticiple.js +260 -0
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemRegularParticiple.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemSuffixes.js +157 -0
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemSuffixes.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/determineStem.js +120 -0
- package/build/languageProcessing/languages/nl/helpers/internal/determineStem.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/getParticiples.js +27 -0
- package/build/languageProcessing/languages/nl/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/getStemWordsWithTAndDEnding.js +152 -0
- package/build/languageProcessing/languages/nl/helpers/internal/getStemWordsWithTAndDEnding.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/stem.js +131 -0
- package/build/languageProcessing/languages/nl/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/stemModificationHelpers.js +94 -0
- package/build/languageProcessing/languages/nl/helpers/internal/stemModificationHelpers.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/stemTOrDFromEndOfWord.js +59 -0
- package/build/languageProcessing/languages/nl/helpers/internal/stemTOrDFromEndOfWord.js.map +1 -0
- package/build/languageProcessing/languages/nl/values/Clause.js +63 -0
- package/build/languageProcessing/languages/nl/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/pl/Researcher.js +56 -0
- package/build/languageProcessing/languages/pl/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/firstWordExceptions.js +16 -0
- package/build/languageProcessing/languages/pl/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/functionWords.js +78 -0
- package/build/languageProcessing/languages/pl/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/internal/auxiliaries.js +12 -0
- package/build/languageProcessing/languages/pl/config/internal/auxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/internal/participles.js +13 -0
- package/build/languageProcessing/languages/pl/config/internal/participles.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/sentenceLength.js +17 -0
- package/build/languageProcessing/languages/pl/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/stopWords.js +12 -0
- package/build/languageProcessing/languages/pl/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/pl/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/pl/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/pl/helpers/getClauses.js +34 -0
- package/build/languageProcessing/languages/pl/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/pl/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/pl/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/pl/helpers/internal/getParticiples.js +25 -0
- package/build/languageProcessing/languages/pl/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/pl/helpers/internal/stem.js +158 -0
- package/build/languageProcessing/languages/pl/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/pl/values/Clause.js +51 -0
- package/build/languageProcessing/languages/pl/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/pt/Researcher.js +57 -0
- package/build/languageProcessing/languages/pt/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/firstWordExceptions.js +20 -0
- package/build/languageProcessing/languages/pt/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/functionWords.js +98 -0
- package/build/languageProcessing/languages/pt/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceAuxiliaries.js +12 -0
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceParticiples.js +13 -0
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceParticiples.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/sentenceLength.js +10 -0
- package/build/languageProcessing/languages/pt/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/stopWords.js +12 -0
- package/build/languageProcessing/languages/pt/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/syllables.json +38 -0
- package/build/languageProcessing/languages/pt/config/transitionWords.js +11 -0
- package/build/languageProcessing/languages/pt/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/twoPartTransitionWords.js +12 -0
- package/build/languageProcessing/languages/pt/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/pt/helpers/calculateFleschReadingScore.js +23 -0
- package/build/languageProcessing/languages/pt/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/pt/helpers/getClauses.js +38 -0
- package/build/languageProcessing/languages/pt/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/pt/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/pt/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/pt/helpers/internal/getParticiples.js +43 -0
- package/build/languageProcessing/languages/pt/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/pt/helpers/internal/stem.js +283 -0
- package/build/languageProcessing/languages/pt/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/pt/values/Clause.js +50 -0
- package/build/languageProcessing/languages/pt/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/ru/Researcher.js +57 -0
- package/build/languageProcessing/languages/ru/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/firstWordExceptions.js +16 -0
- package/build/languageProcessing/languages/ru/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/fleschReadingEaseScores.js +27 -0
- package/build/languageProcessing/languages/ru/config/fleschReadingEaseScores.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/functionWords.js +91 -0
- package/build/languageProcessing/languages/ru/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/internal/participlesShortenedList.js +27 -0
- package/build/languageProcessing/languages/ru/config/internal/participlesShortenedList.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/internal/passiveVoiceParticiples.js +24 -0
- package/build/languageProcessing/languages/ru/config/internal/passiveVoiceParticiples.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/sentenceLength.js +10 -0
- package/build/languageProcessing/languages/ru/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/syllables.json +19 -0
- package/build/languageProcessing/languages/ru/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/ru/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/ru/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ru/helpers/calculateFleschReadingScore.js +23 -0
- package/build/languageProcessing/languages/ru/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/ru/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/ru/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/ru/helpers/internal/stem.js +271 -0
- package/build/languageProcessing/languages/ru/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/ru/helpers/isPassiveSentence.js +22 -0
- package/build/languageProcessing/languages/ru/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/sk/Researcher.js +55 -0
- package/build/languageProcessing/languages/sk/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/firstWordExceptions.js +18 -0
- package/build/languageProcessing/languages/sk/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/functionWords.js +18 -0
- package/build/languageProcessing/languages/sk/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/internal/nonPassives.js +14 -0
- package/build/languageProcessing/languages/sk/config/internal/nonPassives.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/internal/passiveVoiceAuxiliaries.js +10 -0
- package/build/languageProcessing/languages/sk/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/stopWords.js +13 -0
- package/build/languageProcessing/languages/sk/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/sk/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/sk/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/sk/helpers/getClauses.js +35 -0
- package/build/languageProcessing/languages/sk/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/sk/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/sk/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/sk/helpers/internal/getParticiples.js +24 -0
- package/build/languageProcessing/languages/sk/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/sk/helpers/internal/stem.js +322 -0
- package/build/languageProcessing/languages/sk/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/sk/values/Clause.js +47 -0
- package/build/languageProcessing/languages/sk/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/sv/Researcher.js +54 -0
- package/build/languageProcessing/languages/sv/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/sv/config/firstWordExceptions.js +21 -0
- package/build/languageProcessing/languages/sv/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/sv/config/functionWords.js +74 -0
- package/build/languageProcessing/languages/sv/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/sv/config/internal/passiveVerbs.js +12 -0
- package/build/languageProcessing/languages/sv/config/internal/passiveVerbs.js.map +1 -0
- package/build/languageProcessing/languages/sv/config/keyphraseLength.js +17 -0
- package/build/languageProcessing/languages/sv/config/keyphraseLength.js.map +1 -0
- package/build/languageProcessing/languages/sv/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/sv/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/sv/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/sv/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/sv/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/sv/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/sv/helpers/internal/stem.js +159 -0
- package/build/languageProcessing/languages/sv/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/sv/helpers/isPassiveSentence.js +22 -0
- package/build/languageProcessing/languages/sv/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/tr/Researcher.js +52 -0
- package/build/languageProcessing/languages/tr/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/firstWordExceptions.js +18 -0
- package/build/languageProcessing/languages/tr/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/functionWords.js +51 -0
- package/build/languageProcessing/languages/tr/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/internal/nonPassiveExceptions.js +13 -0
- package/build/languageProcessing/languages/tr/config/internal/nonPassiveExceptions.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/internal/passiveEndings.js +13 -0
- package/build/languageProcessing/languages/tr/config/internal/passiveEndings.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/sentenceLength.js +14 -0
- package/build/languageProcessing/languages/tr/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/transitionWords.js +13 -0
- package/build/languageProcessing/languages/tr/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/twoPartTransitionWords.js +13 -0
- package/build/languageProcessing/languages/tr/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/tr/helpers/getStemmer.js +28 -0
- package/build/languageProcessing/languages/tr/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/tr/helpers/internal/stem.js +25 -0
- package/build/languageProcessing/languages/tr/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/tr/helpers/isPassiveSentence.js +46 -0
- package/build/languageProcessing/languages/tr/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/researches/altTagCount.js +72 -0
- package/build/languageProcessing/researches/altTagCount.js.map +1 -0
- package/build/languageProcessing/researches/countSentencesFromText.js +26 -0
- package/build/languageProcessing/researches/countSentencesFromText.js.map +1 -0
- package/build/languageProcessing/researches/findKeyphraseInSEOTitle.js +257 -0
- package/build/languageProcessing/researches/findKeyphraseInSEOTitle.js.map +1 -0
- package/build/languageProcessing/researches/findKeywordInFirstParagraph.js +80 -0
- package/build/languageProcessing/researches/findKeywordInFirstParagraph.js.map +1 -0
- package/build/languageProcessing/researches/findTransitionWords.js +119 -0
- package/build/languageProcessing/researches/findTransitionWords.js.map +1 -0
- package/build/languageProcessing/researches/functionWordsInKeyphrase.js +48 -0
- package/build/languageProcessing/researches/functionWordsInKeyphrase.js.map +1 -0
- package/build/languageProcessing/researches/getAnchorsWithKeyphrase.js +222 -0
- package/build/languageProcessing/researches/getAnchorsWithKeyphrase.js.map +1 -0
- package/build/languageProcessing/researches/getFleschReadingScore.js +152 -0
- package/build/languageProcessing/researches/getFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/researches/getKeywordDensity.js +49 -0
- package/build/languageProcessing/researches/getKeywordDensity.js.map +1 -0
- package/build/languageProcessing/researches/getLinkStatistics.js +56 -0
- package/build/languageProcessing/researches/getLinkStatistics.js.map +1 -0
- package/build/languageProcessing/researches/getLinks.js +23 -0
- package/build/languageProcessing/researches/getLinks.js.map +1 -0
- package/build/languageProcessing/researches/getLongCenterAlignedTexts.js +42 -0
- package/build/languageProcessing/researches/getLongCenterAlignedTexts.js.map +1 -0
- package/build/languageProcessing/researches/getParagraphLength.js +49 -0
- package/build/languageProcessing/researches/getParagraphLength.js.map +1 -0
- package/build/languageProcessing/researches/getParagraphs.js +23 -0
- package/build/languageProcessing/researches/getParagraphs.js.map +1 -0
- package/build/languageProcessing/researches/getPassiveVoiceResult.js +127 -0
- package/build/languageProcessing/researches/getPassiveVoiceResult.js.map +1 -0
- package/build/languageProcessing/researches/getProminentWordsForInsights.js +45 -0
- package/build/languageProcessing/researches/getProminentWordsForInsights.js.map +1 -0
- package/build/languageProcessing/researches/getProminentWordsForInternalLinking.js +103 -0
- package/build/languageProcessing/researches/getProminentWordsForInternalLinking.js.map +1 -0
- package/build/languageProcessing/researches/getSentenceBeginnings.js +122 -0
- package/build/languageProcessing/researches/getSentenceBeginnings.js.map +1 -0
- package/build/languageProcessing/researches/getSubheadingTextLengths.js +60 -0
- package/build/languageProcessing/researches/getSubheadingTextLengths.js.map +1 -0
- package/build/languageProcessing/researches/getWordForms.js +183 -0
- package/build/languageProcessing/researches/getWordForms.js.map +1 -0
- package/build/languageProcessing/researches/h1s.js +17 -0
- package/build/languageProcessing/researches/h1s.js.map +1 -0
- package/build/languageProcessing/researches/imageCount.js +22 -0
- package/build/languageProcessing/researches/imageCount.js.map +1 -0
- package/build/languageProcessing/researches/index.js +28 -0
- package/build/languageProcessing/researches/index.js.map +1 -0
- package/build/languageProcessing/researches/keyphraseDistribution.js +233 -0
- package/build/languageProcessing/researches/keyphraseDistribution.js.map +1 -0
- package/build/languageProcessing/researches/keyphraseLength.js +23 -0
- package/build/languageProcessing/researches/keyphraseLength.js.map +1 -0
- package/build/languageProcessing/researches/keywordCount.js +135 -0
- package/build/languageProcessing/researches/keywordCount.js.map +1 -0
- package/build/languageProcessing/researches/keywordCountInUrl.js +58 -0
- package/build/languageProcessing/researches/keywordCountInUrl.js.map +1 -0
- package/build/languageProcessing/researches/matchKeywordInSubheadings.js +68 -0
- package/build/languageProcessing/researches/matchKeywordInSubheadings.js.map +1 -0
- package/build/languageProcessing/researches/metaDescriptionKeyword.js +78 -0
- package/build/languageProcessing/researches/metaDescriptionKeyword.js.map +1 -0
- package/build/languageProcessing/researches/metaDescriptionLength.js +19 -0
- package/build/languageProcessing/researches/metaDescriptionLength.js.map +1 -0
- package/build/languageProcessing/researches/pageTitleWidth.js +18 -0
- package/build/languageProcessing/researches/pageTitleWidth.js.map +1 -0
- package/build/languageProcessing/researches/readingTime.js +84 -0
- package/build/languageProcessing/researches/readingTime.js.map +1 -0
- package/build/languageProcessing/researches/sentences.js +26 -0
- package/build/languageProcessing/researches/sentences.js.map +1 -0
- package/build/languageProcessing/researches/videoCount.js +39 -0
- package/build/languageProcessing/researches/videoCount.js.map +1 -0
- package/build/languageProcessing/researches/wordComplexity.js +128 -0
- package/build/languageProcessing/researches/wordComplexity.js.map +1 -0
- package/build/languageProcessing/researches/wordCountInText.js +36 -0
- package/build/languageProcessing/researches/wordCountInText.js.map +1 -0
- package/build/languageProcessing/values/Clause.js +113 -0
- package/build/languageProcessing/values/Clause.js.map +1 -0
- package/build/languageProcessing/values/ProminentWord.js +101 -0
- package/build/languageProcessing/values/ProminentWord.js.map +1 -0
- package/build/languageProcessing/values/Sentence.js +116 -0
- package/build/languageProcessing/values/Sentence.js.map +1 -0
- package/build/languageProcessing/values/index.js +28 -0
- package/build/languageProcessing/values/index.js.map +1 -0
- package/build/markers/addMark.js +16 -0
- package/build/markers/addMark.js.map +1 -0
- package/build/markers/addMarkSingleWord.js +37 -0
- package/build/markers/addMarkSingleWord.js.map +1 -0
- package/build/markers/index.js +21 -0
- package/build/markers/index.js.map +1 -0
- package/build/markers/removeDuplicateMarks.js +31 -0
- package/build/markers/removeDuplicateMarks.js.map +1 -0
- package/build/markers/removeMarks.js +16 -0
- package/build/markers/removeMarks.js.map +1 -0
- package/build/parse/build/build.js +62 -0
- package/build/parse/build/build.js.map +1 -0
- package/build/parse/build/index.js +14 -0
- package/build/parse/build/index.js.map +1 -0
- package/build/parse/build/private/adapt.js +111 -0
- package/build/parse/build/private/adapt.js.map +1 -0
- package/build/parse/build/private/adaptAttributes.js +41 -0
- package/build/parse/build/private/adaptAttributes.js.map +1 -0
- package/build/parse/build/private/alwaysFilterElements.js +32 -0
- package/build/parse/build/private/alwaysFilterElements.js.map +1 -0
- package/build/parse/build/private/combineIntoImplicitParagraphs.js +129 -0
- package/build/parse/build/private/combineIntoImplicitParagraphs.js.map +1 -0
- package/build/parse/build/private/filterBeforeTokenizing.js +37 -0
- package/build/parse/build/private/filterBeforeTokenizing.js.map +1 -0
- package/build/parse/build/private/filterHelpers.js +52 -0
- package/build/parse/build/private/filterHelpers.js.map +1 -0
- package/build/parse/build/private/filterTree.js +47 -0
- package/build/parse/build/private/filterTree.js.map +1 -0
- package/build/parse/build/private/getTextElementPositions.js +184 -0
- package/build/parse/build/private/getTextElementPositions.js.map +1 -0
- package/build/parse/build/private/helpers/parseClassAttribute.js +15 -0
- package/build/parse/build/private/helpers/parseClassAttribute.js.map +1 -0
- package/build/parse/build/private/isPhrasingContent.js +30 -0
- package/build/parse/build/private/isPhrasingContent.js.map +1 -0
- package/build/parse/build/private/parseBlocks.js +151 -0
- package/build/parse/build/private/parseBlocks.js.map +1 -0
- package/build/parse/build/private/tokenize.js +78 -0
- package/build/parse/build/private/tokenize.js.map +1 -0
- package/build/parse/language/LanguageProcessor.js +77 -0
- package/build/parse/language/LanguageProcessor.js.map +1 -0
- package/build/parse/structure/Heading.js +32 -0
- package/build/parse/structure/Heading.js.map +1 -0
- package/build/parse/structure/Node.js +75 -0
- package/build/parse/structure/Node.js.map +1 -0
- package/build/parse/structure/Paragraph.js +53 -0
- package/build/parse/structure/Paragraph.js.map +1 -0
- package/build/parse/structure/Sentence.js +36 -0
- package/build/parse/structure/Sentence.js.map +1 -0
- package/build/parse/structure/SourceCodeLocation.js +46 -0
- package/build/parse/structure/SourceCodeLocation.js.map +1 -0
- package/build/parse/structure/Text.js +33 -0
- package/build/parse/structure/Text.js.map +1 -0
- package/build/parse/structure/Token.js +29 -0
- package/build/parse/structure/Token.js.map +1 -0
- package/build/parse/structure/index.js +35 -0
- package/build/parse/structure/index.js.map +1 -0
- package/build/parse/traverse/findAllInTree.js +62 -0
- package/build/parse/traverse/findAllInTree.js.map +1 -0
- package/build/parse/traverse/index.js +21 -0
- package/build/parse/traverse/index.js.map +1 -0
- package/build/parse/traverse/innerText.js +30 -0
- package/build/parse/traverse/innerText.js.map +1 -0
- package/build/parsedPaper/ParsedPaper.js +100 -0
- package/build/parsedPaper/ParsedPaper.js.map +1 -0
- package/build/parsedPaper/assess/TreeAssessor.js +181 -0
- package/build/parsedPaper/assess/TreeAssessor.js.map +1 -0
- package/build/parsedPaper/assess/assessmentListFactories.js +77 -0
- package/build/parsedPaper/assess/assessmentListFactories.js.map +1 -0
- package/build/parsedPaper/assess/assessments/Assessment.js +86 -0
- package/build/parsedPaper/assess/assessments/Assessment.js.map +1 -0
- package/build/parsedPaper/assess/assessments/index.js +14 -0
- package/build/parsedPaper/assess/assessments/index.js.map +1 -0
- package/build/parsedPaper/assess/assessorFactories.js +104 -0
- package/build/parsedPaper/assess/assessorFactories.js.map +1 -0
- package/build/parsedPaper/assess/cornerstone/assessmentListFactories.js +51 -0
- package/build/parsedPaper/assess/cornerstone/assessmentListFactories.js.map +1 -0
- package/build/parsedPaper/assess/cornerstone/index.js +11 -0
- package/build/parsedPaper/assess/cornerstone/index.js.map +1 -0
- package/build/parsedPaper/assess/index.js +31 -0
- package/build/parsedPaper/assess/index.js.map +1 -0
- package/build/parsedPaper/build/PaperParser.js +103 -0
- package/build/parsedPaper/build/PaperParser.js.map +1 -0
- package/build/parsedPaper/build/linguisticParsing/Sentence.js +95 -0
- package/build/parsedPaper/build/linguisticParsing/Sentence.js.map +1 -0
- package/build/parsedPaper/build/linguisticParsing/SentenceTokenizer.js +294 -0
- package/build/parsedPaper/build/linguisticParsing/SentenceTokenizer.js.map +1 -0
- package/build/parsedPaper/build/linguisticParsing/parseText.js +26 -0
- package/build/parsedPaper/build/linguisticParsing/parseText.js.map +1 -0
- package/build/parsedPaper/build/tree/TreeBuilder.js +82 -0
- package/build/parsedPaper/build/tree/TreeBuilder.js.map +1 -0
- package/build/parsedPaper/build/tree/cleanup/calculateTextIndices.js +183 -0
- package/build/parsedPaper/build/tree/cleanup/calculateTextIndices.js.map +1 -0
- package/build/parsedPaper/build/tree/cleanup/getElementContent.js +27 -0
- package/build/parsedPaper/build/tree/cleanup/getElementContent.js.map +1 -0
- package/build/parsedPaper/build/tree/cleanup/postParsing.js +43 -0
- package/build/parsedPaper/build/tree/cleanup/postParsing.js.map +1 -0
- package/build/parsedPaper/build/tree/html/HTMLTreeConverter.js +226 -0
- package/build/parsedPaper/build/tree/html/HTMLTreeConverter.js.map +1 -0
- package/build/parsedPaper/build/tree/html/buildTree.js +36 -0
- package/build/parsedPaper/build/tree/html/buildTree.js.map +1 -0
- package/build/parsedPaper/build/tree/html/htmlConstants.js +35 -0
- package/build/parsedPaper/build/tree/html/htmlConstants.js.map +1 -0
- package/build/parsedPaper/build/tree/index.js +20 -0
- package/build/parsedPaper/build/tree/index.js.map +1 -0
- package/build/parsedPaper/build/tree/metadata/buildTree.js +36 -0
- package/build/parsedPaper/build/tree/metadata/buildTree.js.map +1 -0
- package/build/parsedPaper/research/TreeResearcher.js +136 -0
- package/build/parsedPaper/research/TreeResearcher.js.map +1 -0
- package/build/parsedPaper/research/index.js +14 -0
- package/build/parsedPaper/research/index.js.map +1 -0
- package/build/parsedPaper/research/researches/Headings.js +26 -0
- package/build/parsedPaper/research/researches/Headings.js.map +1 -0
- package/build/parsedPaper/research/researches/LinkStatistics.js +129 -0
- package/build/parsedPaper/research/researches/LinkStatistics.js.map +1 -0
- package/build/parsedPaper/research/researches/Research.js +58 -0
- package/build/parsedPaper/research/researches/Research.js.map +1 -0
- package/build/parsedPaper/research/researches/index.js +14 -0
- package/build/parsedPaper/research/researches/index.js.map +1 -0
- package/build/parsedPaper/structure/tree/FormattingElement.js +73 -0
- package/build/parsedPaper/structure/tree/FormattingElement.js.map +1 -0
- package/build/parsedPaper/structure/tree/SourceCodeLocation.js +48 -0
- package/build/parsedPaper/structure/tree/SourceCodeLocation.js.map +1 -0
- package/build/parsedPaper/structure/tree/TextContainer.js +89 -0
- package/build/parsedPaper/structure/tree/TextContainer.js.map +1 -0
- package/build/parsedPaper/structure/tree/index.js +76 -0
- package/build/parsedPaper/structure/tree/index.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/Heading.js +33 -0
- package/build/parsedPaper/structure/tree/nodes/Heading.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/LeafNode.js +82 -0
- package/build/parsedPaper/structure/tree/nodes/LeafNode.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/List.js +54 -0
- package/build/parsedPaper/structure/tree/nodes/List.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/ListItem.js +34 -0
- package/build/parsedPaper/structure/tree/nodes/ListItem.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/MetadataMiscellaneous.js +51 -0
- package/build/parsedPaper/structure/tree/nodes/MetadataMiscellaneous.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/MetadataText.js +31 -0
- package/build/parsedPaper/structure/tree/nodes/MetadataText.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/Node.js +159 -0
- package/build/parsedPaper/structure/tree/nodes/Node.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/Paragraph.js +29 -0
- package/build/parsedPaper/structure/tree/nodes/Paragraph.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/StructuredNode.js +60 -0
- package/build/parsedPaper/structure/tree/nodes/StructuredNode.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/index.js +70 -0
- package/build/parsedPaper/structure/tree/nodes/index.js.map +1 -0
- package/build/scoring/assessments/assessment.js +68 -0
- package/build/scoring/assessments/assessment.js.map +1 -0
- package/build/scoring/assessments/index.js +64 -0
- package/build/scoring/assessments/index.js.map +1 -0
- package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js +162 -0
- package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js.map +1 -0
- package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js +131 -0
- package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js.map +1 -0
- package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js +173 -0
- package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js.map +1 -0
- package/build/scoring/assessments/readability/TransitionWordsAssessment.js +159 -0
- package/build/scoring/assessments/readability/TransitionWordsAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/ImageCountAssessment.js +107 -0
- package/build/scoring/assessments/seo/ImageCountAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/InternalLinksAssessment.js +108 -0
- package/build/scoring/assessments/seo/InternalLinksAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js +105 -0
- package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/KeyphraseAssessment.js +100 -0
- package/build/scoring/assessments/seo/KeyphraseAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js +105 -0
- package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/KeywordDensityAssessment.js +111 -0
- package/build/scoring/assessments/seo/KeywordDensityAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js +114 -0
- package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js +107 -0
- package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js +111 -0
- package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js +103 -0
- package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/OutboundLinksAssessment.js +110 -0
- package/build/scoring/assessments/seo/OutboundLinksAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/PageTitleWidthAssessment.js +101 -0
- package/build/scoring/assessments/seo/PageTitleWidthAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/SingleH1Assessment.js +110 -0
- package/build/scoring/assessments/seo/SingleH1Assessment.js.map +1 -0
- package/build/scoring/assessments/seo/SingleTitleAssessment.js +103 -0
- package/build/scoring/assessments/seo/SingleTitleAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js +103 -0
- package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/TextImagesAssessment.js +138 -0
- package/build/scoring/assessments/seo/TextImagesAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/TextLengthAssessment.js +100 -0
- package/build/scoring/assessments/seo/TextLengthAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/UrlKeywordAssessment.js +102 -0
- package/build/scoring/assessments/seo/UrlKeywordAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/UrlLengthAssessment.js +102 -0
- package/build/scoring/assessments/seo/UrlLengthAssessment.js.map +1 -0
- package/build/scoring/assessors/assessor.js +248 -0
- package/build/scoring/assessors/assessor.js.map +1 -0
- package/build/scoring/assessors/avadaAssessor.js +65 -0
- package/build/scoring/assessors/avadaAssessor.js.map +1 -0
- package/build/scoring/assessors/contentAssessor.js +149 -0
- package/build/scoring/assessors/contentAssessor.js.map +1 -0
- package/build/scoring/assessors/index.js +35 -0
- package/build/scoring/assessors/index.js.map +1 -0
- package/build/scoring/assessors/seoAssessor.js +44 -0
- package/build/scoring/assessors/seoAssessor.js.map +1 -0
- package/build/scoring/helpers/assessments/checkForTooLongSentences.js +19 -0
- package/build/scoring/helpers/assessments/checkForTooLongSentences.js.map +1 -0
- package/build/scoring/helpers/assessments/inRange.js +51 -0
- package/build/scoring/helpers/assessments/inRange.js.map +1 -0
- package/build/scoring/helpers/assessments/keyphraseLengthFactor.js +17 -0
- package/build/scoring/helpers/assessments/keyphraseLengthFactor.js.map +1 -0
- package/build/scoring/helpers/assessments/recommendedKeywordCount.js +47 -0
- package/build/scoring/helpers/assessments/recommendedKeywordCount.js.map +1 -0
- package/build/scoring/helpers/index.js +92 -0
- package/build/scoring/helpers/index.js.map +1 -0
- package/build/scoring/interpreters/index.js +14 -0
- package/build/scoring/interpreters/index.js.map +1 -0
- package/build/scoring/interpreters/scoreToRating.js +32 -0
- package/build/scoring/interpreters/scoreToRating.js.map +1 -0
- package/build/scoring/renderers/AssessorPresenter.js +348 -0
- package/build/scoring/renderers/AssessorPresenter.js.map +1 -0
- package/build/scoring/scoreAggregators/ReadabilityScoreAggregator.js +203 -0
- package/build/scoring/scoreAggregators/ReadabilityScoreAggregator.js.map +1 -0
- package/build/scoring/scoreAggregators/SEOScoreAggregator.js +60 -0
- package/build/scoring/scoreAggregators/SEOScoreAggregator.js.map +1 -0
- package/build/scoring/scoreAggregators/ScoreAggregator.js +30 -0
- package/build/scoring/scoreAggregators/ScoreAggregator.js.map +1 -0
- package/build/scoring/scoreAggregators/index.js +28 -0
- package/build/scoring/scoreAggregators/index.js.map +1 -0
- package/build/values/AssessmentResult.js +485 -0
- package/build/values/AssessmentResult.js.map +1 -0
- package/build/values/Mark.js +273 -0
- package/build/values/Mark.js.map +1 -0
- package/build/values/Paper.js +425 -0
- package/build/values/Paper.js.map +1 -0
- package/build/values/index.js +28 -0
- package/build/values/index.js.map +1 -0
- package/build/vendor/turkishStemmer.js +2817 -0
- package/build/vendor/turkishStemmer.js.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"videoCount.js","names":["countVideoInText","paper","videoTag","iframeVideoTag","videoSrcTag","videoMatches","getText","match","iframeVideoMatches","videoSrcMatches","allMatches","Set","size"],"sources":["../../../src/languageProcessing/researches/videoCount.js"],"sourcesContent":["/**\n * Checks the amount of videos in the text, including embedded video iframes and specific video sources.\n *\n * @param {Paper} paper The paper to check for videos.\n *\n * @returns {number} The amount of found videos.\n */\nexport default function countVideoInText(paper) {\n // Regular expression to match <video> tags.\n const videoTag = /<video.*?<\\/video>/gis;\n\n // Regular expression to match <iframe> tags with video sources (YouTube, Vimeo, Shopify CDN, etc.).\n const iframeVideoTag = /<iframe[^>]*src=[\"']https?:\\/\\/(?:www\\.)?(youtube\\.com|youtu\\.be|vimeo\\.com|cdn\\.shopify\\.com)[^\"']*[\"'][^>]*>/gis;\n\n // Regular expression to match any src attributes with common video file extensions.\n const videoSrcTag = /src=[\"'].*?\\.(mp4|webm|ogg|mov|m4v|avi|mkv|flv|wmv)(\\?.*?)?[\"']/gis;\n\n // Match occurrences of <video> tags in the text.\n const videoMatches = paper.getText().match(videoTag) || [];\n\n // Match occurrences of <iframe> tags with video sources in the text.\n const iframeVideoMatches = paper.getText().match(iframeVideoTag) || [];\n\n // Match occurrences of src attributes pointing to video files in the text.\n const videoSrcMatches = paper.getText().match(videoSrcTag) || [];\n\n // Combine all matches into a single set to remove duplicates.\n const allMatches = new Set([...videoMatches, ...iframeVideoMatches, ...videoSrcMatches]);\n\n // Return the unique count of all found matches.\n return allMatches.size;\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASA,gBAAgBA,CAACC,KAAK,EAAE;EAC9C;EACA,MAAMC,QAAQ,GAAG,uBAAuB;;EAExC;EACA,MAAMC,cAAc,GAAG,mHAAmH;;EAE1I;EACA,MAAMC,WAAW,GAAG,oEAAoE;;EAExF;EACA,MAAMC,YAAY,GAAGJ,KAAK,CAACK,OAAO,CAAC,CAAC,CAACC,KAAK,CAACL,QAAQ,CAAC,IAAI,EAAE;;EAE1D;EACA,MAAMM,kBAAkB,GAAGP,KAAK,CAACK,OAAO,CAAC,CAAC,CAACC,KAAK,CAACJ,cAAc,CAAC,IAAI,EAAE;;EAEtE;EACA,MAAMM,eAAe,GAAGR,KAAK,CAACK,OAAO,CAAC,CAAC,CAACC,KAAK,CAACH,WAAW,CAAC,IAAI,EAAE;;EAEhE;EACA,MAAMM,UAAU,GAAG,IAAIC,GAAG,CAAC,CAAC,GAAGN,YAAY,EAAE,GAAGG,kBAAkB,EAAE,GAAGC,eAAe,CAAC,CAAC;;EAExF;EACA,OAAOC,UAAU,CAACE,IAAI;AACxB","ignoreList":[]}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = wordComplexity;
|
|
7
|
+
var _lodash = require("lodash");
|
|
8
|
+
var _getSentences = _interopRequireDefault(require("../helpers/sentence/getSentences"));
|
|
9
|
+
var _getWords = _interopRequireDefault(require("../helpers/word/getWords"));
|
|
10
|
+
var _htmlParser = _interopRequireDefault(require("../helpers/html/htmlParser"));
|
|
11
|
+
var _helpers = require("../helpers");
|
|
12
|
+
var _findKeywordFormsInString = require("../helpers/match/findKeywordFormsInString");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
/**
|
|
15
|
+
* An object containing the results of the complex words research for a single sentence.
|
|
16
|
+
*
|
|
17
|
+
* The structure of the data is:
|
|
18
|
+
* @example
|
|
19
|
+
* {
|
|
20
|
+
* complexWords: ["word1", "word2", "word3" ],
|
|
21
|
+
* sentence: "the sentence"
|
|
22
|
+
* }
|
|
23
|
+
*
|
|
24
|
+
* @typedef {Object} ComplexWordsResult
|
|
25
|
+
* @property {string[]} complexWords The complex words in the sentence.
|
|
26
|
+
* @property {string} sentence The sentence.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves all complex words in a sentence.
|
|
31
|
+
*
|
|
32
|
+
* @param {string} currentSentence The current sentence.
|
|
33
|
+
* @param {Researcher} researcher The researcher object.
|
|
34
|
+
* @param {Object} topicForms The object with word forms of all (content) words from the keyphrase and eventually synonyms,
|
|
35
|
+
* comes in a shape {
|
|
36
|
+
* keyphraseForms: [[ form1, form2, ... ], [ form1, form2, ... ]],
|
|
37
|
+
* synonymsForms: [
|
|
38
|
+
* [[ form1, form2, ... ], [ form1, form2, ... ]],
|
|
39
|
+
* [[ form1, form2, ... ], [ form1, form2, ... ]],
|
|
40
|
+
* [[ form1, form2, ... ], [ form1, form2, ... ]],
|
|
41
|
+
* ],
|
|
42
|
+
* }
|
|
43
|
+
*
|
|
44
|
+
* @returns {ComplexWordsResult} An object containing all complex words in a given sentence.
|
|
45
|
+
*/
|
|
46
|
+
const getComplexWords = function (currentSentence, researcher, topicForms) {
|
|
47
|
+
const language = researcher.getConfig("language");
|
|
48
|
+
const checkIfWordIsComplex = researcher.getHelper("checkIfWordIsComplex");
|
|
49
|
+
const functionWords = researcher.getConfig("functionWords");
|
|
50
|
+
const wordComplexityConfig = researcher.getConfig("wordComplexity");
|
|
51
|
+
const checkIfWordIsFunction = researcher.getHelper("checkIfWordIsFunction");
|
|
52
|
+
const premiumData = (0, _lodash.get)(researcher.getData("morphology"), language, false);
|
|
53
|
+
|
|
54
|
+
// Retrieve all words from the sentence.
|
|
55
|
+
let words = (0, _getWords.default)(currentSentence);
|
|
56
|
+
|
|
57
|
+
// Filters out keyphrase forms (but not synonyms) because we consider them not to be complex.
|
|
58
|
+
const matchWordCustomHelper = researcher.getHelper("matchWordCustomHelper");
|
|
59
|
+
const foundTopicForms = (0, _findKeywordFormsInString.findTopicFormsInString)(topicForms, currentSentence, false, researcher.paper.getLocale(), matchWordCustomHelper);
|
|
60
|
+
words = words.filter(word => !foundTopicForms.matches.includes(word));
|
|
61
|
+
|
|
62
|
+
// Filters out function words because function words are not complex.
|
|
63
|
+
// Words are converted to lowercase before processing to avoid excluding function words that start with a capital letter.
|
|
64
|
+
words = words.filter(word => !(checkIfWordIsFunction ? checkIfWordIsFunction(word) : functionWords.includes(word)));
|
|
65
|
+
const result = {
|
|
66
|
+
complexWords: [],
|
|
67
|
+
sentence: currentSentence
|
|
68
|
+
};
|
|
69
|
+
if (!premiumData) {
|
|
70
|
+
return result;
|
|
71
|
+
}
|
|
72
|
+
words.forEach(word => {
|
|
73
|
+
if (checkIfWordIsComplex(wordComplexityConfig, word, premiumData)) {
|
|
74
|
+
result.complexWords.push(word);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
return result;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Calculates the percentage of the complex words compared to the total words in the text.
|
|
82
|
+
*
|
|
83
|
+
* @param {ComplexWordsResult[]} complexWordsResults The array of complex words results.
|
|
84
|
+
* @param {string[]} words The array of words retrieved from the text.
|
|
85
|
+
*
|
|
86
|
+
* @returns {number} The percentage of the complex words compared to the total words in the text.
|
|
87
|
+
*/
|
|
88
|
+
const calculateComplexWordsPercentage = function (complexWordsResults, words) {
|
|
89
|
+
const totalComplexWords = (0, _lodash.flatMap)(complexWordsResults, result => result.complexWords);
|
|
90
|
+
const percentage = totalComplexWords.length / words.length * 100;
|
|
91
|
+
|
|
92
|
+
// If the number is a decimal, round it to two numbers after the period, e.g. 5.12345 -> 5.12.
|
|
93
|
+
// This approach is inspired from this thread: https://stackoverflow.com/questions/11832914/how-to-round-to-at-most-2-decimal-places-if-necessary.
|
|
94
|
+
return +percentage.toFixed(2);
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Gets the complex words from the sentences and calculates the percentage of complex words compared to the total words in the text.
|
|
99
|
+
* This is a research for the Word Complexity assessment. As such, this research is not part of the AbstractResearcher, and not bundled in Yoast SEO.
|
|
100
|
+
*
|
|
101
|
+
* @param {Paper} paper The Paper object to get the text from.
|
|
102
|
+
* @param {Researcher} researcher The researcher object.
|
|
103
|
+
*
|
|
104
|
+
* @returns {{complexWords: ComplexWordsResult[], percentage: number}}
|
|
105
|
+
* The complex words found and their percentage compared to the total words in the text.
|
|
106
|
+
*/
|
|
107
|
+
function wordComplexity(paper, researcher) {
|
|
108
|
+
const memoizedTokenizer = researcher.getHelper("memoizedTokenizer");
|
|
109
|
+
let text = paper.getText();
|
|
110
|
+
text = (0, _htmlParser.default)(text);
|
|
111
|
+
text = (0, _helpers.filterShortcodesFromHTML)(text, paper._attributes && paper._attributes.shortcodes);
|
|
112
|
+
const sentences = (0, _getSentences.default)(text, memoizedTokenizer);
|
|
113
|
+
const topicForms = researcher.getResearch("morphology");
|
|
114
|
+
// Find the complex words in each sentence.
|
|
115
|
+
let results = sentences.map(sentence => getComplexWords(sentence, researcher, topicForms));
|
|
116
|
+
|
|
117
|
+
// Remove sentences without complex words.
|
|
118
|
+
results = results.filter(result => result.complexWords.length !== 0);
|
|
119
|
+
|
|
120
|
+
// Calculate the percentage of complex words in the text as a whole.
|
|
121
|
+
const words = (0, _getWords.default)(text);
|
|
122
|
+
const percentage = calculateComplexWordsPercentage(results, words);
|
|
123
|
+
return {
|
|
124
|
+
complexWords: results,
|
|
125
|
+
percentage: percentage
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=wordComplexity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wordComplexity.js","names":["_lodash","require","_getSentences","_interopRequireDefault","_getWords","_htmlParser","_helpers","_findKeywordFormsInString","e","__esModule","default","getComplexWords","currentSentence","researcher","topicForms","language","getConfig","checkIfWordIsComplex","getHelper","functionWords","wordComplexityConfig","checkIfWordIsFunction","premiumData","get","getData","words","getWords","matchWordCustomHelper","foundTopicForms","findTopicFormsInString","paper","getLocale","filter","word","matches","includes","result","complexWords","sentence","forEach","push","calculateComplexWordsPercentage","complexWordsResults","totalComplexWords","flatMap","percentage","length","toFixed","wordComplexity","memoizedTokenizer","text","getText","removeHtmlBlocks","filterShortcodesFromHTML","_attributes","shortcodes","sentences","getSentences","getResearch","results","map"],"sources":["../../../src/languageProcessing/researches/wordComplexity.js"],"sourcesContent":["import { flatMap, get } from \"lodash\";\n\nimport getSentences from \"../helpers/sentence/getSentences\";\nimport getWords from \"../helpers/word/getWords\";\nimport removeHtmlBlocks from \"../helpers/html/htmlParser\";\nimport { filterShortcodesFromHTML } from \"../helpers\";\nimport { findTopicFormsInString } from \"../helpers/match/findKeywordFormsInString\";\n\n/**\n * An object containing the results of the complex words research for a single sentence.\n *\n * The structure of the data is:\n * @example\n * {\n * complexWords: [\"word1\", \"word2\", \"word3\" ],\n * sentence: \"the sentence\"\n * }\n *\n * @typedef {Object} \tComplexWordsResult\n * @property {string[]}\tcomplexWords\tThe complex words in the sentence.\n * @property {string}\tsentence\t\tThe sentence.\n */\n\n/**\n * Retrieves all complex words in a sentence.\n *\n * @param {string} \t\tcurrentSentence\tThe current sentence.\n * @param {Researcher} \tresearcher\t\tThe researcher object.\n * @param {Object} topicForms The object with word forms of all (content) words from the keyphrase and eventually synonyms,\n * comes in a shape {\n * keyphraseForms: [[ form1, form2, ... ], [ form1, form2, ... ]],\n * synonymsForms: [\n * [[ form1, form2, ... ], [ form1, form2, ... ]],\n * [[ form1, form2, ... ], [ form1, form2, ... ]],\n * [[ form1, form2, ... ], [ form1, form2, ... ]],\n * ],\n * }\n *\n * @returns {ComplexWordsResult} An object containing all complex words in a given sentence.\n */\nconst getComplexWords = function( currentSentence, researcher, topicForms ) {\n\tconst language = researcher.getConfig( \"language\" );\n\tconst checkIfWordIsComplex = researcher.getHelper( \"checkIfWordIsComplex\" );\n\tconst functionWords = researcher.getConfig( \"functionWords\" );\n\tconst wordComplexityConfig = researcher.getConfig( \"wordComplexity\" );\n\tconst checkIfWordIsFunction = researcher.getHelper( \"checkIfWordIsFunction\" );\n\tconst premiumData = get( researcher.getData( \"morphology\" ), language, false );\n\n\t// Retrieve all words from the sentence.\n\tlet words = getWords( currentSentence );\n\n\t// Filters out keyphrase forms (but not synonyms) because we consider them not to be complex.\n\tconst matchWordCustomHelper = researcher.getHelper( \"matchWordCustomHelper\" );\n\tconst foundTopicForms = findTopicFormsInString( topicForms, currentSentence, false, researcher.paper.getLocale(), matchWordCustomHelper );\n\twords = words.filter( word => ! foundTopicForms.matches.includes( word ) );\n\n\t// Filters out function words because function words are not complex.\n\t// Words are converted to lowercase before processing to avoid excluding function words that start with a capital letter.\n\twords = words.filter( word => ! ( checkIfWordIsFunction ? checkIfWordIsFunction( word ) : functionWords.includes( word ) ) );\n\n\tconst result = {\n\t\tcomplexWords: [],\n\t\tsentence: currentSentence,\n\t};\n\n\tif ( ! premiumData ) {\n\t\treturn result;\n\t}\n\n\twords.forEach( word => {\n\t\tif ( checkIfWordIsComplex( wordComplexityConfig, word, premiumData ) ) {\n\t\t\tresult.complexWords.push( word );\n\t\t}\n\t} );\n\n\treturn result;\n};\n\n/**\n * Calculates the percentage of the complex words compared to the total words in the text.\n *\n * @param {ComplexWordsResult[]}\tcomplexWordsResults\tThe array of complex words results.\n * @param {string[]} \t\t\t\twords \t\t\tThe array of words retrieved from the text.\n *\n * @returns {number} The percentage of the complex words compared to the total words in the text.\n */\nconst calculateComplexWordsPercentage = function( complexWordsResults, words ) {\n\tconst totalComplexWords = flatMap( complexWordsResults, result => result.complexWords );\n\tconst percentage = ( totalComplexWords.length / words.length ) * 100;\n\n\t// If the number is a decimal, round it to two numbers after the period, e.g. 5.12345 -> 5.12.\n\t// This approach is inspired from this thread: https://stackoverflow.com/questions/11832914/how-to-round-to-at-most-2-decimal-places-if-necessary.\n\treturn +percentage.toFixed( 2 );\n};\n\n/**\n * Gets the complex words from the sentences and calculates the percentage of complex words compared to the total words in the text.\n * This is a research for the Word Complexity assessment. As such, this research is not part of the AbstractResearcher, and not bundled in Yoast SEO.\n *\n * @param {Paper} paper The Paper object to get the text from.\n * @param {Researcher} researcher The researcher object.\n *\n * @returns {{complexWords: ComplexWordsResult[], percentage: number}}\n * The complex words found and their percentage compared to the total words in the text.\n */\nexport default function wordComplexity( paper, researcher ) {\n\tconst memoizedTokenizer = researcher.getHelper( \"memoizedTokenizer\" );\n\tlet text = paper.getText();\n\ttext = removeHtmlBlocks( text );\n\ttext = filterShortcodesFromHTML( text, paper._attributes && paper._attributes.shortcodes );\n\tconst sentences = getSentences( text, memoizedTokenizer );\n\n\tconst topicForms = researcher.getResearch( \"morphology\" );\n\t// Find the complex words in each sentence.\n\tlet results = sentences.map( sentence => getComplexWords( sentence, researcher, topicForms ) );\n\n\t// Remove sentences without complex words.\n\tresults = results.filter( result => result.complexWords.length !== 0 );\n\n\t// Calculate the percentage of complex words in the text as a whole.\n\tconst words = getWords( text );\n\tconst percentage = calculateComplexWordsPercentage( results, words );\n\n\treturn {\n\t\tcomplexWords: results,\n\t\tpercentage: percentage,\n\t};\n}\n\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,SAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,yBAAA,GAAAN,OAAA;AAAmF,SAAAE,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMG,eAAe,GAAG,SAAAA,CAAUC,eAAe,EAAEC,UAAU,EAAEC,UAAU,EAAG;EAC3E,MAAMC,QAAQ,GAAGF,UAAU,CAACG,SAAS,CAAE,UAAW,CAAC;EACnD,MAAMC,oBAAoB,GAAGJ,UAAU,CAACK,SAAS,CAAE,sBAAuB,CAAC;EAC3E,MAAMC,aAAa,GAAGN,UAAU,CAACG,SAAS,CAAE,eAAgB,CAAC;EAC7D,MAAMI,oBAAoB,GAAGP,UAAU,CAACG,SAAS,CAAE,gBAAiB,CAAC;EACrE,MAAMK,qBAAqB,GAAGR,UAAU,CAACK,SAAS,CAAE,uBAAwB,CAAC;EAC7E,MAAMI,WAAW,GAAG,IAAAC,WAAG,EAAEV,UAAU,CAACW,OAAO,CAAE,YAAa,CAAC,EAAET,QAAQ,EAAE,KAAM,CAAC;;EAE9E;EACA,IAAIU,KAAK,GAAG,IAAAC,iBAAQ,EAAEd,eAAgB,CAAC;;EAEvC;EACA,MAAMe,qBAAqB,GAAGd,UAAU,CAACK,SAAS,CAAE,uBAAwB,CAAC;EAC7E,MAAMU,eAAe,GAAG,IAAAC,gDAAsB,EAAEf,UAAU,EAAEF,eAAe,EAAE,KAAK,EAAEC,UAAU,CAACiB,KAAK,CAACC,SAAS,CAAC,CAAC,EAAEJ,qBAAsB,CAAC;EACzIF,KAAK,GAAGA,KAAK,CAACO,MAAM,CAAEC,IAAI,IAAI,CAAEL,eAAe,CAACM,OAAO,CAACC,QAAQ,CAAEF,IAAK,CAAE,CAAC;;EAE1E;EACA;EACAR,KAAK,GAAGA,KAAK,CAACO,MAAM,CAAEC,IAAI,IAAI,EAAIZ,qBAAqB,GAAGA,qBAAqB,CAAEY,IAAK,CAAC,GAAGd,aAAa,CAACgB,QAAQ,CAAEF,IAAK,CAAC,CAAG,CAAC;EAE5H,MAAMG,MAAM,GAAG;IACdC,YAAY,EAAE,EAAE;IAChBC,QAAQ,EAAE1B;EACX,CAAC;EAED,IAAK,CAAEU,WAAW,EAAG;IACpB,OAAOc,MAAM;EACd;EAEAX,KAAK,CAACc,OAAO,CAAEN,IAAI,IAAI;IACtB,IAAKhB,oBAAoB,CAAEG,oBAAoB,EAAEa,IAAI,EAAEX,WAAY,CAAC,EAAG;MACtEc,MAAM,CAACC,YAAY,CAACG,IAAI,CAAEP,IAAK,CAAC;IACjC;EACD,CAAE,CAAC;EAEH,OAAOG,MAAM;AACd,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMK,+BAA+B,GAAG,SAAAA,CAAUC,mBAAmB,EAAEjB,KAAK,EAAG;EAC9E,MAAMkB,iBAAiB,GAAG,IAAAC,eAAO,EAAEF,mBAAmB,EAAEN,MAAM,IAAIA,MAAM,CAACC,YAAa,CAAC;EACvF,MAAMQ,UAAU,GAAKF,iBAAiB,CAACG,MAAM,GAAGrB,KAAK,CAACqB,MAAM,GAAK,GAAG;;EAEpE;EACA;EACA,OAAO,CAACD,UAAU,CAACE,OAAO,CAAE,CAAE,CAAC;AAChC,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASC,cAAcA,CAAElB,KAAK,EAAEjB,UAAU,EAAG;EAC3D,MAAMoC,iBAAiB,GAAGpC,UAAU,CAACK,SAAS,CAAE,mBAAoB,CAAC;EACrE,IAAIgC,IAAI,GAAGpB,KAAK,CAACqB,OAAO,CAAC,CAAC;EAC1BD,IAAI,GAAG,IAAAE,mBAAgB,EAAEF,IAAK,CAAC;EAC/BA,IAAI,GAAG,IAAAG,iCAAwB,EAAEH,IAAI,EAAEpB,KAAK,CAACwB,WAAW,IAAIxB,KAAK,CAACwB,WAAW,CAACC,UAAW,CAAC;EAC1F,MAAMC,SAAS,GAAG,IAAAC,qBAAY,EAAEP,IAAI,EAAED,iBAAkB,CAAC;EAEzD,MAAMnC,UAAU,GAAGD,UAAU,CAAC6C,WAAW,CAAE,YAAa,CAAC;EACzD;EACA,IAAIC,OAAO,GAAGH,SAAS,CAACI,GAAG,CAAEtB,QAAQ,IAAI3B,eAAe,CAAE2B,QAAQ,EAAEzB,UAAU,EAAEC,UAAW,CAAE,CAAC;;EAE9F;EACA6C,OAAO,GAAGA,OAAO,CAAC3B,MAAM,CAAEI,MAAM,IAAIA,MAAM,CAACC,YAAY,CAACS,MAAM,KAAK,CAAE,CAAC;;EAEtE;EACA,MAAMrB,KAAK,GAAG,IAAAC,iBAAQ,EAAEwB,IAAK,CAAC;EAC9B,MAAML,UAAU,GAAGJ,+BAA+B,CAAEkB,OAAO,EAAElC,KAAM,CAAC;EAEpE,OAAO;IACNY,YAAY,EAAEsB,OAAO;IACrBd,UAAU,EAAEA;EACb,CAAC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = _default;
|
|
7
|
+
var _countWords = _interopRequireDefault(require("../helpers/word/countWords.js"));
|
|
8
|
+
var _htmlParser = _interopRequireDefault(require("../helpers/html/htmlParser"));
|
|
9
|
+
var _helpers = require("../helpers");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
/**
|
|
12
|
+
* A result of the word count calculation.
|
|
13
|
+
*
|
|
14
|
+
* @typedef WordCountResult
|
|
15
|
+
* @param {number} count The number of words found in the text.
|
|
16
|
+
* @param {"word"} unit The unit used in the text length calculations, always "word".
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Count the words in the text.
|
|
21
|
+
*
|
|
22
|
+
* @param {Paper} paper The Paper object.
|
|
23
|
+
*
|
|
24
|
+
* @returns {WordCountResult} The number of words found in the text, plus "word" as the unit used in calculating the text length.
|
|
25
|
+
*/
|
|
26
|
+
function _default(paper) {
|
|
27
|
+
let text = paper.getText();
|
|
28
|
+
text = (0, _htmlParser.default)(text);
|
|
29
|
+
text = (0, _helpers.filterShortcodesFromHTML)(text, paper._attributes && paper._attributes.shortcodes);
|
|
30
|
+
return {
|
|
31
|
+
text: text,
|
|
32
|
+
count: (0, _countWords.default)(text),
|
|
33
|
+
unit: "word"
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=wordCountInText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wordCountInText.js","names":["_countWords","_interopRequireDefault","require","_htmlParser","_helpers","e","__esModule","default","_default","paper","text","getText","removeHtmlBlocks","filterShortcodesFromHTML","_attributes","shortcodes","count","wordCount","unit"],"sources":["../../../src/languageProcessing/researches/wordCountInText.js"],"sourcesContent":["import wordCount from \"../helpers/word/countWords.js\";\nimport removeHtmlBlocks from \"../helpers/html/htmlParser\";\nimport { filterShortcodesFromHTML } from \"../helpers\";\n\n/**\n * A result of the word count calculation.\n *\n * @typedef WordCountResult\n * @param {number} count The number of words found in the text.\n * @param {\"word\"} unit The unit used in the text length calculations, always \"word\".\n */\n\n/**\n * Count the words in the text.\n *\n * @param {Paper} paper The Paper object.\n *\n * @returns {WordCountResult} The number of words found in the text, plus \"word\" as the unit used in calculating the text length.\n */\nexport default function( paper ) {\n\tlet text = paper.getText();\n\ttext = removeHtmlBlocks( text );\n\ttext = filterShortcodesFromHTML( text, paper._attributes && paper._attributes.shortcodes );\n\treturn {\n\t\ttext: text,\n\t\tcount: wordCount( text ),\n\t\tunit: \"word\",\n\t};\n}\n"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAAsD,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAAG,SAAUC,KAAK,EAAG;EAChC,IAAIC,IAAI,GAAGD,KAAK,CAACE,OAAO,CAAC,CAAC;EAC1BD,IAAI,GAAG,IAAAE,mBAAgB,EAAEF,IAAK,CAAC;EAC/BA,IAAI,GAAG,IAAAG,iCAAwB,EAAEH,IAAI,EAAED,KAAK,CAACK,WAAW,IAAIL,KAAK,CAACK,WAAW,CAACC,UAAW,CAAC;EAC1F,OAAO;IACNL,IAAI,EAAEA,IAAI;IACVM,KAAK,EAAE,IAAAC,mBAAS,EAAEP,IAAK,CAAC;IACxBQ,IAAI,EAAE;EACP,CAAC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Sentence clause which should be checked for passiveness.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
class Clause {
|
|
12
|
+
/**
|
|
13
|
+
* Constructs a clause object.
|
|
14
|
+
*
|
|
15
|
+
* @param {string} clauseText The text in the clause.
|
|
16
|
+
* @param {Array} auxiliaries The auxiliaries in the clause.
|
|
17
|
+
*
|
|
18
|
+
* @constructor
|
|
19
|
+
*/
|
|
20
|
+
constructor(clauseText, auxiliaries) {
|
|
21
|
+
this._clauseText = clauseText;
|
|
22
|
+
this._auxiliaries = auxiliaries;
|
|
23
|
+
this._isPassive = false;
|
|
24
|
+
this._participles = [];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns the clause text.
|
|
28
|
+
*
|
|
29
|
+
* @returns {string} The clause text.
|
|
30
|
+
*/
|
|
31
|
+
getClauseText() {
|
|
32
|
+
return this._clauseText;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Returns true if the clause is passive.
|
|
37
|
+
*
|
|
38
|
+
* @returns {boolean} Whether the clause is passive.
|
|
39
|
+
*/
|
|
40
|
+
isPassive() {
|
|
41
|
+
return this._isPassive;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Returns the auxiliaries of the clause.
|
|
46
|
+
*
|
|
47
|
+
* @returns {Array} The auxiliaries present in the clause.
|
|
48
|
+
*/
|
|
49
|
+
getAuxiliaries() {
|
|
50
|
+
return this._auxiliaries;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Sets the passiveness of the clause.
|
|
55
|
+
*
|
|
56
|
+
* @param {boolean} passive Whether the clause is passive.
|
|
57
|
+
*
|
|
58
|
+
* @returns {void}
|
|
59
|
+
*/
|
|
60
|
+
setPassive(passive) {
|
|
61
|
+
this._isPassive = passive;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Sets the participles.
|
|
66
|
+
*
|
|
67
|
+
* @param {Array} participles The participles.
|
|
68
|
+
*
|
|
69
|
+
* @returns {void}
|
|
70
|
+
*/
|
|
71
|
+
setParticiples(participles) {
|
|
72
|
+
this._participles = participles;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Returns the found participles.
|
|
77
|
+
*
|
|
78
|
+
* @returns {Array} The participles
|
|
79
|
+
*/
|
|
80
|
+
getParticiples() {
|
|
81
|
+
return this._participles;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Serializes the Clause instance to an object.
|
|
86
|
+
*
|
|
87
|
+
* @returns {Object} The serialized Clause.
|
|
88
|
+
*/
|
|
89
|
+
serialize() {
|
|
90
|
+
return {
|
|
91
|
+
_parseClass: "Clause",
|
|
92
|
+
clauseText: this._clauseText,
|
|
93
|
+
auxiliaries: this._auxiliaries,
|
|
94
|
+
isPassive: this._isPassive,
|
|
95
|
+
participles: this._participles
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Parses the object to a Clause.
|
|
101
|
+
*
|
|
102
|
+
* @param {Object} serialized The serialized object.
|
|
103
|
+
*
|
|
104
|
+
* @returns {Clause} The parsed Clause.
|
|
105
|
+
*/
|
|
106
|
+
static parse(serialized) {
|
|
107
|
+
const clause = new Clause(serialized.clauseText, serialized.auxiliaries);
|
|
108
|
+
clause.setPassive(serialized.isPassive);
|
|
109
|
+
return clause;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
var _default = exports.default = Clause;
|
|
113
|
+
//# sourceMappingURL=Clause.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Clause.js","names":["Clause","constructor","clauseText","auxiliaries","_clauseText","_auxiliaries","_isPassive","_participles","getClauseText","isPassive","getAuxiliaries","setPassive","passive","setParticiples","participles","getParticiples","serialize","_parseClass","parse","serialized","clause","_default","exports","default"],"sources":["../../../src/languageProcessing/values/Clause.js"],"sourcesContent":["/**\n * Sentence clause which should be checked for passiveness.\n *\n */\nclass Clause {\n\t/**\n\t * Constructs a clause object.\n\t *\n\t * @param {string} clauseText The text in the clause.\n\t * @param {Array} auxiliaries The auxiliaries in the clause.\n\t *\n\t * @constructor\n\t */\n\tconstructor( clauseText, auxiliaries ) {\n\t\tthis._clauseText = clauseText;\n\t\tthis._auxiliaries = auxiliaries;\n\t\tthis._isPassive = false;\n\t\tthis._participles = [];\n\t}\n\t/**\n\t * Returns the clause text.\n\t *\n\t * @returns {string} The clause text.\n\t */\n\tgetClauseText() {\n\t\treturn this._clauseText;\n\t}\n\n\t/**\n\t * Returns true if the clause is passive.\n\t *\n\t * @returns {boolean} Whether the clause is passive.\n\t */\n\tisPassive() {\n\t\treturn this._isPassive;\n\t}\n\n\t/**\n\t * Returns the auxiliaries of the clause.\n\t *\n\t * @returns {Array} The auxiliaries present in the clause.\n\t */\n\tgetAuxiliaries() {\n\t\treturn this._auxiliaries;\n\t}\n\n\t/**\n\t * Sets the passiveness of the clause.\n\t *\n\t * @param {boolean} passive\t Whether the clause is passive.\n\t *\n\t * @returns {void}\n\t */\n\tsetPassive( passive ) {\n\t\tthis._isPassive = passive;\n\t}\n\n\t/**\n\t * Sets the participles.\n\t *\n\t * @param {Array} participles\tThe participles.\n\t *\n\t * @returns {void}\n\t */\n\tsetParticiples( participles ) {\n\t\tthis._participles = participles;\n\t}\n\n\t/**\n\t * Returns the found participles.\n\t *\n\t * @returns {Array} The participles\n\t */\n\tgetParticiples() {\n\t\treturn this._participles;\n\t}\n\n\t/**\n\t * Serializes the Clause instance to an object.\n\t *\n\t * @returns {Object} The serialized Clause.\n\t */\n\tserialize() {\n\t\treturn {\n\t\t\t_parseClass: \"Clause\",\n\t\t\tclauseText: this._clauseText,\n\t\t\tauxiliaries: this._auxiliaries,\n\t\t\tisPassive: this._isPassive,\n\t\t\tparticiples: this._participles,\n\t\t};\n\t}\n\n\t/**\n\t * Parses the object to a Clause.\n\t *\n\t * @param {Object} serialized The serialized object.\n\t *\n\t * @returns {Clause} The parsed Clause.\n\t */\n\tstatic parse( serialized ) {\n\t\tconst clause = new Clause( serialized.clauseText, serialized.auxiliaries );\n\t\tclause.setPassive( serialized.isPassive );\n\n\t\treturn clause;\n\t}\n}\n\nexport default Clause;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,MAAMA,MAAM,CAAC;EACZ;AACD;AACA;AACA;AACA;AACA;AACA;AACA;EACCC,WAAWA,CAAEC,UAAU,EAAEC,WAAW,EAAG;IACtC,IAAI,CAACC,WAAW,GAAGF,UAAU;IAC7B,IAAI,CAACG,YAAY,GAAGF,WAAW;IAC/B,IAAI,CAACG,UAAU,GAAG,KAAK;IACvB,IAAI,CAACC,YAAY,GAAG,EAAE;EACvB;EACA;AACD;AACA;AACA;AACA;EACCC,aAAaA,CAAA,EAAG;IACf,OAAO,IAAI,CAACJ,WAAW;EACxB;;EAEA;AACD;AACA;AACA;AACA;EACCK,SAASA,CAAA,EAAG;IACX,OAAO,IAAI,CAACH,UAAU;EACvB;;EAEA;AACD;AACA;AACA;AACA;EACCI,cAAcA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACL,YAAY;EACzB;;EAEA;AACD;AACA;AACA;AACA;AACA;AACA;EACCM,UAAUA,CAAEC,OAAO,EAAG;IACrB,IAAI,CAACN,UAAU,GAAGM,OAAO;EAC1B;;EAEA;AACD;AACA;AACA;AACA;AACA;AACA;EACCC,cAAcA,CAAEC,WAAW,EAAG;IAC7B,IAAI,CAACP,YAAY,GAAGO,WAAW;EAChC;;EAEA;AACD;AACA;AACA;AACA;EACCC,cAAcA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACR,YAAY;EACzB;;EAEA;AACD;AACA;AACA;AACA;EACCS,SAASA,CAAA,EAAG;IACX,OAAO;MACNC,WAAW,EAAE,QAAQ;MACrBf,UAAU,EAAE,IAAI,CAACE,WAAW;MAC5BD,WAAW,EAAE,IAAI,CAACE,YAAY;MAC9BI,SAAS,EAAE,IAAI,CAACH,UAAU;MAC1BQ,WAAW,EAAE,IAAI,CAACP;IACnB,CAAC;EACF;;EAEA;AACD;AACA;AACA;AACA;AACA;AACA;EACC,OAAOW,KAAKA,CAAEC,UAAU,EAAG;IAC1B,MAAMC,MAAM,GAAG,IAAIpB,MAAM,CAAEmB,UAAU,CAACjB,UAAU,EAAEiB,UAAU,CAAChB,WAAY,CAAC;IAC1EiB,MAAM,CAACT,UAAU,CAAEQ,UAAU,CAACV,SAAU,CAAC;IAEzC,OAAOW,MAAM;EACd;AACD;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcvB,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Represents a prominent word in the context of relevant words.
|
|
9
|
+
*/
|
|
10
|
+
class ProminentWord {
|
|
11
|
+
/**
|
|
12
|
+
* Constructs Prominent word object.
|
|
13
|
+
*
|
|
14
|
+
* @constructor
|
|
15
|
+
*
|
|
16
|
+
* @param {string} word The word.
|
|
17
|
+
* @param {string} [stem] The stem / base form of the word, defaults to the word.
|
|
18
|
+
* @param {number} [occurrences] The number of occurrences, defaults to 0.
|
|
19
|
+
*/
|
|
20
|
+
constructor(word, stem, occurrences) {
|
|
21
|
+
this._word = word;
|
|
22
|
+
this._stem = stem ? stem : word;
|
|
23
|
+
this._occurrences = occurrences || 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Sets the word.
|
|
28
|
+
*
|
|
29
|
+
* @param {string} word The word to set.
|
|
30
|
+
*
|
|
31
|
+
* @returns {void}.
|
|
32
|
+
*/
|
|
33
|
+
setWord(word) {
|
|
34
|
+
this._word = word;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Returns the word.
|
|
39
|
+
*
|
|
40
|
+
* @returns {string} The word.
|
|
41
|
+
*/
|
|
42
|
+
getWord() {
|
|
43
|
+
return this._word;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Returns the stem of the word.
|
|
48
|
+
*
|
|
49
|
+
* @returns {string} The stem.
|
|
50
|
+
*/
|
|
51
|
+
getStem() {
|
|
52
|
+
return this._stem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Sets the number of occurrences to the word.
|
|
57
|
+
*
|
|
58
|
+
* @param {int} numberOfOccurrences The number of occurrences to set.
|
|
59
|
+
*
|
|
60
|
+
* @returns {void}.
|
|
61
|
+
*/
|
|
62
|
+
setOccurrences(numberOfOccurrences) {
|
|
63
|
+
this._occurrences = numberOfOccurrences;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Returns the amount of occurrences of this word.
|
|
68
|
+
*
|
|
69
|
+
* @returns {number} The number of occurrences.
|
|
70
|
+
*/
|
|
71
|
+
getOccurrences() {
|
|
72
|
+
return this._occurrences;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Serializes the ProminentWord instance to an object.
|
|
77
|
+
*
|
|
78
|
+
* @returns {Object} The serialized ProminentWord.
|
|
79
|
+
*/
|
|
80
|
+
serialize() {
|
|
81
|
+
return {
|
|
82
|
+
_parseClass: "ProminentWord",
|
|
83
|
+
word: this._word,
|
|
84
|
+
stem: this._stem,
|
|
85
|
+
occurrences: this._occurrences
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Parses the object to a ProminentWord.
|
|
91
|
+
*
|
|
92
|
+
* @param {Object} serialized The serialized object.
|
|
93
|
+
*
|
|
94
|
+
* @returns {ProminentWord} The parsed ProminentWord.
|
|
95
|
+
*/
|
|
96
|
+
static parse(serialized) {
|
|
97
|
+
return new ProminentWord(serialized.word, serialized.stem, serialized.occurrences);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
var _default = exports.default = ProminentWord;
|
|
101
|
+
//# sourceMappingURL=ProminentWord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProminentWord.js","names":["ProminentWord","constructor","word","stem","occurrences","_word","_stem","_occurrences","setWord","getWord","getStem","setOccurrences","numberOfOccurrences","getOccurrences","serialize","_parseClass","parse","serialized","_default","exports","default"],"sources":["../../../src/languageProcessing/values/ProminentWord.js"],"sourcesContent":["/**\n * Represents a prominent word in the context of relevant words.\n*/\nclass ProminentWord {\n\t/**\n\t * Constructs Prominent word object.\n\t *\n\t * @constructor\n\t *\n\t * @param {string} word The word.\n\t * @param {string} [stem] The stem / base form of the word, defaults to the word.\n\t * @param {number} [occurrences] The number of occurrences, defaults to 0.\n\t */\n\tconstructor( word, stem, occurrences ) {\n\t\tthis._word = word;\n\t\tthis._stem = stem ? stem : word;\n\t\tthis._occurrences = occurrences || 0;\n\t}\n\n\t/**\n\t * Sets the word.\n\t *\n\t * @param {string} word The word to set.\n\t *\n\t * @returns {void}.\n\t */\n\tsetWord( word ) {\n\t\tthis._word = word;\n\t}\n\n\t/**\n\t * Returns the word.\n\t *\n\t * @returns {string} The word.\n\t */\n\tgetWord() {\n\t\treturn this._word;\n\t}\n\n\t/**\n\t * Returns the stem of the word.\n\t *\n\t * @returns {string} The stem.\n\t */\n\tgetStem() {\n\t\treturn this._stem;\n\t}\n\n\t/**\n\t * Sets the number of occurrences to the word.\n\t *\n\t * @param {int} numberOfOccurrences The number of occurrences to set.\n\t *\n\t * @returns {void}.\n\t */\n\tsetOccurrences( numberOfOccurrences ) {\n\t\tthis._occurrences = numberOfOccurrences;\n\t}\n\n\t/**\n\t * Returns the amount of occurrences of this word.\n\t *\n\t * @returns {number} The number of occurrences.\n\t */\n\tgetOccurrences() {\n\t\treturn this._occurrences;\n\t}\n\n\t/**\n\t * Serializes the ProminentWord instance to an object.\n\t *\n\t * @returns {Object} The serialized ProminentWord.\n\t */\n\tserialize() {\n\t\treturn {\n\t\t\t_parseClass: \"ProminentWord\",\n\t\t\tword: this._word,\n\t\t\tstem: this._stem,\n\t\t\toccurrences: this._occurrences,\n\t\t};\n\t}\n\n\t/**\n\t * Parses the object to a ProminentWord.\n\t *\n\t * @param {Object} serialized The serialized object.\n\t *\n\t * @returns {ProminentWord} The parsed ProminentWord.\n\t */\n\tstatic parse( serialized ) {\n\t\treturn new ProminentWord( serialized.word, serialized.stem, serialized.occurrences );\n\t}\n}\n\nexport default ProminentWord;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA,MAAMA,aAAa,CAAC;EACnB;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACCC,WAAWA,CAAEC,IAAI,EAAEC,IAAI,EAAEC,WAAW,EAAG;IACtC,IAAI,CAACC,KAAK,GAAGH,IAAI;IACjB,IAAI,CAACI,KAAK,GAAGH,IAAI,GAAGA,IAAI,GAAGD,IAAI;IAC/B,IAAI,CAACK,YAAY,GAAGH,WAAW,IAAI,CAAC;EACrC;;EAEA;AACD;AACA;AACA;AACA;AACA;AACA;EACCI,OAAOA,CAAEN,IAAI,EAAG;IACf,IAAI,CAACG,KAAK,GAAGH,IAAI;EAClB;;EAEA;AACD;AACA;AACA;AACA;EACCO,OAAOA,CAAA,EAAG;IACT,OAAO,IAAI,CAACJ,KAAK;EAClB;;EAEA;AACD;AACA;AACA;AACA;EACCK,OAAOA,CAAA,EAAG;IACT,OAAO,IAAI,CAACJ,KAAK;EAClB;;EAEA;AACD;AACA;AACA;AACA;AACA;AACA;EACCK,cAAcA,CAAEC,mBAAmB,EAAG;IACrC,IAAI,CAACL,YAAY,GAAGK,mBAAmB;EACxC;;EAEA;AACD;AACA;AACA;AACA;EACCC,cAAcA,CAAA,EAAG;IAChB,OAAO,IAAI,CAACN,YAAY;EACzB;;EAEA;AACD;AACA;AACA;AACA;EACCO,SAASA,CAAA,EAAG;IACX,OAAO;MACNC,WAAW,EAAE,eAAe;MAC5Bb,IAAI,EAAE,IAAI,CAACG,KAAK;MAChBF,IAAI,EAAE,IAAI,CAACG,KAAK;MAChBF,WAAW,EAAE,IAAI,CAACG;IACnB,CAAC;EACF;;EAEA;AACD;AACA;AACA;AACA;AACA;AACA;EACC,OAAOS,KAAKA,CAAEC,UAAU,EAAG;IAC1B,OAAO,IAAIjB,aAAa,CAAEiB,UAAU,CAACf,IAAI,EAAEe,UAAU,CAACd,IAAI,EAAEc,UAAU,CAACb,WAAY,CAAC;EACrF;AACD;AAAC,IAAAc,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEcpB,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Construct the Sentence object and set the sentence text.
|
|
9
|
+
*
|
|
10
|
+
* @param {string} sentence The text of the sentence.
|
|
11
|
+
* @constructor
|
|
12
|
+
*/
|
|
13
|
+
class Sentence {
|
|
14
|
+
/**
|
|
15
|
+
* Constructor.
|
|
16
|
+
*
|
|
17
|
+
* @param {string} sentence The sentence.
|
|
18
|
+
* @constructor
|
|
19
|
+
*/
|
|
20
|
+
constructor(sentence) {
|
|
21
|
+
this._sentenceText = sentence || "";
|
|
22
|
+
this._isPassive = false;
|
|
23
|
+
this._clauses = [];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns the sentence text.
|
|
28
|
+
*
|
|
29
|
+
* @returns {string} The sentence.
|
|
30
|
+
*/
|
|
31
|
+
getSentenceText() {
|
|
32
|
+
return this._sentenceText;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Returns the passiveness of a sentence.
|
|
37
|
+
*
|
|
38
|
+
* @returns {boolean} True if passive, otherwise returns false.
|
|
39
|
+
*/
|
|
40
|
+
isPassive() {
|
|
41
|
+
return this._isPassive;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Sets the passiveness of the sentence.
|
|
46
|
+
*
|
|
47
|
+
* @param {boolean} passive Whether the sentence is passive or not.
|
|
48
|
+
* @returns {void}
|
|
49
|
+
*/
|
|
50
|
+
setPassive(passive) {
|
|
51
|
+
this._isPassive = passive;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Returns an array of clauses.
|
|
56
|
+
*
|
|
57
|
+
* @returns {Clause[]} The clauses of the sentence.
|
|
58
|
+
*/
|
|
59
|
+
getClauses() {
|
|
60
|
+
return this._clauses;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Sets the clauses.
|
|
65
|
+
*
|
|
66
|
+
* @param {Clause[]} clauses The clauses of the sentence.
|
|
67
|
+
*
|
|
68
|
+
* @returns {void}
|
|
69
|
+
*/
|
|
70
|
+
setClauses(clauses) {
|
|
71
|
+
this._clauses = clauses;
|
|
72
|
+
|
|
73
|
+
// Directly set the sentence passiveness based on the passiveness of the clauses that are just set.
|
|
74
|
+
this.setSentencePassiveness();
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Sets the passiveness of the sentence. A sentence is passive if it contains at least one passive clause.
|
|
79
|
+
*
|
|
80
|
+
* @returns {void}
|
|
81
|
+
*/
|
|
82
|
+
setSentencePassiveness() {
|
|
83
|
+
const passiveClauses = this.getClauses().filter(clause => clause.isPassive() === true);
|
|
84
|
+
this.setPassive(passiveClauses.length > 0);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Serializes the Sentence instance to an object.
|
|
89
|
+
*
|
|
90
|
+
* @returns {Object} The serialized Sentence.
|
|
91
|
+
*/
|
|
92
|
+
serialize() {
|
|
93
|
+
return {
|
|
94
|
+
_parseClass: "Sentence",
|
|
95
|
+
sentenceText: this._sentenceText,
|
|
96
|
+
isPassive: this._isPassive,
|
|
97
|
+
clauses: this._clauses
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Parses the object to a Sentence.
|
|
103
|
+
*
|
|
104
|
+
* @param {Object} serialized The serialized object.
|
|
105
|
+
*
|
|
106
|
+
* @returns {Sentence} The parsed Sentence.
|
|
107
|
+
*/
|
|
108
|
+
static parse(serialized) {
|
|
109
|
+
const sentence = new Sentence(serialized.sentenceText);
|
|
110
|
+
sentence.setClauses(serialized.clauses);
|
|
111
|
+
sentence.setPassive(serialized.isPassive);
|
|
112
|
+
return sentence;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
var _default = exports.default = Sentence;
|
|
116
|
+
//# sourceMappingURL=Sentence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sentence.js","names":["Sentence","constructor","sentence","_sentenceText","_isPassive","_clauses","getSentenceText","isPassive","setPassive","passive","getClauses","setClauses","clauses","setSentencePassiveness","passiveClauses","filter","clause","length","serialize","_parseClass","sentenceText","parse","serialized","_default","exports","default"],"sources":["../../../src/languageProcessing/values/Sentence.js"],"sourcesContent":["/**\n * Construct the Sentence object and set the sentence text.\n *\n * @param {string} sentence The text of the sentence.\n * @constructor\n */\nclass Sentence {\n\t/**\n\t * Constructor.\n\t *\n\t * @param {string} sentence The sentence.\n\t * @constructor\n\t */\n\tconstructor( sentence ) {\n\t\tthis._sentenceText = sentence || \"\";\n\t\tthis._isPassive = false;\n\t\tthis._clauses = [];\n\t}\n\n\t/**\n\t * Returns the sentence text.\n\t *\n\t * @returns {string} The sentence.\n\t */\n\tgetSentenceText() {\n\t\treturn this._sentenceText;\n\t}\n\n\t/**\n\t * Returns the passiveness of a sentence.\n\t *\n\t * @returns {boolean} True if passive, otherwise returns false.\n\t */\n\tisPassive() {\n\t\treturn this._isPassive;\n\t}\n\n\t/**\n\t * Sets the passiveness of the sentence.\n\t *\n\t * @param {boolean} passive Whether the sentence is passive or not.\n\t * @returns {void}\n\t */\n\tsetPassive( passive ) {\n\t\tthis._isPassive = passive;\n\t}\n\n\t/**\n\t * Returns an array of clauses.\n\t *\n\t * @returns {Clause[]} The clauses of the sentence.\n\t */\n\tgetClauses() {\n\t\treturn this._clauses;\n\t}\n\n\t/**\n\t * Sets the clauses.\n\t *\n\t * @param {Clause[]} clauses The clauses of the sentence.\n\t *\n\t * @returns {void}\n\t */\n\tsetClauses( clauses ) {\n\t\tthis._clauses = clauses;\n\n\t\t// Directly set the sentence passiveness based on the passiveness of the clauses that are just set.\n\t\tthis.setSentencePassiveness();\n\t}\n\n\t/**\n\t * Sets the passiveness of the sentence. A sentence is passive if it contains at least one passive clause.\n\t *\n\t * @returns {void}\n\t */\n\tsetSentencePassiveness() {\n\t\tconst passiveClauses = this.getClauses().filter( clause => clause.isPassive() === true );\n\t\tthis.setPassive( passiveClauses.length > 0 );\n\t}\n\n\t/**\n\t * Serializes the Sentence instance to an object.\n\t *\n\t * @returns {Object} The serialized Sentence.\n\t */\n\tserialize() {\n\t\treturn {\n\t\t\t_parseClass: \"Sentence\",\n\t\t\tsentenceText: this._sentenceText,\n\t\t\tisPassive: this._isPassive,\n\t\t\tclauses: this._clauses,\n\t\t};\n\t}\n\n\t/**\n\t * Parses the object to a Sentence.\n\t *\n\t * @param {Object} serialized The serialized object.\n\t *\n\t * @returns {Sentence} The parsed Sentence.\n\t */\n\tstatic parse( serialized ) {\n\t\tconst sentence = new Sentence( serialized.sentenceText );\n\t\tsentence.setClauses( serialized.clauses );\n\t\tsentence.setPassive( serialized.isPassive );\n\n\t\treturn sentence;\n\t}\n}\n\nexport default Sentence;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMA,QAAQ,CAAC;EACd;AACD;AACA;AACA;AACA;AACA;EACCC,WAAWA,CAAEC,QAAQ,EAAG;IACvB,IAAI,CAACC,aAAa,GAAGD,QAAQ,IAAI,EAAE;IACnC,IAAI,CAACE,UAAU,GAAG,KAAK;IACvB,IAAI,CAACC,QAAQ,GAAG,EAAE;EACnB;;EAEA;AACD;AACA;AACA;AACA;EACCC,eAAeA,CAAA,EAAG;IACjB,OAAO,IAAI,CAACH,aAAa;EAC1B;;EAEA;AACD;AACA;AACA;AACA;EACCI,SAASA,CAAA,EAAG;IACX,OAAO,IAAI,CAACH,UAAU;EACvB;;EAEA;AACD;AACA;AACA;AACA;AACA;EACCI,UAAUA,CAAEC,OAAO,EAAG;IACrB,IAAI,CAACL,UAAU,GAAGK,OAAO;EAC1B;;EAEA;AACD;AACA;AACA;AACA;EACCC,UAAUA,CAAA,EAAG;IACZ,OAAO,IAAI,CAACL,QAAQ;EACrB;;EAEA;AACD;AACA;AACA;AACA;AACA;AACA;EACCM,UAAUA,CAAEC,OAAO,EAAG;IACrB,IAAI,CAACP,QAAQ,GAAGO,OAAO;;IAEvB;IACA,IAAI,CAACC,sBAAsB,CAAC,CAAC;EAC9B;;EAEA;AACD;AACA;AACA;AACA;EACCA,sBAAsBA,CAAA,EAAG;IACxB,MAAMC,cAAc,GAAG,IAAI,CAACJ,UAAU,CAAC,CAAC,CAACK,MAAM,CAAEC,MAAM,IAAIA,MAAM,CAACT,SAAS,CAAC,CAAC,KAAK,IAAK,CAAC;IACxF,IAAI,CAACC,UAAU,CAAEM,cAAc,CAACG,MAAM,GAAG,CAAE,CAAC;EAC7C;;EAEA;AACD;AACA;AACA;AACA;EACCC,SAASA,CAAA,EAAG;IACX,OAAO;MACNC,WAAW,EAAE,UAAU;MACvBC,YAAY,EAAE,IAAI,CAACjB,aAAa;MAChCI,SAAS,EAAE,IAAI,CAACH,UAAU;MAC1BQ,OAAO,EAAE,IAAI,CAACP;IACf,CAAC;EACF;;EAEA;AACD;AACA;AACA;AACA;AACA;AACA;EACC,OAAOgB,KAAKA,CAAEC,UAAU,EAAG;IAC1B,MAAMpB,QAAQ,GAAG,IAAIF,QAAQ,CAAEsB,UAAU,CAACF,YAAa,CAAC;IACxDlB,QAAQ,CAACS,UAAU,CAAEW,UAAU,CAACV,OAAQ,CAAC;IACzCV,QAAQ,CAACM,UAAU,CAAEc,UAAU,CAACf,SAAU,CAAC;IAE3C,OAAOL,QAAQ;EAChB;AACD;AAAC,IAAAqB,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEczB,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "Clause", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _Clause.default;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "ProminentWord", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _ProminentWord.default;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "Sentence", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _Sentence.default;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var _Clause = _interopRequireDefault(require("./Clause"));
|
|
25
|
+
var _ProminentWord = _interopRequireDefault(require("./ProminentWord"));
|
|
26
|
+
var _Sentence = _interopRequireDefault(require("./Sentence"));
|
|
27
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_Clause","_interopRequireDefault","require","_ProminentWord","_Sentence","e","__esModule","default"],"sources":["../../../src/languageProcessing/values/index.js"],"sourcesContent":["import Clause from \"./Clause\";\nimport ProminentWord from \"./ProminentWord\";\nimport Sentence from \"./Sentence\";\n\nexport {\n\tClause,\n\tProminentWord,\n\tSentence,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAkC,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = _default;
|
|
7
|
+
/**
|
|
8
|
+
* Marks a text with HTML tags
|
|
9
|
+
*
|
|
10
|
+
* @param {string} text The unmarked text.
|
|
11
|
+
* @returns {string} The marked text.
|
|
12
|
+
*/
|
|
13
|
+
function _default(text) {
|
|
14
|
+
return "<yoastmark class='yoast-text-mark'>" + text + "</yoastmark>";
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=addMark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addMark.js","names":["_default","text"],"sources":["../../src/markers/addMark.js"],"sourcesContent":["/**\n * Marks a text with HTML tags\n *\n * @param {string} text The unmarked text.\n * @returns {string} The marked text.\n */\nexport default function( text ) {\n\treturn \"<yoastmark class='yoast-text-mark'>\" + text + \"</yoastmark>\";\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACe,SAAAA,SAAUC,IAAI,EAAG;EAC/B,OAAO,qCAAqC,GAAGA,IAAI,GAAG,cAAc;AACrE","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = _default;
|
|
7
|
+
var _stripWordBoundaries = require("../languageProcessing/helpers/sanitize/stripWordBoundaries");
|
|
8
|
+
var _lodash = require("lodash");
|
|
9
|
+
/**
|
|
10
|
+
* Marks a text with HTML tags, deals with word boundaries that were matched by regexes, but which should not be marked.
|
|
11
|
+
*
|
|
12
|
+
* @param {string} text The unmarked text.
|
|
13
|
+
*
|
|
14
|
+
* @returns {string} The marked text.
|
|
15
|
+
*/
|
|
16
|
+
function _default(text) {
|
|
17
|
+
// Strip the word boundaries at the start of the text.
|
|
18
|
+
const strippedTextStart = (0, _stripWordBoundaries.stripWordBoundariesStart)(text);
|
|
19
|
+
let wordBoundaryStart = "";
|
|
20
|
+
let wordBoundaryEnd = "";
|
|
21
|
+
|
|
22
|
+
// Get the actual word boundaries from the start of the text.
|
|
23
|
+
if (strippedTextStart !== text) {
|
|
24
|
+
const wordBoundaryStartIndex = text.search((0, _lodash.escapeRegExp)(strippedTextStart));
|
|
25
|
+
wordBoundaryStart = text.substring(0, wordBoundaryStartIndex);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// Strip word boundaries at the end of the text.
|
|
29
|
+
const strippedTextEnd = (0, _stripWordBoundaries.stripWordBoundariesEnd)(strippedTextStart);
|
|
30
|
+
// Get the actual word boundaries from the end of the text.
|
|
31
|
+
if (strippedTextEnd !== strippedTextStart) {
|
|
32
|
+
const wordBoundaryEndIndex = strippedTextStart.search((0, _lodash.escapeRegExp)(strippedTextEnd)) + strippedTextEnd.length;
|
|
33
|
+
wordBoundaryEnd = strippedTextStart.substring(wordBoundaryEndIndex);
|
|
34
|
+
}
|
|
35
|
+
return wordBoundaryStart + "<yoastmark class='yoast-text-mark'>" + strippedTextEnd + "</yoastmark>" + wordBoundaryEnd;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=addMarkSingleWord.js.map
|