axyseo 2.0.0-alpha.0.0.19 → 2.0.0-alpha.0.0.2
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/.browserslistrc +1 -0
- package/.gitattributes +1 -0
- package/babel.config.js +3 -0
- package/eslint.config.mjs +119 -0
- package/package.json +2 -13
- package/src/bundledPlugins/index.js +5 -0
- package/src/bundledPlugins/previouslyUsedKeywords.js +192 -0
- package/src/config/diacritics.js +106 -0
- package/src/config/getTransliterations.js +1447 -0
- package/src/config/transliterationsWPstyle.js +774 -0
- package/src/config/wordBoundaries.js +23 -0
- package/src/config/wordBoundariesWithoutPunctuation.js +9 -0
- package/src/const/analysis.js +41 -0
- package/src/errors/invalidType.js +14 -0
- package/src/errors/missingArgument.js +14 -0
- package/src/helpers/createMeasurementElement.js +40 -0
- package/src/helpers/domManipulation.js +65 -0
- package/src/helpers/errors.js +26 -0
- package/src/helpers/factory.js +219 -0
- package/src/helpers/formatNumber.js +12 -0
- package/src/helpers/formatString.js +33 -0
- package/src/helpers/getLanguagesWithWordComplexity.js +8 -0
- package/src/helpers/getLanguagesWithWordFormSupport.js +11 -0
- package/src/helpers/getWordComplexityConfig.js +20 -0
- package/src/helpers/getWordComplexityHelper.js +20 -0
- package/src/helpers/htmlEntities.js +41 -0
- package/src/helpers/includesAny.js +19 -0
- package/src/helpers/index.js +127 -0
- package/src/helpers/shortlinker/Shortlinker.js +75 -0
- package/src/helpers/shortlinker/index.js +1 -0
- package/src/helpers/shortlinker/singleton.js +68 -0
- package/src/helpers/types.js +34 -0
- package/src/index.js +60 -0
- package/src/languageProcessing/AbstractResearcher.js +366 -0
- package/src/languageProcessing/helpers/highlighting/getMarkingsInSentence.js +125 -0
- package/src/languageProcessing/helpers/html/getFieldsToMark.js +29 -0
- package/src/languageProcessing/helpers/html/getSubheadingTexts.js +47 -0
- package/src/languageProcessing/helpers/html/getSubheadings.js +95 -0
- package/src/languageProcessing/helpers/html/html.js +176 -0
- package/src/languageProcessing/helpers/html/htmlParser.js +145 -0
- package/src/languageProcessing/helpers/html/matchParagraphs.js +62 -0
- package/src/languageProcessing/helpers/html/normalizeHTML.js +16 -0
- package/src/languageProcessing/helpers/image/getAltAttribute.js +20 -0
- package/src/languageProcessing/helpers/image/getImagesInTree.js +16 -0
- package/src/languageProcessing/helpers/image/imageInText.js +19 -0
- package/src/languageProcessing/helpers/index.js +12 -0
- package/src/languageProcessing/helpers/language/getLanguage.js +9 -0
- package/src/languageProcessing/helpers/link/checkNofollow.js +38 -0
- package/src/languageProcessing/helpers/link/getAnchorsFromText.js +32 -0
- package/src/languageProcessing/helpers/link/getLinkType.js +32 -0
- package/src/languageProcessing/helpers/match/findKeywordFormsInString.js +101 -0
- package/src/languageProcessing/helpers/match/isDoubleQuoted.js +13 -0
- package/src/languageProcessing/helpers/match/matchTextWithArray.js +36 -0
- package/src/languageProcessing/helpers/match/matchTextWithTransliteration.js +58 -0
- package/src/languageProcessing/helpers/match/matchTextWithWord.js +45 -0
- package/src/languageProcessing/helpers/match/matchWordFormsWithSentence.js +164 -0
- package/src/languageProcessing/helpers/match/processExactMatchRequest.js +20 -0
- package/src/languageProcessing/helpers/morphology/baseStemmer.js +11 -0
- package/src/languageProcessing/helpers/morphology/buildFormRule.js +19 -0
- package/src/languageProcessing/helpers/morphology/buildTopicStems.js +169 -0
- package/src/languageProcessing/helpers/morphology/createRulesFromArrays.js +45 -0
- package/src/languageProcessing/helpers/morphology/exceptionListHelpers.js +65 -0
- package/src/languageProcessing/helpers/morphology/findMatchingEndingInArray.js +24 -0
- package/src/languageProcessing/helpers/morphology/flattenSortLength.js +14 -0
- package/src/languageProcessing/helpers/morphology/getAllWordsFromPaper.js +39 -0
- package/src/languageProcessing/helpers/morphology/regexHelpers.js +44 -0
- package/src/languageProcessing/helpers/morphology/stemHelpers.js +38 -0
- package/src/languageProcessing/helpers/morphology/stemPrefixedFunctionWords.js +31 -0
- package/src/languageProcessing/helpers/passiveVoice/periphrastic/directPrecedenceException.js +36 -0
- package/src/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/getClausesSplitOnStopWords.js +113 -0
- package/src/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/nonDirectParticiplePrecedenceException.js +45 -0
- package/src/languageProcessing/helpers/passiveVoice/periphrastic/getClauses.js +231 -0
- package/src/languageProcessing/helpers/passiveVoice/periphrastic/getIndicesWithRegex.js +20 -0
- package/src/languageProcessing/helpers/passiveVoice/periphrastic/matchRegularParticiples.js +23 -0
- package/src/languageProcessing/helpers/passiveVoice/periphrastic/precedenceException.js +40 -0
- package/src/languageProcessing/helpers/prominentWords/determineProminentWords.js +238 -0
- package/src/languageProcessing/helpers/regex/createRegexFromArray.js +35 -0
- package/src/languageProcessing/helpers/regex/createRegexFromDoubleArray.js +34 -0
- package/src/languageProcessing/helpers/regex/createWordRegex.js +30 -0
- package/src/languageProcessing/helpers/regex/matchStringWithRegex.js +19 -0
- package/src/languageProcessing/helpers/regex/searchAndReplaceWithOneRegex.js +14 -0
- package/src/languageProcessing/helpers/sanitize/doubleQuotes.js +12 -0
- package/src/languageProcessing/helpers/sanitize/filterShortcodesFromTree.js +131 -0
- package/src/languageProcessing/helpers/sanitize/mergeListItems.js +24 -0
- package/src/languageProcessing/helpers/sanitize/parseSynonyms.js +20 -0
- package/src/languageProcessing/helpers/sanitize/quotes.js +46 -0
- package/src/languageProcessing/helpers/sanitize/removeEmailAddresses.js +12 -0
- package/src/languageProcessing/helpers/sanitize/removePunctuation.js +64 -0
- package/src/languageProcessing/helpers/sanitize/removePunctuationExceptQuotes.js +18 -0
- package/src/languageProcessing/helpers/sanitize/removeSentenceTerminators.js +13 -0
- package/src/languageProcessing/helpers/sanitize/removeURLs.js +13 -0
- package/src/languageProcessing/helpers/sanitize/sanitizeLineBreakTag.js +11 -0
- package/src/languageProcessing/helpers/sanitize/sanitizeString.js +18 -0
- package/src/languageProcessing/helpers/sanitize/stripHTMLTags.js +57 -0
- package/src/languageProcessing/helpers/sanitize/stripNonTextTags.js +15 -0
- package/src/languageProcessing/helpers/sanitize/stripNumbers.js +21 -0
- package/src/languageProcessing/helpers/sanitize/stripSpaces.js +23 -0
- package/src/languageProcessing/helpers/sanitize/stripWordBoundaries.js +65 -0
- package/src/languageProcessing/helpers/sanitize/unifyWhitespace.js +61 -0
- package/src/languageProcessing/helpers/sentence/SentenceTokenizer.js +640 -0
- package/src/languageProcessing/helpers/sentence/countSentences.js +20 -0
- package/src/languageProcessing/helpers/sentence/getSentences.js +65 -0
- package/src/languageProcessing/helpers/sentence/getSentencesFromTree.js +55 -0
- package/src/languageProcessing/helpers/sentence/memoizedSentenceTokenizer.js +28 -0
- package/src/languageProcessing/helpers/sentence/sentencesLength.js +31 -0
- package/src/languageProcessing/helpers/syllables/DeviationFragment.js +112 -0
- package/src/languageProcessing/helpers/syllables/countSyllables.js +182 -0
- package/src/languageProcessing/helpers/syllables/syllableCountIterator.js +56 -0
- package/src/languageProcessing/helpers/syllables/syllableCountStep.js +68 -0
- package/src/languageProcessing/helpers/transform/transformWordsWithHyphens.js +17 -0
- package/src/languageProcessing/helpers/transliterate/replaceDiacritics.js +22 -0
- package/src/languageProcessing/helpers/transliterate/specialCharacterMappings.js +214 -0
- package/src/languageProcessing/helpers/transliterate/transliterate.js +20 -0
- package/src/languageProcessing/helpers/transliterate/transliterateWPstyle.js +21 -0
- package/src/languageProcessing/helpers/url/parseSlug.js +10 -0
- package/src/languageProcessing/helpers/url/url.js +172 -0
- package/src/languageProcessing/helpers/word/addWordboundary.js +37 -0
- package/src/languageProcessing/helpers/word/areWordsInSentence.js +16 -0
- package/src/languageProcessing/helpers/word/countMetaDescriptionLength.js +18 -0
- package/src/languageProcessing/helpers/word/countWords.js +14 -0
- package/src/languageProcessing/helpers/word/createPunctuationTokens.js +42 -0
- package/src/languageProcessing/helpers/word/filterWordsFromArray.js +15 -0
- package/src/languageProcessing/helpers/word/followsIndex.js +25 -0
- package/src/languageProcessing/helpers/word/getAllWordsFromTree.js +23 -0
- package/src/languageProcessing/helpers/word/getWords.js +43 -0
- package/src/languageProcessing/helpers/word/includesIndex.js +30 -0
- package/src/languageProcessing/helpers/word/indices.js +146 -0
- package/src/languageProcessing/helpers/word/markWordsInSentences.js +173 -0
- package/src/languageProcessing/helpers/word/matchWordInSentence.js +61 -0
- package/src/languageProcessing/helpers/word/splitIntoTokens.js +46 -0
- package/src/languageProcessing/index.js +91 -0
- package/src/languageProcessing/languages/_default/Researcher.js +34 -0
- package/src/languageProcessing/languages/_default/helpers/getStemmer.js +11 -0
- package/src/languageProcessing/languages/ar/Researcher.js +46 -0
- package/src/languageProcessing/languages/ar/config/firstWordExceptions.js +14 -0
- package/src/languageProcessing/languages/ar/config/functionWords.js +329 -0
- package/src/languageProcessing/languages/ar/config/internal/passiveVerbsWithLongVowel.js +570 -0
- package/src/languageProcessing/languages/ar/config/prefixedFunctionWords.js +5 -0
- package/src/languageProcessing/languages/ar/config/transitionWords.js +19 -0
- package/src/languageProcessing/languages/ar/config/twoPartTransitionWords.js +7 -0
- package/src/languageProcessing/languages/ar/helpers/createBasicWordForms.js +32 -0
- package/src/languageProcessing/languages/ar/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/ar/helpers/internal/stem.js +632 -0
- package/src/languageProcessing/languages/ar/helpers/isPassiveSentence.js +33 -0
- package/src/languageProcessing/languages/ca/Researcher.js +43 -0
- package/src/languageProcessing/languages/ca/config/sentenceLength.js +3 -0
- package/src/languageProcessing/languages/ca/config/transitionWords.js +31 -0
- package/src/languageProcessing/languages/ca/config/twoPartTransitionWords.js +7 -0
- package/src/languageProcessing/languages/ca/helpers/getStemmer.js +11 -0
- package/src/languageProcessing/languages/cs/Researcher.js +44 -0
- package/src/languageProcessing/languages/cs/config/firstWordExceptions.js +15 -0
- package/src/languageProcessing/languages/cs/config/functionWords.js +121 -0
- package/src/languageProcessing/languages/cs/config/internal/passiveVoiceAuxiliaries.js +38 -0
- package/src/languageProcessing/languages/cs/config/internal/passiveVoiceEndings.js +54 -0
- package/src/languageProcessing/languages/cs/config/stopWords.js +42 -0
- package/src/languageProcessing/languages/cs/config/transitionWords.js +26 -0
- package/src/languageProcessing/languages/cs/config/twoPartTransitionWords.js +8 -0
- package/src/languageProcessing/languages/cs/helpers/getClauses.js +26 -0
- package/src/languageProcessing/languages/cs/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/cs/helpers/internal/getParticiples.js +16 -0
- package/src/languageProcessing/languages/cs/helpers/internal/stem.js +499 -0
- package/src/languageProcessing/languages/cs/values/Clause.js +34 -0
- package/src/languageProcessing/languages/de/Researcher.js +52 -0
- package/src/languageProcessing/languages/de/config/firstWordExceptions.js +17 -0
- package/src/languageProcessing/languages/de/config/functionWords.js +303 -0
- package/src/languageProcessing/languages/de/config/internal/exceptionsParticiplesActive.js +2231 -0
- package/src/languageProcessing/languages/de/config/internal/passiveVoiceAuxiliaries.js +96 -0
- package/src/languageProcessing/languages/de/config/internal/passiveVoiceIrregulars.js +368 -0
- package/src/languageProcessing/languages/de/config/internal/passiveVoiceRegex.js +72 -0
- package/src/languageProcessing/languages/de/config/keyphraseLength.js +11 -0
- package/src/languageProcessing/languages/de/config/stopWords.js +67 -0
- package/src/languageProcessing/languages/de/config/transitionWords.js +31 -0
- package/src/languageProcessing/languages/de/config/twoPartTransitionWords.js +12 -0
- package/src/languageProcessing/languages/de/config/wordComplexity.js +4 -0
- package/src/languageProcessing/languages/de/helpers/calculateFleschReadingScore.js +18 -0
- package/src/languageProcessing/languages/de/helpers/checkIfWordIsComplex.js +40 -0
- package/src/languageProcessing/languages/de/helpers/checkIfWordIsFunction.js +15 -0
- package/src/languageProcessing/languages/de/helpers/getClauses.js +25 -0
- package/src/languageProcessing/languages/de/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/de/helpers/internal/SentenceTokenizer.js +31 -0
- package/src/languageProcessing/languages/de/helpers/internal/detectAndStemRegularParticiple.js +128 -0
- package/src/languageProcessing/languages/de/helpers/internal/determineStem.js +128 -0
- package/src/languageProcessing/languages/de/helpers/internal/getParticiples.js +40 -0
- package/src/languageProcessing/languages/de/helpers/internal/stem.js +215 -0
- package/src/languageProcessing/languages/de/helpers/memoizedSentenceTokenizer.js +28 -0
- package/src/languageProcessing/languages/de/values/Clause.js +85 -0
- package/src/languageProcessing/languages/el/Researcher.js +46 -0
- package/src/languageProcessing/languages/el/config/firstWordExceptions.js +47 -0
- package/src/languageProcessing/languages/el/config/functionWords.js +116 -0
- package/src/languageProcessing/languages/el/config/internal/auxiliaries.js +19 -0
- package/src/languageProcessing/languages/el/config/internal/morphologicalPassiveSuffixes.js +87 -0
- package/src/languageProcessing/languages/el/config/internal/nonPassiveVerbStems.js +138 -0
- package/src/languageProcessing/languages/el/config/stopWords.js +854 -0
- package/src/languageProcessing/languages/el/config/transitionWords.js +26 -0
- package/src/languageProcessing/languages/el/config/twoPartTransitionWords.js +10 -0
- package/src/languageProcessing/languages/el/helpers/getClauses.js +25 -0
- package/src/languageProcessing/languages/el/helpers/getStemmer.js +21 -0
- package/src/languageProcessing/languages/el/helpers/internal/getParticiples.js +20 -0
- package/src/languageProcessing/languages/el/helpers/internal/stem.js +368 -0
- package/src/languageProcessing/languages/el/helpers/isPassiveSentence.js +38 -0
- package/src/languageProcessing/languages/el/values/Clause.js +37 -0
- package/src/languageProcessing/languages/en/Researcher.js +46 -0
- package/src/languageProcessing/languages/en/config/abbreviations.js +55 -0
- package/src/languageProcessing/languages/en/config/firstWordExceptions.js +14 -0
- package/src/languageProcessing/languages/en/config/functionWords.js +186 -0
- package/src/languageProcessing/languages/en/config/internal/passiveVoiceAuxiliaries.js +44 -0
- package/src/languageProcessing/languages/en/config/internal/passiveVoiceIrregulars.js +354 -0
- package/src/languageProcessing/languages/en/config/internal/passiveVoiceNonVerbEndingEd.js +3047 -0
- package/src/languageProcessing/languages/en/config/regularParticiplesRegex.js +5 -0
- package/src/languageProcessing/languages/en/config/stopWords.js +52 -0
- package/src/languageProcessing/languages/en/config/transitionWords.js +48 -0
- package/src/languageProcessing/languages/en/config/twoPartTransitionWords.js +7 -0
- package/src/languageProcessing/languages/en/config/wordComplexity.js +5 -0
- package/src/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js +18 -0
- package/src/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js +43 -0
- package/src/languageProcessing/languages/en/helpers/getClauses.js +49 -0
- package/src/languageProcessing/languages/en/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/en/helpers/internal/determineStem.js +178 -0
- package/src/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js +162 -0
- package/src/languageProcessing/languages/en/helpers/internal/getParticiples.js +25 -0
- package/src/languageProcessing/languages/en/helpers/internal/getVerbStem.js +237 -0
- package/src/languageProcessing/languages/en/values/Clause.js +68 -0
- package/src/languageProcessing/languages/es/Researcher.js +48 -0
- package/src/languageProcessing/languages/es/config/firstWordExceptions.js +16 -0
- package/src/languageProcessing/languages/es/config/functionWords.js +321 -0
- package/src/languageProcessing/languages/es/config/internal/passiveVoiceAuxiliaries.js +60 -0
- package/src/languageProcessing/languages/es/config/internal/passiveVoiceParticiples.js +7327 -0
- package/src/languageProcessing/languages/es/config/sentenceLength.js +3 -0
- package/src/languageProcessing/languages/es/config/stopWords.js +33 -0
- package/src/languageProcessing/languages/es/config/transitionWords.js +40 -0
- package/src/languageProcessing/languages/es/config/twoPartTransitionWords.js +10 -0
- package/src/languageProcessing/languages/es/config/wordComplexity.js +4 -0
- package/src/languageProcessing/languages/es/helpers/calculateFleschReadingScore.js +18 -0
- package/src/languageProcessing/languages/es/helpers/checkIfWordIsComplex.js +56 -0
- package/src/languageProcessing/languages/es/helpers/getClauses.js +29 -0
- package/src/languageProcessing/languages/es/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/es/helpers/internal/checkVerbStemModifications.js +41 -0
- package/src/languageProcessing/languages/es/helpers/internal/getParticiples.js +35 -0
- package/src/languageProcessing/languages/es/helpers/internal/stem.js +793 -0
- package/src/languageProcessing/languages/es/values/Clause.js +47 -0
- package/src/languageProcessing/languages/fa/Researcher.js +47 -0
- package/src/languageProcessing/languages/fa/config/firstWordExceptions.js +12 -0
- package/src/languageProcessing/languages/fa/config/functionWords.js +122 -0
- package/src/languageProcessing/languages/fa/config/internal/participles.js +1429 -0
- package/src/languageProcessing/languages/fa/config/sentenceLength.js +3 -0
- package/src/languageProcessing/languages/fa/config/transitionWords.js +20 -0
- package/src/languageProcessing/languages/fa/config/twoPartTransitionWords.js +9 -0
- package/src/languageProcessing/languages/fa/helpers/createBasicWordForms.js +97 -0
- package/src/languageProcessing/languages/fa/helpers/getStemmer.js +13 -0
- package/src/languageProcessing/languages/fa/helpers/isPassiveSentence.js +14 -0
- package/src/languageProcessing/languages/fr/Researcher.js +46 -0
- package/src/languageProcessing/languages/fr/config/firstWordExceptions.js +16 -0
- package/src/languageProcessing/languages/fr/config/functionWords.js +281 -0
- package/src/languageProcessing/languages/fr/config/internal/exceptionsParticiplesActive.js +1510 -0
- package/src/languageProcessing/languages/fr/config/internal/passiveVoiceAuxiliaries.js +108 -0
- package/src/languageProcessing/languages/fr/config/internal/passiveVoiceIrregulars.js +565 -0
- package/src/languageProcessing/languages/fr/config/stopWords.js +119 -0
- package/src/languageProcessing/languages/fr/config/transitionWords.js +59 -0
- package/src/languageProcessing/languages/fr/config/twoPartTransitionWords.js +15 -0
- package/src/languageProcessing/languages/fr/config/wordComplexity.js +4 -0
- package/src/languageProcessing/languages/fr/helpers/calculateFleschReadingScore.js +18 -0
- package/src/languageProcessing/languages/fr/helpers/checkIfWordIsComplex.js +67 -0
- package/src/languageProcessing/languages/fr/helpers/getClauses.js +34 -0
- package/src/languageProcessing/languages/fr/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/fr/helpers/internal/getParticiples.js +72 -0
- package/src/languageProcessing/languages/fr/helpers/internal/stem.js +633 -0
- package/src/languageProcessing/languages/fr/values/Clause.js +96 -0
- package/src/languageProcessing/languages/he/Researcher.js +50 -0
- package/src/languageProcessing/languages/he/config/firstWordExceptions.js +13 -0
- package/src/languageProcessing/languages/he/config/functionWords.js +564 -0
- package/src/languageProcessing/languages/he/config/internal/regularRootsHufal.js +186 -0
- package/src/languageProcessing/languages/he/config/internal/regularRootsNifal.js +195 -0
- package/src/languageProcessing/languages/he/config/internal/regularRootsPual.js +168 -0
- package/src/languageProcessing/languages/he/config/passiveVoice/regularRootsHufal.js +188 -0
- package/src/languageProcessing/languages/he/config/passiveVoice/regularRootsNifal.js +197 -0
- package/src/languageProcessing/languages/he/config/passiveVoice/regularRootsPual.js +170 -0
- package/src/languageProcessing/languages/he/config/prefixedFunctionWords.js +2 -0
- package/src/languageProcessing/languages/he/config/sentenceLength.js +3 -0
- package/src/languageProcessing/languages/he/config/transitionWords.js +28 -0
- package/src/languageProcessing/languages/he/config/twoPartTransitionWords.js +8 -0
- package/src/languageProcessing/languages/he/helpers/createBasicWordForms.js +33 -0
- package/src/languageProcessing/languages/he/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/he/helpers/internal/stem.js +52 -0
- package/src/languageProcessing/languages/he/helpers/isPassiveSentence.js +96 -0
- package/src/languageProcessing/languages/he/helpers/stem.js +52 -0
- package/src/languageProcessing/languages/hu/Researcher.js +48 -0
- package/src/languageProcessing/languages/hu/config/firstWordExceptions.js +31 -0
- package/src/languageProcessing/languages/hu/config/functionWords.js +284 -0
- package/src/languageProcessing/languages/hu/config/internal/auxiliaries.js +97 -0
- package/src/languageProcessing/languages/hu/config/internal/morphologicalPassiveAffixes.js +125 -0
- package/src/languageProcessing/languages/hu/config/internal/nonPassivesInVaAndVe.js +265 -0
- package/src/languageProcessing/languages/hu/config/internal/odikVerbs.js +273 -0
- package/src/languageProcessing/languages/hu/config/internal/participles.js +412 -0
- package/src/languageProcessing/languages/hu/config/stopWords.js +213 -0
- package/src/languageProcessing/languages/hu/config/transitionWords.js +42 -0
- package/src/languageProcessing/languages/hu/config/twoPartTransitionWords.js +34 -0
- package/src/languageProcessing/languages/hu/helpers/getClauses.js +25 -0
- package/src/languageProcessing/languages/hu/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/hu/helpers/internal/getParticiples.js +21 -0
- package/src/languageProcessing/languages/hu/helpers/internal/stem.js +389 -0
- package/src/languageProcessing/languages/hu/helpers/isPassiveSentence.js +54 -0
- package/src/languageProcessing/languages/hu/values/Clause.js +41 -0
- package/src/languageProcessing/languages/id/Researcher.js +46 -0
- package/src/languageProcessing/languages/id/config/firstWordExceptions.js +13 -0
- package/src/languageProcessing/languages/id/config/functionWords.js +202 -0
- package/src/languageProcessing/languages/id/config/internal/nonPassiveVerbsStartingDi.js +215 -0
- package/src/languageProcessing/languages/id/config/transitionWords.js +62 -0
- package/src/languageProcessing/languages/id/config/twoPartTransitionWords.js +13 -0
- package/src/languageProcessing/languages/id/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/id/helpers/internal/stem.js +462 -0
- package/src/languageProcessing/languages/id/helpers/internal/stemHelpers.js +78 -0
- package/src/languageProcessing/languages/id/helpers/isPassiveSentence.js +39 -0
- package/src/languageProcessing/languages/id/helpers/splitIntoTokensCustom.js +47 -0
- package/src/languageProcessing/languages/it/Researcher.js +48 -0
- package/src/languageProcessing/languages/it/config/firstWordExceptions.js +17 -0
- package/src/languageProcessing/languages/it/config/functionWords.js +277 -0
- package/src/languageProcessing/languages/it/config/internal/passiveVoiceAuxiliaries.js +98 -0
- package/src/languageProcessing/languages/it/config/internal/passiveVoiceParticiples.js +7197 -0
- package/src/languageProcessing/languages/it/config/sentenceLength.js +3 -0
- package/src/languageProcessing/languages/it/config/stopWords.js +57 -0
- package/src/languageProcessing/languages/it/config/transitionWords.js +104 -0
- package/src/languageProcessing/languages/it/config/twoPartTransitionWords.js +9 -0
- package/src/languageProcessing/languages/it/helpers/calculateFleschReadingScore.js +15 -0
- package/src/languageProcessing/languages/it/helpers/getClauses.js +32 -0
- package/src/languageProcessing/languages/it/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/it/helpers/internal/getParticiples.js +34 -0
- package/src/languageProcessing/languages/it/helpers/internal/stem.js +436 -0
- package/src/languageProcessing/languages/it/values/Clause.js +47 -0
- package/src/languageProcessing/languages/ja/Researcher.js +86 -0
- package/src/languageProcessing/languages/ja/config/assessmentApplicabilityCharacterCount.js +4 -0
- package/src/languageProcessing/languages/ja/config/firstWordExceptions.js +8 -0
- package/src/languageProcessing/languages/ja/config/functionWords.js +563 -0
- package/src/languageProcessing/languages/ja/config/keyphraseLength.js +16 -0
- package/src/languageProcessing/languages/ja/config/metaDescriptionLength.js +4 -0
- package/src/languageProcessing/languages/ja/config/paragraphLength.js +10 -0
- package/src/languageProcessing/languages/ja/config/sentenceLength.js +4 -0
- package/src/languageProcessing/languages/ja/config/subheadingsTooLong.js +18 -0
- package/src/languageProcessing/languages/ja/config/textLength.js +47 -0
- package/src/languageProcessing/languages/ja/config/topicLength.js +5 -0
- package/src/languageProcessing/languages/ja/config/transitionWords.js +354 -0
- package/src/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js +98 -0
- package/src/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js +19 -0
- package/src/languageProcessing/languages/ja/customResearches/getWordForms.js +50 -0
- package/src/languageProcessing/languages/ja/customResearches/textLength.js +24 -0
- package/src/languageProcessing/languages/ja/helpers/countCharacters.js +19 -0
- package/src/languageProcessing/languages/ja/helpers/customGetStemmer.js +21 -0
- package/src/languageProcessing/languages/ja/helpers/getContentWords.js +21 -0
- package/src/languageProcessing/languages/ja/helpers/getWords.js +31 -0
- package/src/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js +102 -0
- package/src/languageProcessing/languages/ja/helpers/internal/createWordForms.js +68 -0
- package/src/languageProcessing/languages/ja/helpers/internal/determineStem.js +17 -0
- package/src/languageProcessing/languages/ja/helpers/matchTextWithWord.js +53 -0
- package/src/languageProcessing/languages/ja/helpers/matchTransitionWords.js +25 -0
- package/src/languageProcessing/languages/ja/helpers/memoizedSentenceTokenizer.js +28 -0
- package/src/languageProcessing/languages/ja/helpers/splitIntoTokensCustom.js +20 -0
- package/src/languageProcessing/languages/ja/helpers/wordsCharacterCount.js +13 -0
- package/src/languageProcessing/languages/nb/Researcher.js +45 -0
- package/src/languageProcessing/languages/nb/config/firstWordExceptions.js +12 -0
- package/src/languageProcessing/languages/nb/config/functionWords.js +106 -0
- package/src/languageProcessing/languages/nb/config/internal/participles.js +3127 -0
- package/src/languageProcessing/languages/nb/config/internal/passiveVoiceAuxiliaries.js +15 -0
- package/src/languageProcessing/languages/nb/config/stopWords.js +39 -0
- package/src/languageProcessing/languages/nb/config/transitionWords.js +21 -0
- package/src/languageProcessing/languages/nb/config/twoPartTransitionWords.js +10 -0
- package/src/languageProcessing/languages/nb/helpers/getClauses.js +28 -0
- package/src/languageProcessing/languages/nb/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/nb/helpers/internal/getParticiples.js +24 -0
- package/src/languageProcessing/languages/nb/helpers/internal/stem.js +133 -0
- package/src/languageProcessing/languages/nb/values/Clause.js +43 -0
- package/src/languageProcessing/languages/nl/Researcher.js +48 -0
- package/src/languageProcessing/languages/nl/config/firstWordExceptions.js +15 -0
- package/src/languageProcessing/languages/nl/config/functionWords.js +233 -0
- package/src/languageProcessing/languages/nl/config/internal/nonParticiples.js +2515 -0
- package/src/languageProcessing/languages/nl/config/internal/passiveVoiceAuxiliaries.js +13 -0
- package/src/languageProcessing/languages/nl/config/internal/passiveVoiceIrregulars.js +474 -0
- package/src/languageProcessing/languages/nl/config/keyphraseLength.js +10 -0
- package/src/languageProcessing/languages/nl/config/stopWords.js +35 -0
- package/src/languageProcessing/languages/nl/config/transitionWords.js +22 -0
- package/src/languageProcessing/languages/nl/config/twoPartTransitionWords.js +8 -0
- package/src/languageProcessing/languages/nl/helpers/calculateFleschReadingScore.js +15 -0
- package/src/languageProcessing/languages/nl/helpers/getClauses.js +25 -0
- package/src/languageProcessing/languages/nl/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/nl/helpers/internal/checkExceptionsWithFullForms.js +128 -0
- package/src/languageProcessing/languages/nl/helpers/internal/detectAndStemRegularParticiple.js +324 -0
- package/src/languageProcessing/languages/nl/helpers/internal/detectAndStemSuffixes.js +164 -0
- package/src/languageProcessing/languages/nl/helpers/internal/determineStem.js +133 -0
- package/src/languageProcessing/languages/nl/helpers/internal/getParticiples.js +25 -0
- package/src/languageProcessing/languages/nl/helpers/internal/getStemWordsWithTAndDEnding.js +183 -0
- package/src/languageProcessing/languages/nl/helpers/internal/stem.js +146 -0
- package/src/languageProcessing/languages/nl/helpers/internal/stemModificationHelpers.js +109 -0
- package/src/languageProcessing/languages/nl/helpers/internal/stemTOrDFromEndOfWord.js +65 -0
- package/src/languageProcessing/languages/nl/values/Clause.js +62 -0
- package/src/languageProcessing/languages/pl/Researcher.js +47 -0
- package/src/languageProcessing/languages/pl/config/firstWordExceptions.js +12 -0
- package/src/languageProcessing/languages/pl/config/functionWords.js +421 -0
- package/src/languageProcessing/languages/pl/config/internal/auxiliaries.js +85 -0
- package/src/languageProcessing/languages/pl/config/internal/participles.js +26433 -0
- package/src/languageProcessing/languages/pl/config/sentenceLength.js +10 -0
- package/src/languageProcessing/languages/pl/config/stopWords.js +36 -0
- package/src/languageProcessing/languages/pl/config/transitionWords.js +42 -0
- package/src/languageProcessing/languages/pl/config/twoPartTransitionWords.js +8 -0
- package/src/languageProcessing/languages/pl/helpers/getClauses.js +25 -0
- package/src/languageProcessing/languages/pl/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/pl/helpers/internal/getParticiples.js +18 -0
- package/src/languageProcessing/languages/pl/helpers/internal/stem.js +161 -0
- package/src/languageProcessing/languages/pl/values/Clause.js +53 -0
- package/src/languageProcessing/languages/pt/Researcher.js +48 -0
- package/src/languageProcessing/languages/pt/config/firstWordExceptions.js +15 -0
- package/src/languageProcessing/languages/pt/config/functionWords.js +226 -0
- package/src/languageProcessing/languages/pt/config/internal/passiveVoiceAuxiliaries.js +66 -0
- package/src/languageProcessing/languages/pt/config/internal/passiveVoiceParticiples.js +4088 -0
- package/src/languageProcessing/languages/pt/config/sentenceLength.js +3 -0
- package/src/languageProcessing/languages/pt/config/stopWords.js +50 -0
- package/src/languageProcessing/languages/pt/config/transitionWords.js +34 -0
- package/src/languageProcessing/languages/pt/config/twoPartTransitionWords.js +9 -0
- package/src/languageProcessing/languages/pt/helpers/calculateFleschReadingScore.js +15 -0
- package/src/languageProcessing/languages/pt/helpers/getClauses.js +29 -0
- package/src/languageProcessing/languages/pt/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/pt/helpers/internal/getParticiples.js +35 -0
- package/src/languageProcessing/languages/pt/helpers/internal/stem.js +319 -0
- package/src/languageProcessing/languages/pt/values/Clause.js +43 -0
- package/src/languageProcessing/languages/ru/Researcher.js +48 -0
- package/src/languageProcessing/languages/ru/config/firstWordExceptions.js +14 -0
- package/src/languageProcessing/languages/ru/config/fleschReadingEaseScores.js +20 -0
- package/src/languageProcessing/languages/ru/config/functionWords.js +519 -0
- package/src/languageProcessing/languages/ru/config/internal/participlesShortenedList.js +2914 -0
- package/src/languageProcessing/languages/ru/config/internal/passiveVoiceParticiples.js +6295 -0
- package/src/languageProcessing/languages/ru/config/sentenceLength.js +3 -0
- package/src/languageProcessing/languages/ru/config/transitionWords.js +62 -0
- package/src/languageProcessing/languages/ru/config/twoPartTransitionWords.js +14 -0
- package/src/languageProcessing/languages/ru/helpers/calculateFleschReadingScore.js +16 -0
- package/src/languageProcessing/languages/ru/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/ru/helpers/internal/stem.js +288 -0
- package/src/languageProcessing/languages/ru/helpers/isPassiveSentence.js +14 -0
- package/src/languageProcessing/languages/sk/Researcher.js +46 -0
- package/src/languageProcessing/languages/sk/config/firstWordExceptions.js +14 -0
- package/src/languageProcessing/languages/sk/config/functionWords.js +855 -0
- package/src/languageProcessing/languages/sk/config/internal/nonPassives.js +1074 -0
- package/src/languageProcessing/languages/sk/config/internal/passiveVoiceAuxiliaries.js +22 -0
- package/src/languageProcessing/languages/sk/config/stopWords.js +34 -0
- package/src/languageProcessing/languages/sk/config/transitionWords.js +23 -0
- package/src/languageProcessing/languages/sk/config/twoPartTransitionWords.js +10 -0
- package/src/languageProcessing/languages/sk/helpers/getClauses.js +26 -0
- package/src/languageProcessing/languages/sk/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/sk/helpers/internal/getParticiples.js +16 -0
- package/src/languageProcessing/languages/sk/helpers/internal/stem.js +319 -0
- package/src/languageProcessing/languages/sk/values/Clause.js +39 -0
- package/src/languageProcessing/languages/sv/Researcher.js +45 -0
- package/src/languageProcessing/languages/sv/config/firstWordExceptions.js +15 -0
- package/src/languageProcessing/languages/sv/config/functionWords.js +176 -0
- package/src/languageProcessing/languages/sv/config/internal/passiveVerbs.js +10400 -0
- package/src/languageProcessing/languages/sv/config/keyphraseLength.js +11 -0
- package/src/languageProcessing/languages/sv/config/transitionWords.js +35 -0
- package/src/languageProcessing/languages/sv/config/twoPartTransitionWords.js +8 -0
- package/src/languageProcessing/languages/sv/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/sv/helpers/internal/stem.js +152 -0
- package/src/languageProcessing/languages/sv/helpers/isPassiveSentence.js +14 -0
- package/src/languageProcessing/languages/tr/Researcher.js +44 -0
- package/src/languageProcessing/languages/tr/config/firstWordExceptions.js +13 -0
- package/src/languageProcessing/languages/tr/config/functionWords.js +116 -0
- package/src/languageProcessing/languages/tr/config/internal/nonPassiveExceptions.js +574 -0
- package/src/languageProcessing/languages/tr/config/internal/passiveEndings.js +151 -0
- package/src/languageProcessing/languages/tr/config/sentenceLength.js +7 -0
- package/src/languageProcessing/languages/tr/config/transitionWords.js +42 -0
- package/src/languageProcessing/languages/tr/config/twoPartTransitionWords.js +7 -0
- package/src/languageProcessing/languages/tr/helpers/getStemmer.js +22 -0
- package/src/languageProcessing/languages/tr/helpers/internal/stem.js +20 -0
- package/src/languageProcessing/languages/tr/helpers/isPassiveSentence.js +43 -0
- package/src/languageProcessing/researches/altTagCount.js +70 -0
- package/src/languageProcessing/researches/countSentencesFromText.js +19 -0
- package/src/languageProcessing/researches/findKeyphraseInSEOTitle.js +257 -0
- package/src/languageProcessing/researches/findKeywordInFirstParagraph.js +86 -0
- package/src/languageProcessing/researches/findTransitionWords.js +123 -0
- package/src/languageProcessing/researches/functionWordsInKeyphrase.js +44 -0
- package/src/languageProcessing/researches/getAnchorsWithKeyphrase.js +227 -0
- package/src/languageProcessing/researches/getFleschReadingScore.js +150 -0
- package/src/languageProcessing/researches/getKeywordDensity.js +44 -0
- package/src/languageProcessing/researches/getLinkStatistics.js +54 -0
- package/src/languageProcessing/researches/getLinks.js +18 -0
- package/src/languageProcessing/researches/getLongCenterAlignedTexts.js +37 -0
- package/src/languageProcessing/researches/getParagraphLength.js +44 -0
- package/src/languageProcessing/researches/getParagraphs.js +18 -0
- package/src/languageProcessing/researches/getPassiveVoiceResult.js +129 -0
- package/src/languageProcessing/researches/getProminentWordsForInsights.js +48 -0
- package/src/languageProcessing/researches/getProminentWordsForInternalLinking.js +119 -0
- package/src/languageProcessing/researches/getSentenceBeginnings.js +124 -0
- package/src/languageProcessing/researches/getSubheadingTextLengths.js +59 -0
- package/src/languageProcessing/researches/getWordForms.js +204 -0
- package/src/languageProcessing/researches/h1s.js +10 -0
- package/src/languageProcessing/researches/imageCount.js +16 -0
- package/src/languageProcessing/researches/index.js +5 -0
- package/src/languageProcessing/researches/keyphraseDistribution.js +249 -0
- package/src/languageProcessing/researches/keyphraseLength.js +17 -0
- package/src/languageProcessing/researches/keywordCount.js +134 -0
- package/src/languageProcessing/researches/keywordCountInUrl.js +57 -0
- package/src/languageProcessing/researches/matchKeywordInSubheadings.js +62 -0
- package/src/languageProcessing/researches/metaDescriptionKeyword.js +85 -0
- package/src/languageProcessing/researches/metaDescriptionLength.js +12 -0
- package/src/languageProcessing/researches/pageTitleWidth.js +11 -0
- package/src/languageProcessing/researches/readingTime.js +82 -0
- package/src/languageProcessing/researches/sentences.js +20 -0
- package/src/languageProcessing/researches/videoCount.js +32 -0
- package/src/languageProcessing/researches/wordComplexity.js +129 -0
- package/src/languageProcessing/researches/wordCountInText.js +29 -0
- package/src/languageProcessing/values/Clause.js +108 -0
- package/src/languageProcessing/values/ProminentWord.js +95 -0
- package/src/languageProcessing/values/Sentence.js +111 -0
- package/src/languageProcessing/values/index.js +9 -0
- package/src/markers/addMark.js +9 -0
- package/src/markers/addMarkSingleWord.js +32 -0
- package/src/markers/index.js +7 -0
- package/src/markers/removeDuplicateMarks.js +27 -0
- package/src/markers/removeMarks.js +11 -0
- package/src/parse/build/build.js +52 -0
- package/src/parse/build/index.js +10 -0
- package/src/parse/build/private/adapt.js +113 -0
- package/src/parse/build/private/adaptAttributes.js +36 -0
- package/src/parse/build/private/alwaysFilterElements.js +75 -0
- package/src/parse/build/private/combineIntoImplicitParagraphs.js +130 -0
- package/src/parse/build/private/filterBeforeTokenizing.js +32 -0
- package/src/parse/build/private/filterHelpers.js +44 -0
- package/src/parse/build/private/filterTree.js +42 -0
- package/src/parse/build/private/getTextElementPositions.js +184 -0
- package/src/parse/build/private/helpers/parseClassAttribute.js +9 -0
- package/src/parse/build/private/isPhrasingContent.js +28 -0
- package/src/parse/build/private/parseBlocks.js +151 -0
- package/src/parse/build/private/tokenize.js +74 -0
- package/src/parse/language/LanguageProcessor.js +74 -0
- package/src/parse/structure/Heading.js +26 -0
- package/src/parse/structure/Node.js +69 -0
- package/src/parse/structure/Paragraph.js +48 -0
- package/src/parse/structure/Sentence.js +30 -0
- package/src/parse/structure/SourceCodeLocation.js +41 -0
- package/src/parse/structure/Text.js +27 -0
- package/src/parse/structure/Token.js +24 -0
- package/src/parse/structure/index.js +16 -0
- package/src/parse/traverse/findAllInTree.js +58 -0
- package/src/parse/traverse/index.js +12 -0
- package/src/parse/traverse/innerText.js +26 -0
- package/src/parsedPaper/ParsedPaper.js +92 -0
- package/src/parsedPaper/assess/TreeAssessor.js +184 -0
- package/src/parsedPaper/assess/assessmentListFactories.js +73 -0
- package/src/parsedPaper/assess/assessments/Assessment.js +79 -0
- package/src/parsedPaper/assess/assessments/index.js +6 -0
- package/src/parsedPaper/assess/assessorFactories.js +104 -0
- package/src/parsedPaper/assess/cornerstone/assessmentListFactories.js +47 -0
- package/src/parsedPaper/assess/cornerstone/index.js +5 -0
- package/src/parsedPaper/assess/index.js +20 -0
- package/src/parsedPaper/build/PaperParser.js +105 -0
- package/src/parsedPaper/build/linguisticParsing/Sentence.js +89 -0
- package/src/parsedPaper/build/linguisticParsing/SentenceTokenizer.js +323 -0
- package/src/parsedPaper/build/linguisticParsing/parseText.js +20 -0
- package/src/parsedPaper/build/tree/TreeBuilder.js +75 -0
- package/src/parsedPaper/build/tree/cleanup/calculateTextIndices.js +190 -0
- package/src/parsedPaper/build/tree/cleanup/getElementContent.js +21 -0
- package/src/parsedPaper/build/tree/cleanup/postParsing.js +37 -0
- package/src/parsedPaper/build/tree/html/HTMLTreeConverter.js +230 -0
- package/src/parsedPaper/build/tree/html/buildTree.js +31 -0
- package/src/parsedPaper/build/tree/html/htmlConstants.js +37 -0
- package/src/parsedPaper/build/tree/index.js +14 -0
- package/src/parsedPaper/build/tree/metadata/buildTree.js +32 -0
- package/src/parsedPaper/research/TreeResearcher.js +134 -0
- package/src/parsedPaper/research/index.js +13 -0
- package/src/parsedPaper/research/researches/Headings.js +20 -0
- package/src/parsedPaper/research/researches/LinkStatistics.js +128 -0
- package/src/parsedPaper/research/researches/Research.js +50 -0
- package/src/parsedPaper/research/researches/index.js +1 -0
- package/src/parsedPaper/structure/tree/FormattingElement.js +67 -0
- package/src/parsedPaper/structure/tree/SourceCodeLocation.js +31 -0
- package/src/parsedPaper/structure/tree/TextContainer.js +85 -0
- package/src/parsedPaper/structure/tree/index.js +22 -0
- package/src/parsedPaper/structure/tree/nodes/Heading.js +26 -0
- package/src/parsedPaper/structure/tree/nodes/LeafNode.js +75 -0
- package/src/parsedPaper/structure/tree/nodes/List.js +47 -0
- package/src/parsedPaper/structure/tree/nodes/ListItem.js +26 -0
- package/src/parsedPaper/structure/tree/nodes/MetadataMiscellaneous.js +46 -0
- package/src/parsedPaper/structure/tree/nodes/MetadataText.js +26 -0
- package/src/parsedPaper/structure/tree/nodes/Node.js +154 -0
- package/src/parsedPaper/structure/tree/nodes/Paragraph.js +24 -0
- package/src/parsedPaper/structure/tree/nodes/StructuredNode.js +52 -0
- package/src/parsedPaper/structure/tree/nodes/index.js +21 -0
- package/src/scoring/assessments/assessment.js +63 -0
- package/src/scoring/assessments/index.js +58 -0
- package/src/scoring/assessments/readability/ParagraphTooLongAssessment.js +173 -0
- package/src/scoring/assessments/readability/SentenceBeginningsAssessment.js +132 -0
- package/src/scoring/assessments/readability/SentenceLengthInTextAssessment.js +186 -0
- package/src/scoring/assessments/readability/TransitionWordsAssessment.js +168 -0
- package/src/scoring/assessments/seo/ImageCountAssessment.js +112 -0
- package/src/scoring/assessments/seo/InternalLinksAssessment.js +114 -0
- package/src/scoring/assessments/seo/IntroductionKeywordAssessment.js +110 -0
- package/src/scoring/assessments/seo/KeyphraseAssessment.js +104 -0
- package/src/scoring/assessments/seo/KeyphraseLengthAssessment.js +110 -0
- package/src/scoring/assessments/seo/KeywordDensityAssessment.js +116 -0
- package/src/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js +114 -0
- package/src/scoring/assessments/seo/MetaDescriptionLengthAssessment.js +112 -0
- package/src/scoring/assessments/seo/MetaTitleKeywordAssessment.js +111 -0
- package/src/scoring/assessments/seo/NumberInMetaTitleAssessment.js +107 -0
- package/src/scoring/assessments/seo/OutboundLinksAssessment.js +111 -0
- package/src/scoring/assessments/seo/PageTitleWidthAssessment.js +104 -0
- package/src/scoring/assessments/seo/SingleH1Assessment.js +118 -0
- package/src/scoring/assessments/seo/SingleTitleAssessment.js +108 -0
- package/src/scoring/assessments/seo/SubHeadingsKeywordAssessment.js +107 -0
- package/src/scoring/assessments/seo/TextImagesAssessment.js +144 -0
- package/src/scoring/assessments/seo/TextLengthAssessment.js +100 -0
- package/src/scoring/assessments/seo/UrlKeywordAssessment.js +111 -0
- package/src/scoring/assessments/seo/UrlLengthAssessment.js +103 -0
- package/src/scoring/assessors/assessor.js +269 -0
- package/src/scoring/assessors/avadaAssessor.js +67 -0
- package/src/scoring/assessors/contentAssessor.js +159 -0
- package/src/scoring/assessors/index.js +4 -0
- package/src/scoring/assessors/seoAssessor.js +57 -0
- package/src/scoring/helpers/assessments/checkForTooLongSentences.js +13 -0
- package/src/scoring/helpers/assessments/inRange.js +49 -0
- package/src/scoring/helpers/assessments/keyphraseLengthFactor.js +10 -0
- package/src/scoring/helpers/assessments/recommendedKeywordCount.js +43 -0
- package/src/scoring/helpers/index.js +74 -0
- package/src/scoring/interpreters/index.js +5 -0
- package/src/scoring/interpreters/scoreToRating.js +31 -0
- package/src/scoring/renderers/AssessorPresenter.js +360 -0
- package/src/scoring/scoreAggregators/ReadabilityScoreAggregator.js +203 -0
- package/src/scoring/scoreAggregators/SEOScoreAggregator.js +54 -0
- package/src/scoring/scoreAggregators/ScoreAggregator.js +23 -0
- package/src/scoring/scoreAggregators/index.js +3 -0
- package/src/values/AssessmentResult.js +496 -0
- package/src/values/Mark.js +271 -0
- package/src/values/Paper.js +425 -0
- package/src/values/index.js +9 -0
- package/src/vendor/turkishStemmer.js +3435 -0
- package/tsconfig.json +15 -0
- package/build/bundledPlugins/index.js +0 -14
- package/build/bundledPlugins/index.js.map +0 -1
- package/build/bundledPlugins/previouslyUsedKeywords.js +0 -171
- package/build/bundledPlugins/previouslyUsedKeywords.js.map +0 -1
- package/build/config/diacritics.js +0 -140
- package/build/config/diacritics.js.map +0 -1
- package/build/config/getTransliterations.js +0 -3572
- package/build/config/getTransliterations.js.map +0 -1
- package/build/config/transliterationsWPstyle.js +0 -1424
- package/build/config/transliterationsWPstyle.js.map +0 -1
- package/build/config/wordBoundaries.js +0 -26
- package/build/config/wordBoundaries.js.map +0 -1
- package/build/config/wordBoundariesWithoutPunctuation.js +0 -16
- package/build/config/wordBoundariesWithoutPunctuation.js.map +0 -1
- package/build/const/analysis.js +0 -20
- package/build/const/analysis.js.map +0 -1
- package/build/errors/invalidType.js +0 -22
- package/build/errors/invalidType.js.map +0 -1
- package/build/errors/missingArgument.js +0 -22
- package/build/errors/missingArgument.js.map +0 -1
- package/build/helpers/createMeasurementElement.js +0 -46
- package/build/helpers/createMeasurementElement.js.map +0 -1
- package/build/helpers/domManipulation.js +0 -66
- package/build/helpers/domManipulation.js.map +0 -1
- package/build/helpers/errors.js +0 -26
- package/build/helpers/errors.js.map +0 -1
- package/build/helpers/factory.js +0 -207
- package/build/helpers/factory.js.map +0 -1
- package/build/helpers/formatNumber.js +0 -18
- package/build/helpers/formatNumber.js.map +0 -1
- package/build/helpers/formatString.js +0 -38
- package/build/helpers/formatString.js.map +0 -1
- package/build/helpers/getLanguagesWithWordComplexity.js +0 -15
- package/build/helpers/getLanguagesWithWordComplexity.js.map +0 -1
- package/build/helpers/getLanguagesWithWordFormSupport.js +0 -16
- package/build/helpers/getLanguagesWithWordFormSupport.js.map +0 -1
- package/build/helpers/getWordComplexityConfig.js +0 -27
- package/build/helpers/getWordComplexityConfig.js.map +0 -1
- package/build/helpers/getWordComplexityHelper.js +0 -27
- package/build/helpers/getWordComplexityHelper.js.map +0 -1
- package/build/helpers/htmlEntities.js +0 -21
- package/build/helpers/htmlEntities.js.map +0 -1
- package/build/helpers/includesAny.js +0 -24
- package/build/helpers/includesAny.js.map +0 -1
- package/build/helpers/index.js +0 -179
- package/build/helpers/index.js.map +0 -1
- package/build/helpers/shortlinker/Shortlinker.js +0 -79
- package/build/helpers/shortlinker/Shortlinker.js.map +0 -1
- package/build/helpers/shortlinker/index.js +0 -17
- package/build/helpers/shortlinker/index.js.map +0 -1
- package/build/helpers/shortlinker/singleton.js +0 -76
- package/build/helpers/shortlinker/singleton.js.map +0 -1
- package/build/helpers/types.js +0 -37
- package/build/helpers/types.js.map +0 -1
- package/build/index.js +0 -111
- package/build/index.js.map +0 -1
- package/build/languageProcessing/AbstractResearcher.js +0 -348
- package/build/languageProcessing/AbstractResearcher.js.map +0 -1
- package/build/languageProcessing/helpers/highlighting/getMarkingsInSentence.js +0 -123
- package/build/languageProcessing/helpers/highlighting/getMarkingsInSentence.js.map +0 -1
- package/build/languageProcessing/helpers/html/getFieldsToMark.js +0 -37
- package/build/languageProcessing/helpers/html/getFieldsToMark.js.map +0 -1
- package/build/languageProcessing/helpers/html/getSubheadingTexts.js +0 -47
- package/build/languageProcessing/helpers/html/getSubheadingTexts.js.map +0 -1
- package/build/languageProcessing/helpers/html/getSubheadings.js +0 -92
- package/build/languageProcessing/helpers/html/getSubheadings.js.map +0 -1
- package/build/languageProcessing/helpers/html/html.js +0 -152
- package/build/languageProcessing/helpers/html/html.js.map +0 -1
- package/build/languageProcessing/helpers/html/htmlParser.js +0 -132
- package/build/languageProcessing/helpers/html/htmlParser.js.map +0 -1
- package/build/languageProcessing/helpers/html/matchParagraphs.js +0 -61
- package/build/languageProcessing/helpers/html/matchParagraphs.js.map +0 -1
- package/build/languageProcessing/helpers/html/normalizeHTML.js +0 -23
- package/build/languageProcessing/helpers/html/normalizeHTML.js.map +0 -1
- package/build/languageProcessing/helpers/image/getAltAttribute.js +0 -24
- package/build/languageProcessing/helpers/image/getAltAttribute.js.map +0 -1
- package/build/languageProcessing/helpers/image/getImagesInTree.js +0 -21
- package/build/languageProcessing/helpers/image/getImagesInTree.js.map +0 -1
- package/build/languageProcessing/helpers/image/imageInText.js +0 -26
- package/build/languageProcessing/helpers/image/imageInText.js.map +0 -1
- package/build/languageProcessing/helpers/index.js +0 -41
- package/build/languageProcessing/helpers/index.js.map +0 -1
- package/build/languageProcessing/helpers/language/getLanguage.js +0 -16
- package/build/languageProcessing/helpers/language/getLanguage.js.map +0 -1
- package/build/languageProcessing/helpers/link/checkNofollow.js +0 -42
- package/build/languageProcessing/helpers/link/checkNofollow.js.map +0 -1
- package/build/languageProcessing/helpers/link/getAnchorsFromText.js +0 -37
- package/build/languageProcessing/helpers/link/getAnchorsFromText.js.map +0 -1
- package/build/languageProcessing/helpers/link/getLinkType.js +0 -36
- package/build/languageProcessing/helpers/link/getLinkType.js.map +0 -1
- package/build/languageProcessing/helpers/match/findKeywordFormsInString.js +0 -101
- package/build/languageProcessing/helpers/match/findKeywordFormsInString.js.map +0 -1
- package/build/languageProcessing/helpers/match/isDoubleQuoted.js +0 -19
- package/build/languageProcessing/helpers/match/isDoubleQuoted.js.map +0 -1
- package/build/languageProcessing/helpers/match/matchTextWithArray.js +0 -41
- package/build/languageProcessing/helpers/match/matchTextWithArray.js.map +0 -1
- package/build/languageProcessing/helpers/match/matchTextWithTransliteration.js +0 -58
- package/build/languageProcessing/helpers/match/matchTextWithTransliteration.js.map +0 -1
- package/build/languageProcessing/helpers/match/matchTextWithWord.js +0 -47
- package/build/languageProcessing/helpers/match/matchTextWithWord.js.map +0 -1
- package/build/languageProcessing/helpers/match/matchWordFormsWithSentence.js +0 -162
- package/build/languageProcessing/helpers/match/matchWordFormsWithSentence.js.map +0 -1
- package/build/languageProcessing/helpers/match/processExactMatchRequest.js +0 -29
- package/build/languageProcessing/helpers/match/processExactMatchRequest.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/baseStemmer.js +0 -18
- package/build/languageProcessing/helpers/morphology/baseStemmer.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/buildFormRule.js +0 -26
- package/build/languageProcessing/helpers/morphology/buildFormRule.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/buildTopicStems.js +0 -164
- package/build/languageProcessing/helpers/morphology/buildTopicStems.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/createRulesFromArrays.js +0 -48
- package/build/languageProcessing/helpers/morphology/createRulesFromArrays.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/exceptionListHelpers.js +0 -71
- package/build/languageProcessing/helpers/morphology/exceptionListHelpers.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/findMatchingEndingInArray.js +0 -29
- package/build/languageProcessing/helpers/morphology/findMatchingEndingInArray.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/flattenSortLength.js +0 -19
- package/build/languageProcessing/helpers/morphology/flattenSortLength.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/getAllWordsFromPaper.js +0 -35
- package/build/languageProcessing/helpers/morphology/getAllWordsFromPaper.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/regexHelpers.js +0 -53
- package/build/languageProcessing/helpers/morphology/regexHelpers.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/stemHelpers.js +0 -46
- package/build/languageProcessing/helpers/morphology/stemHelpers.js.map +0 -1
- package/build/languageProcessing/helpers/morphology/stemPrefixedFunctionWords.js +0 -39
- package/build/languageProcessing/helpers/morphology/stemPrefixedFunctionWords.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/directPrecedenceException.js +0 -42
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/directPrecedenceException.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/getClausesSplitOnStopWords.js +0 -116
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/getClausesSplitOnStopWords.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/nonDirectParticiplePrecedenceException.js +0 -45
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/nonDirectParticiplePrecedenceException.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getClauses.js +0 -220
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getClauses.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getIndicesWithRegex.js +0 -27
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getIndicesWithRegex.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/matchRegularParticiples.js +0 -28
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/matchRegularParticiples.js.map +0 -1
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/precedenceException.js +0 -46
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/precedenceException.js.map +0 -1
- package/build/languageProcessing/helpers/prominentWords/determineProminentWords.js +0 -203
- package/build/languageProcessing/helpers/prominentWords/determineProminentWords.js.map +0 -1
- package/build/languageProcessing/helpers/regex/createRegexFromArray.js +0 -38
- package/build/languageProcessing/helpers/regex/createRegexFromArray.js.map +0 -1
- package/build/languageProcessing/helpers/regex/createRegexFromDoubleArray.js +0 -39
- package/build/languageProcessing/helpers/regex/createRegexFromDoubleArray.js.map +0 -1
- package/build/languageProcessing/helpers/regex/createWordRegex.js +0 -34
- package/build/languageProcessing/helpers/regex/createWordRegex.js.map +0 -1
- package/build/languageProcessing/helpers/regex/matchStringWithRegex.js +0 -24
- package/build/languageProcessing/helpers/regex/matchStringWithRegex.js.map +0 -1
- package/build/languageProcessing/helpers/regex/searchAndReplaceWithOneRegex.js +0 -21
- package/build/languageProcessing/helpers/regex/searchAndReplaceWithOneRegex.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/doubleQuotes.js +0 -19
- package/build/languageProcessing/helpers/sanitize/doubleQuotes.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/filterShortcodesFromTree.js +0 -131
- package/build/languageProcessing/helpers/sanitize/filterShortcodesFromTree.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/mergeListItems.js +0 -30
- package/build/languageProcessing/helpers/sanitize/mergeListItems.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/parseSynonyms.js +0 -24
- package/build/languageProcessing/helpers/sanitize/parseSynonyms.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/quotes.js +0 -47
- package/build/languageProcessing/helpers/sanitize/quotes.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/removeEmailAddresses.js +0 -19
- package/build/languageProcessing/helpers/sanitize/removeEmailAddresses.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/removePunctuation.js +0 -64
- package/build/languageProcessing/helpers/sanitize/removePunctuation.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/removePunctuationExceptQuotes.js +0 -24
- package/build/languageProcessing/helpers/sanitize/removePunctuationExceptQuotes.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/removeSentenceTerminators.js +0 -20
- package/build/languageProcessing/helpers/sanitize/removeSentenceTerminators.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/removeURLs.js +0 -19
- package/build/languageProcessing/helpers/sanitize/removeURLs.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/sanitizeLineBreakTag.js +0 -18
- package/build/languageProcessing/helpers/sanitize/sanitizeLineBreakTag.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/sanitizeString.js +0 -23
- package/build/languageProcessing/helpers/sanitize/sanitizeString.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/stripHTMLTags.js +0 -59
- package/build/languageProcessing/helpers/sanitize/stripHTMLTags.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/stripNonTextTags.js +0 -22
- package/build/languageProcessing/helpers/sanitize/stripNonTextTags.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/stripNumbers.js +0 -26
- package/build/languageProcessing/helpers/sanitize/stripNumbers.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/stripSpaces.js +0 -29
- package/build/languageProcessing/helpers/sanitize/stripSpaces.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/stripWordBoundaries.js +0 -65
- package/build/languageProcessing/helpers/sanitize/stripWordBoundaries.js.map +0 -1
- package/build/languageProcessing/helpers/sanitize/unifyWhitespace.js +0 -64
- package/build/languageProcessing/helpers/sanitize/unifyWhitespace.js.map +0 -1
- package/build/languageProcessing/helpers/sentence/SentenceTokenizer.js +0 -565
- package/build/languageProcessing/helpers/sentence/SentenceTokenizer.js.map +0 -1
- package/build/languageProcessing/helpers/sentence/countSentences.js +0 -27
- package/build/languageProcessing/helpers/sentence/countSentences.js.map +0 -1
- package/build/languageProcessing/helpers/sentence/getSentences.js +0 -71
- package/build/languageProcessing/helpers/sentence/getSentences.js.map +0 -1
- package/build/languageProcessing/helpers/sentence/getSentencesFromTree.js +0 -60
- package/build/languageProcessing/helpers/sentence/getSentencesFromTree.js.map +0 -1
- package/build/languageProcessing/helpers/sentence/memoizedSentenceTokenizer.js +0 -37
- package/build/languageProcessing/helpers/sentence/memoizedSentenceTokenizer.js.map +0 -1
- package/build/languageProcessing/helpers/sentence/sentencesLength.js +0 -37
- package/build/languageProcessing/helpers/sentence/sentencesLength.js.map +0 -1
- package/build/languageProcessing/helpers/syllables/DeviationFragment.js +0 -108
- package/build/languageProcessing/helpers/syllables/DeviationFragment.js.map +0 -1
- package/build/languageProcessing/helpers/syllables/countSyllables.js +0 -173
- package/build/languageProcessing/helpers/syllables/countSyllables.js.map +0 -1
- package/build/languageProcessing/helpers/syllables/syllableCountIterator.js +0 -63
- package/build/languageProcessing/helpers/syllables/syllableCountIterator.js.map +0 -1
- package/build/languageProcessing/helpers/syllables/syllableCountStep.js +0 -75
- package/build/languageProcessing/helpers/syllables/syllableCountStep.js.map +0 -1
- package/build/languageProcessing/helpers/transform/transformWordsWithHyphens.js +0 -24
- package/build/languageProcessing/helpers/transform/transformWordsWithHyphens.js.map +0 -1
- package/build/languageProcessing/helpers/transliterate/replaceDiacritics.js +0 -25
- package/build/languageProcessing/helpers/transliterate/replaceDiacritics.js.map +0 -1
- package/build/languageProcessing/helpers/transliterate/specialCharacterMappings.js +0 -194
- package/build/languageProcessing/helpers/transliterate/specialCharacterMappings.js.map +0 -1
- package/build/languageProcessing/helpers/transliterate/transliterate.js +0 -24
- package/build/languageProcessing/helpers/transliterate/transliterate.js.map +0 -1
- package/build/languageProcessing/helpers/transliterate/transliterateWPstyle.js +0 -25
- package/build/languageProcessing/helpers/transliterate/transliterateWPstyle.js.map +0 -1
- package/build/languageProcessing/helpers/url/parseSlug.js +0 -17
- package/build/languageProcessing/helpers/url/parseSlug.js.map +0 -1
- package/build/languageProcessing/helpers/url/url.js +0 -174
- package/build/languageProcessing/helpers/url/url.js.map +0 -1
- package/build/languageProcessing/helpers/word/addWordboundary.js +0 -41
- package/build/languageProcessing/helpers/word/addWordboundary.js.map +0 -1
- package/build/languageProcessing/helpers/word/areWordsInSentence.js +0 -23
- package/build/languageProcessing/helpers/word/areWordsInSentence.js.map +0 -1
- package/build/languageProcessing/helpers/word/countMetaDescriptionLength.js +0 -24
- package/build/languageProcessing/helpers/word/countMetaDescriptionLength.js.map +0 -1
- package/build/languageProcessing/helpers/word/countWords.js +0 -21
- package/build/languageProcessing/helpers/word/countWords.js.map +0 -1
- package/build/languageProcessing/helpers/word/createPunctuationTokens.js +0 -46
- package/build/languageProcessing/helpers/word/createPunctuationTokens.js.map +0 -1
- package/build/languageProcessing/helpers/word/filterWordsFromArray.js +0 -21
- package/build/languageProcessing/helpers/word/filterWordsFromArray.js.map +0 -1
- package/build/languageProcessing/helpers/word/followsIndex.js +0 -29
- package/build/languageProcessing/helpers/word/followsIndex.js.map +0 -1
- package/build/languageProcessing/helpers/word/getAllWordsFromTree.js +0 -30
- package/build/languageProcessing/helpers/word/getAllWordsFromTree.js.map +0 -1
- package/build/languageProcessing/helpers/word/getWords.js +0 -47
- package/build/languageProcessing/helpers/word/getWords.js.map +0 -1
- package/build/languageProcessing/helpers/word/includesIndex.js +0 -34
- package/build/languageProcessing/helpers/word/includesIndex.js.map +0 -1
- package/build/languageProcessing/helpers/word/indices.js +0 -141
- package/build/languageProcessing/helpers/word/indices.js.map +0 -1
- package/build/languageProcessing/helpers/word/markWordsInSentences.js +0 -189
- package/build/languageProcessing/helpers/word/markWordsInSentences.js.map +0 -1
- package/build/languageProcessing/helpers/word/matchWordInSentence.js +0 -63
- package/build/languageProcessing/helpers/word/matchWordInSentence.js.map +0 -1
- package/build/languageProcessing/helpers/word/splitIntoTokens.js +0 -52
- package/build/languageProcessing/helpers/word/splitIntoTokens.js.map +0 -1
- package/build/languageProcessing/index.js +0 -283
- package/build/languageProcessing/index.js.map +0 -1
- package/build/languageProcessing/languages/_default/Researcher.js +0 -43
- package/build/languageProcessing/languages/_default/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/_default/helpers/getStemmer.js +0 -20
- package/build/languageProcessing/languages/_default/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/ar/Researcher.js +0 -54
- package/build/languageProcessing/languages/ar/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/ar/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/ar/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/ar/config/functionWords.js +0 -80
- package/build/languageProcessing/languages/ar/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/ar/config/internal/passiveVerbsWithLongVowel.js +0 -13
- package/build/languageProcessing/languages/ar/config/internal/passiveVerbsWithLongVowel.js.map +0 -1
- package/build/languageProcessing/languages/ar/config/prefixedFunctionWords.js +0 -11
- package/build/languageProcessing/languages/ar/config/prefixedFunctionWords.js.map +0 -1
- package/build/languageProcessing/languages/ar/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/ar/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ar/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/ar/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ar/helpers/createBasicWordForms.js +0 -38
- package/build/languageProcessing/languages/ar/helpers/createBasicWordForms.js.map +0 -1
- package/build/languageProcessing/languages/ar/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/ar/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/ar/helpers/internal/stem.js +0 -635
- package/build/languageProcessing/languages/ar/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/ar/helpers/isPassiveSentence.js +0 -41
- package/build/languageProcessing/languages/ar/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/ca/Researcher.js +0 -52
- package/build/languageProcessing/languages/ca/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/ca/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/ca/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/ca/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/ca/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ca/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/ca/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ca/helpers/getStemmer.js +0 -20
- package/build/languageProcessing/languages/ca/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/cs/Researcher.js +0 -52
- package/build/languageProcessing/languages/cs/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/cs/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/functionWords.js +0 -50
- package/build/languageProcessing/languages/cs/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceAuxiliaries.js +0 -10
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceEndings.js +0 -14
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceEndings.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/cs/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/cs/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/cs/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/cs/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/cs/helpers/getClauses.js +0 -35
- package/build/languageProcessing/languages/cs/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/cs/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/cs/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/cs/helpers/internal/getParticiples.js +0 -24
- package/build/languageProcessing/languages/cs/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/cs/helpers/internal/stem.js +0 -341
- package/build/languageProcessing/languages/cs/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/cs/values/Clause.js +0 -45
- package/build/languageProcessing/languages/cs/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/de/Researcher.js +0 -61
- package/build/languageProcessing/languages/de/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/de/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/de/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/de/config/functionWords.js +0 -103
- package/build/languageProcessing/languages/de/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/de/config/internal/exceptionsParticiplesActive.js +0 -13
- package/build/languageProcessing/languages/de/config/internal/exceptionsParticiplesActive.js.map +0 -1
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceAuxiliaries.js +0 -29
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceIrregulars.js +0 -15
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceIrregulars.js.map +0 -1
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceRegex.js +0 -78
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceRegex.js.map +0 -1
- package/build/languageProcessing/languages/de/config/keyphraseLength.js +0 -17
- package/build/languageProcessing/languages/de/config/keyphraseLength.js.map +0 -1
- package/build/languageProcessing/languages/de/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/de/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/de/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/de/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/de/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/de/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/de/config/wordComplexity.js +0 -11
- package/build/languageProcessing/languages/de/config/wordComplexity.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/de/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsComplex.js +0 -47
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsComplex.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsFunction.js +0 -20
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsFunction.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/getClauses.js +0 -34
- package/build/languageProcessing/languages/de/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/de/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/internal/SentenceTokenizer.js +0 -38
- package/build/languageProcessing/languages/de/helpers/internal/SentenceTokenizer.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/internal/detectAndStemRegularParticiple.js +0 -118
- package/build/languageProcessing/languages/de/helpers/internal/detectAndStemRegularParticiple.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/internal/determineStem.js +0 -113
- package/build/languageProcessing/languages/de/helpers/internal/determineStem.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/internal/getParticiples.js +0 -39
- package/build/languageProcessing/languages/de/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/internal/stem.js +0 -222
- package/build/languageProcessing/languages/de/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/de/helpers/memoizedSentenceTokenizer.js +0 -37
- package/build/languageProcessing/languages/de/helpers/memoizedSentenceTokenizer.js.map +0 -1
- package/build/languageProcessing/languages/de/values/Clause.js +0 -91
- package/build/languageProcessing/languages/de/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/el/Researcher.js +0 -55
- package/build/languageProcessing/languages/el/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/el/config/firstWordExceptions.js +0 -33
- package/build/languageProcessing/languages/el/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/el/config/functionWords.js +0 -47
- package/build/languageProcessing/languages/el/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/el/config/internal/auxiliaries.js +0 -12
- package/build/languageProcessing/languages/el/config/internal/auxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/el/config/internal/morphologicalPassiveSuffixes.js +0 -8
- package/build/languageProcessing/languages/el/config/internal/morphologicalPassiveSuffixes.js.map +0 -1
- package/build/languageProcessing/languages/el/config/internal/nonPassiveVerbStems.js +0 -22
- package/build/languageProcessing/languages/el/config/internal/nonPassiveVerbStems.js.map +0 -1
- package/build/languageProcessing/languages/el/config/stopWords.js +0 -13
- package/build/languageProcessing/languages/el/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/el/config/transitionWords.js +0 -18
- package/build/languageProcessing/languages/el/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/el/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/el/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/el/helpers/getClauses.js +0 -34
- package/build/languageProcessing/languages/el/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/el/helpers/getStemmer.js +0 -29
- package/build/languageProcessing/languages/el/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/el/helpers/internal/getParticiples.js +0 -24
- package/build/languageProcessing/languages/el/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/el/helpers/internal/stem.js +0 -347
- package/build/languageProcessing/languages/el/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/el/helpers/isPassiveSentence.js +0 -43
- package/build/languageProcessing/languages/el/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/el/values/Clause.js +0 -46
- package/build/languageProcessing/languages/el/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/en/Researcher.js +0 -55
- package/build/languageProcessing/languages/en/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/en/config/abbreviations.js +0 -16
- package/build/languageProcessing/languages/en/config/abbreviations.js.map +0 -1
- package/build/languageProcessing/languages/en/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/en/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/en/config/functionWords.js +0 -110
- package/build/languageProcessing/languages/en/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceAuxiliaries.js +0 -15
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceIrregulars.js +0 -15
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceIrregulars.js.map +0 -1
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceNonVerbEndingEd.js +0 -13
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceNonVerbEndingEd.js.map +0 -1
- package/build/languageProcessing/languages/en/config/regularParticiplesRegex.js +0 -12
- package/build/languageProcessing/languages/en/config/regularParticiplesRegex.js.map +0 -1
- package/build/languageProcessing/languages/en/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/en/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/en/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/en/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/en/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/en/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/en/config/wordComplexity.js +0 -12
- package/build/languageProcessing/languages/en/config/wordComplexity.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js +0 -49
- package/build/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/getClauses.js +0 -58
- package/build/languageProcessing/languages/en/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/en/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/internal/determineStem.js +0 -161
- package/build/languageProcessing/languages/en/helpers/internal/determineStem.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js +0 -149
- package/build/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/internal/getParticiples.js +0 -33
- package/build/languageProcessing/languages/en/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/en/helpers/internal/getVerbStem.js +0 -228
- package/build/languageProcessing/languages/en/helpers/internal/getVerbStem.js.map +0 -1
- package/build/languageProcessing/languages/en/values/Clause.js +0 -68
- package/build/languageProcessing/languages/en/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/es/Researcher.js +0 -57
- package/build/languageProcessing/languages/es/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/es/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/es/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/es/config/functionWords.js +0 -111
- package/build/languageProcessing/languages/es/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceAuxiliaries.js +0 -12
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceParticiples.js +0 -13
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceParticiples.js.map +0 -1
- package/build/languageProcessing/languages/es/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/es/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/es/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/es/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/es/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/es/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/es/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/es/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/es/config/wordComplexity.js +0 -11
- package/build/languageProcessing/languages/es/config/wordComplexity.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/es/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/checkIfWordIsComplex.js +0 -59
- package/build/languageProcessing/languages/es/helpers/checkIfWordIsComplex.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/getClauses.js +0 -38
- package/build/languageProcessing/languages/es/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/es/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/internal/checkVerbStemModifications.js +0 -40
- package/build/languageProcessing/languages/es/helpers/internal/checkVerbStemModifications.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/internal/getParticiples.js +0 -43
- package/build/languageProcessing/languages/es/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/es/helpers/internal/stem.js +0 -574
- package/build/languageProcessing/languages/es/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/es/values/Clause.js +0 -49
- package/build/languageProcessing/languages/es/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/fa/Researcher.js +0 -56
- package/build/languageProcessing/languages/fa/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/fa/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/fa/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/fa/config/functionWords.js +0 -41
- package/build/languageProcessing/languages/fa/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/fa/config/internal/participles.js +0 -14
- package/build/languageProcessing/languages/fa/config/internal/participles.js.map +0 -1
- package/build/languageProcessing/languages/fa/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/fa/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/fa/config/transitionWords.js +0 -18
- package/build/languageProcessing/languages/fa/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/fa/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/fa/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/fa/helpers/createBasicWordForms.js +0 -99
- package/build/languageProcessing/languages/fa/helpers/createBasicWordForms.js.map +0 -1
- package/build/languageProcessing/languages/fa/helpers/getStemmer.js +0 -22
- package/build/languageProcessing/languages/fa/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/fa/helpers/isPassiveSentence.js +0 -22
- package/build/languageProcessing/languages/fa/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/fr/Researcher.js +0 -55
- package/build/languageProcessing/languages/fr/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/fr/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/functionWords.js +0 -144
- package/build/languageProcessing/languages/fr/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/internal/exceptionsParticiplesActive.js +0 -22
- package/build/languageProcessing/languages/fr/config/internal/exceptionsParticiplesActive.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceAuxiliaries.js +0 -12
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceIrregulars.js +0 -27
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceIrregulars.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/fr/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/fr/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/fr/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/fr/config/wordComplexity.js +0 -11
- package/build/languageProcessing/languages/fr/config/wordComplexity.js.map +0 -1
- package/build/languageProcessing/languages/fr/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/fr/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/fr/helpers/checkIfWordIsComplex.js +0 -72
- package/build/languageProcessing/languages/fr/helpers/checkIfWordIsComplex.js.map +0 -1
- package/build/languageProcessing/languages/fr/helpers/getClauses.js +0 -42
- package/build/languageProcessing/languages/fr/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/fr/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/fr/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/fr/helpers/internal/getParticiples.js +0 -71
- package/build/languageProcessing/languages/fr/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/fr/helpers/internal/stem.js +0 -544
- package/build/languageProcessing/languages/fr/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/fr/values/Clause.js +0 -90
- package/build/languageProcessing/languages/fr/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/he/Researcher.js +0 -59
- package/build/languageProcessing/languages/he/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/he/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/he/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/he/config/functionWords.js +0 -504
- package/build/languageProcessing/languages/he/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/he/config/internal/regularRootsHufal.js +0 -13
- package/build/languageProcessing/languages/he/config/internal/regularRootsHufal.js.map +0 -1
- package/build/languageProcessing/languages/he/config/internal/regularRootsNifal.js +0 -13
- package/build/languageProcessing/languages/he/config/internal/regularRootsNifal.js.map +0 -1
- package/build/languageProcessing/languages/he/config/internal/regularRootsPual.js +0 -13
- package/build/languageProcessing/languages/he/config/internal/regularRootsPual.js.map +0 -1
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsHufal.js +0 -15
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsHufal.js.map +0 -1
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsNifal.js +0 -15
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsNifal.js.map +0 -1
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsPual.js +0 -15
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsPual.js.map +0 -1
- package/build/languageProcessing/languages/he/config/prefixedFunctionWords.js +0 -9
- package/build/languageProcessing/languages/he/config/prefixedFunctionWords.js.map +0 -1
- package/build/languageProcessing/languages/he/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/he/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/he/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/he/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/he/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/he/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/he/helpers/createBasicWordForms.js +0 -40
- package/build/languageProcessing/languages/he/helpers/createBasicWordForms.js.map +0 -1
- package/build/languageProcessing/languages/he/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/he/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/he/helpers/internal/stem.js +0 -59
- package/build/languageProcessing/languages/he/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/he/helpers/isPassiveSentence.js +0 -122
- package/build/languageProcessing/languages/he/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/he/helpers/stem.js +0 -59
- package/build/languageProcessing/languages/he/helpers/stem.js.map +0 -1
- package/build/languageProcessing/languages/hu/Researcher.js +0 -57
- package/build/languageProcessing/languages/hu/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/firstWordExceptions.js +0 -32
- package/build/languageProcessing/languages/hu/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/functionWords.js +0 -52
- package/build/languageProcessing/languages/hu/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/internal/auxiliaries.js +0 -20
- package/build/languageProcessing/languages/hu/config/internal/auxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/internal/morphologicalPassiveAffixes.js +0 -12
- package/build/languageProcessing/languages/hu/config/internal/morphologicalPassiveAffixes.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/internal/nonPassivesInVaAndVe.js +0 -25
- package/build/languageProcessing/languages/hu/config/internal/nonPassivesInVaAndVe.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/internal/odikVerbs.js +0 -25
- package/build/languageProcessing/languages/hu/config/internal/odikVerbs.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/internal/participles.js +0 -25
- package/build/languageProcessing/languages/hu/config/internal/participles.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/stopWords.js +0 -29
- package/build/languageProcessing/languages/hu/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/hu/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/hu/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/hu/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/hu/helpers/getClauses.js +0 -34
- package/build/languageProcessing/languages/hu/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/hu/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/hu/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/hu/helpers/internal/getParticiples.js +0 -25
- package/build/languageProcessing/languages/hu/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/hu/helpers/internal/stem.js +0 -390
- package/build/languageProcessing/languages/hu/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/hu/helpers/isPassiveSentence.js +0 -53
- package/build/languageProcessing/languages/hu/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/hu/values/Clause.js +0 -47
- package/build/languageProcessing/languages/hu/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/id/Researcher.js +0 -55
- package/build/languageProcessing/languages/id/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/id/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/id/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/id/config/functionWords.js +0 -109
- package/build/languageProcessing/languages/id/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/id/config/internal/nonPassiveVerbsStartingDi.js +0 -13
- package/build/languageProcessing/languages/id/config/internal/nonPassiveVerbsStartingDi.js.map +0 -1
- package/build/languageProcessing/languages/id/config/transitionWords.js +0 -30
- package/build/languageProcessing/languages/id/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/id/config/twoPartTransitionWords.js +0 -14
- package/build/languageProcessing/languages/id/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/id/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/id/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/id/helpers/internal/stem.js +0 -394
- package/build/languageProcessing/languages/id/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/id/helpers/internal/stemHelpers.js +0 -86
- package/build/languageProcessing/languages/id/helpers/internal/stemHelpers.js.map +0 -1
- package/build/languageProcessing/languages/id/helpers/isPassiveSentence.js +0 -47
- package/build/languageProcessing/languages/id/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/id/helpers/splitIntoTokensCustom.js +0 -53
- package/build/languageProcessing/languages/id/helpers/splitIntoTokensCustom.js.map +0 -1
- package/build/languageProcessing/languages/it/Researcher.js +0 -57
- package/build/languageProcessing/languages/it/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/it/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/it/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/it/config/functionWords.js +0 -141
- package/build/languageProcessing/languages/it/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceAuxiliaries.js +0 -12
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceParticiples.js +0 -13
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceParticiples.js.map +0 -1
- package/build/languageProcessing/languages/it/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/it/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/it/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/it/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/it/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/it/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/it/config/twoPartTransitionWords.js +0 -12
- package/build/languageProcessing/languages/it/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/it/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/it/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/it/helpers/getClauses.js +0 -40
- package/build/languageProcessing/languages/it/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/it/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/it/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/it/helpers/internal/getParticiples.js +0 -42
- package/build/languageProcessing/languages/it/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/it/helpers/internal/stem.js +0 -408
- package/build/languageProcessing/languages/it/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/it/values/Clause.js +0 -51
- package/build/languageProcessing/languages/it/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/ja/Researcher.js +0 -94
- package/build/languageProcessing/languages/ja/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/assessmentApplicabilityCharacterCount.js +0 -11
- package/build/languageProcessing/languages/ja/config/assessmentApplicabilityCharacterCount.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/firstWordExceptions.js +0 -14
- package/build/languageProcessing/languages/ja/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/functionWords.js +0 -8
- package/build/languageProcessing/languages/ja/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/keyphraseLength.js +0 -23
- package/build/languageProcessing/languages/ja/config/keyphraseLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/metaDescriptionLength.js +0 -11
- package/build/languageProcessing/languages/ja/config/metaDescriptionLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/paragraphLength.js +0 -17
- package/build/languageProcessing/languages/ja/config/paragraphLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/sentenceLength.js +0 -11
- package/build/languageProcessing/languages/ja/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/subheadingsTooLong.js +0 -25
- package/build/languageProcessing/languages/ja/config/subheadingsTooLong.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/textLength.js +0 -54
- package/build/languageProcessing/languages/ja/config/textLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/topicLength.js +0 -12
- package/build/languageProcessing/languages/ja/config/topicLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/config/transitionWords.js +0 -9
- package/build/languageProcessing/languages/ja/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js +0 -102
- package/build/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js.map +0 -1
- package/build/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js +0 -25
- package/build/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/customResearches/getWordForms.js +0 -57
- package/build/languageProcessing/languages/ja/customResearches/getWordForms.js.map +0 -1
- package/build/languageProcessing/languages/ja/customResearches/textLength.js +0 -31
- package/build/languageProcessing/languages/ja/customResearches/textLength.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/countCharacters.js +0 -27
- package/build/languageProcessing/languages/ja/helpers/countCharacters.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/customGetStemmer.js +0 -28
- package/build/languageProcessing/languages/ja/helpers/customGetStemmer.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/getContentWords.js +0 -27
- package/build/languageProcessing/languages/ja/helpers/getContentWords.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/getWords.js +0 -38
- package/build/languageProcessing/languages/ja/helpers/getWords.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js +0 -99
- package/build/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/internal/createWordForms.js +0 -70
- package/build/languageProcessing/languages/ja/helpers/internal/createWordForms.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/internal/determineStem.js +0 -23
- package/build/languageProcessing/languages/ja/helpers/internal/determineStem.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/matchTextWithWord.js +0 -58
- package/build/languageProcessing/languages/ja/helpers/matchTextWithWord.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/matchTransitionWords.js +0 -29
- package/build/languageProcessing/languages/ja/helpers/matchTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/memoizedSentenceTokenizer.js +0 -37
- package/build/languageProcessing/languages/ja/helpers/memoizedSentenceTokenizer.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/splitIntoTokensCustom.js +0 -27
- package/build/languageProcessing/languages/ja/helpers/splitIntoTokensCustom.js.map +0 -1
- package/build/languageProcessing/languages/ja/helpers/wordsCharacterCount.js +0 -19
- package/build/languageProcessing/languages/ja/helpers/wordsCharacterCount.js.map +0 -1
- package/build/languageProcessing/languages/nb/Researcher.js +0 -54
- package/build/languageProcessing/languages/nb/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/nb/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/functionWords.js +0 -54
- package/build/languageProcessing/languages/nb/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/internal/participles.js +0 -12
- package/build/languageProcessing/languages/nb/config/internal/participles.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/internal/passiveVoiceAuxiliaries.js +0 -12
- package/build/languageProcessing/languages/nb/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/stopWords.js +0 -13
- package/build/languageProcessing/languages/nb/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/nb/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/nb/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/nb/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/nb/helpers/getClauses.js +0 -37
- package/build/languageProcessing/languages/nb/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/nb/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/nb/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/nb/helpers/internal/getParticiples.js +0 -31
- package/build/languageProcessing/languages/nb/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/nb/helpers/internal/stem.js +0 -135
- package/build/languageProcessing/languages/nb/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/nb/values/Clause.js +0 -49
- package/build/languageProcessing/languages/nb/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/nl/Researcher.js +0 -57
- package/build/languageProcessing/languages/nl/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/nl/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/functionWords.js +0 -102
- package/build/languageProcessing/languages/nl/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/internal/nonParticiples.js +0 -12
- package/build/languageProcessing/languages/nl/config/internal/nonParticiples.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceAuxiliaries.js +0 -12
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceIrregulars.js +0 -13
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceIrregulars.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/keyphraseLength.js +0 -17
- package/build/languageProcessing/languages/nl/config/keyphraseLength.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/nl/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/transitionWords.js +0 -11
- package/build/languageProcessing/languages/nl/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/nl/config/twoPartTransitionWords.js +0 -12
- package/build/languageProcessing/languages/nl/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/nl/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/getClauses.js +0 -34
- package/build/languageProcessing/languages/nl/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/nl/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/checkExceptionsWithFullForms.js +0 -124
- package/build/languageProcessing/languages/nl/helpers/internal/checkExceptionsWithFullForms.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemRegularParticiple.js +0 -260
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemRegularParticiple.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemSuffixes.js +0 -157
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemSuffixes.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/determineStem.js +0 -120
- package/build/languageProcessing/languages/nl/helpers/internal/determineStem.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/getParticiples.js +0 -27
- package/build/languageProcessing/languages/nl/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/getStemWordsWithTAndDEnding.js +0 -152
- package/build/languageProcessing/languages/nl/helpers/internal/getStemWordsWithTAndDEnding.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/stem.js +0 -131
- package/build/languageProcessing/languages/nl/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/stemModificationHelpers.js +0 -94
- package/build/languageProcessing/languages/nl/helpers/internal/stemModificationHelpers.js.map +0 -1
- package/build/languageProcessing/languages/nl/helpers/internal/stemTOrDFromEndOfWord.js +0 -59
- package/build/languageProcessing/languages/nl/helpers/internal/stemTOrDFromEndOfWord.js.map +0 -1
- package/build/languageProcessing/languages/nl/values/Clause.js +0 -63
- package/build/languageProcessing/languages/nl/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/pl/Researcher.js +0 -56
- package/build/languageProcessing/languages/pl/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/firstWordExceptions.js +0 -16
- package/build/languageProcessing/languages/pl/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/functionWords.js +0 -78
- package/build/languageProcessing/languages/pl/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/internal/auxiliaries.js +0 -12
- package/build/languageProcessing/languages/pl/config/internal/auxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/internal/participles.js +0 -13
- package/build/languageProcessing/languages/pl/config/internal/participles.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/sentenceLength.js +0 -17
- package/build/languageProcessing/languages/pl/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/pl/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/pl/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/pl/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/pl/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/pl/helpers/getClauses.js +0 -34
- package/build/languageProcessing/languages/pl/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/pl/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/pl/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/pl/helpers/internal/getParticiples.js +0 -25
- package/build/languageProcessing/languages/pl/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/pl/helpers/internal/stem.js +0 -158
- package/build/languageProcessing/languages/pl/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/pl/values/Clause.js +0 -51
- package/build/languageProcessing/languages/pl/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/pt/Researcher.js +0 -57
- package/build/languageProcessing/languages/pt/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/firstWordExceptions.js +0 -20
- package/build/languageProcessing/languages/pt/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/functionWords.js +0 -98
- package/build/languageProcessing/languages/pt/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceAuxiliaries.js +0 -12
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceParticiples.js +0 -13
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceParticiples.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/pt/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/stopWords.js +0 -12
- package/build/languageProcessing/languages/pt/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/transitionWords.js +0 -11
- package/build/languageProcessing/languages/pt/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/pt/config/twoPartTransitionWords.js +0 -12
- package/build/languageProcessing/languages/pt/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/pt/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/pt/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/pt/helpers/getClauses.js +0 -38
- package/build/languageProcessing/languages/pt/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/pt/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/pt/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/pt/helpers/internal/getParticiples.js +0 -43
- package/build/languageProcessing/languages/pt/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/pt/helpers/internal/stem.js +0 -283
- package/build/languageProcessing/languages/pt/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/pt/values/Clause.js +0 -50
- package/build/languageProcessing/languages/pt/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/ru/Researcher.js +0 -57
- package/build/languageProcessing/languages/ru/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/firstWordExceptions.js +0 -16
- package/build/languageProcessing/languages/ru/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/fleschReadingEaseScores.js +0 -27
- package/build/languageProcessing/languages/ru/config/fleschReadingEaseScores.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/functionWords.js +0 -91
- package/build/languageProcessing/languages/ru/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/internal/participlesShortenedList.js +0 -27
- package/build/languageProcessing/languages/ru/config/internal/participlesShortenedList.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/internal/passiveVoiceParticiples.js +0 -24
- package/build/languageProcessing/languages/ru/config/internal/passiveVoiceParticiples.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/sentenceLength.js +0 -10
- package/build/languageProcessing/languages/ru/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/ru/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ru/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/ru/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/ru/helpers/calculateFleschReadingScore.js +0 -23
- package/build/languageProcessing/languages/ru/helpers/calculateFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/languages/ru/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/ru/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/ru/helpers/internal/stem.js +0 -271
- package/build/languageProcessing/languages/ru/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/ru/helpers/isPassiveSentence.js +0 -22
- package/build/languageProcessing/languages/ru/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/sk/Researcher.js +0 -55
- package/build/languageProcessing/languages/sk/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/sk/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/functionWords.js +0 -18
- package/build/languageProcessing/languages/sk/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/internal/nonPassives.js +0 -14
- package/build/languageProcessing/languages/sk/config/internal/nonPassives.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/internal/passiveVoiceAuxiliaries.js +0 -10
- package/build/languageProcessing/languages/sk/config/internal/passiveVoiceAuxiliaries.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/stopWords.js +0 -13
- package/build/languageProcessing/languages/sk/config/stopWords.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/sk/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/sk/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/sk/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/sk/helpers/getClauses.js +0 -35
- package/build/languageProcessing/languages/sk/helpers/getClauses.js.map +0 -1
- package/build/languageProcessing/languages/sk/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/sk/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/sk/helpers/internal/getParticiples.js +0 -24
- package/build/languageProcessing/languages/sk/helpers/internal/getParticiples.js.map +0 -1
- package/build/languageProcessing/languages/sk/helpers/internal/stem.js +0 -322
- package/build/languageProcessing/languages/sk/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/sk/values/Clause.js +0 -47
- package/build/languageProcessing/languages/sk/values/Clause.js.map +0 -1
- package/build/languageProcessing/languages/sv/Researcher.js +0 -54
- package/build/languageProcessing/languages/sv/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/sv/config/firstWordExceptions.js +0 -21
- package/build/languageProcessing/languages/sv/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/sv/config/functionWords.js +0 -74
- package/build/languageProcessing/languages/sv/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/sv/config/internal/passiveVerbs.js +0 -12
- package/build/languageProcessing/languages/sv/config/internal/passiveVerbs.js.map +0 -1
- package/build/languageProcessing/languages/sv/config/keyphraseLength.js +0 -17
- package/build/languageProcessing/languages/sv/config/keyphraseLength.js.map +0 -1
- package/build/languageProcessing/languages/sv/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/sv/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/sv/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/sv/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/sv/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/sv/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/sv/helpers/internal/stem.js +0 -159
- package/build/languageProcessing/languages/sv/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/sv/helpers/isPassiveSentence.js +0 -22
- package/build/languageProcessing/languages/sv/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/languages/tr/Researcher.js +0 -52
- package/build/languageProcessing/languages/tr/Researcher.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/firstWordExceptions.js +0 -18
- package/build/languageProcessing/languages/tr/config/firstWordExceptions.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/functionWords.js +0 -51
- package/build/languageProcessing/languages/tr/config/functionWords.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/internal/nonPassiveExceptions.js +0 -13
- package/build/languageProcessing/languages/tr/config/internal/nonPassiveExceptions.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/internal/passiveEndings.js +0 -13
- package/build/languageProcessing/languages/tr/config/internal/passiveEndings.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/sentenceLength.js +0 -14
- package/build/languageProcessing/languages/tr/config/sentenceLength.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/transitionWords.js +0 -13
- package/build/languageProcessing/languages/tr/config/transitionWords.js.map +0 -1
- package/build/languageProcessing/languages/tr/config/twoPartTransitionWords.js +0 -13
- package/build/languageProcessing/languages/tr/config/twoPartTransitionWords.js.map +0 -1
- package/build/languageProcessing/languages/tr/helpers/getStemmer.js +0 -28
- package/build/languageProcessing/languages/tr/helpers/getStemmer.js.map +0 -1
- package/build/languageProcessing/languages/tr/helpers/internal/stem.js +0 -25
- package/build/languageProcessing/languages/tr/helpers/internal/stem.js.map +0 -1
- package/build/languageProcessing/languages/tr/helpers/isPassiveSentence.js +0 -46
- package/build/languageProcessing/languages/tr/helpers/isPassiveSentence.js.map +0 -1
- package/build/languageProcessing/researches/altTagCount.js +0 -72
- package/build/languageProcessing/researches/altTagCount.js.map +0 -1
- package/build/languageProcessing/researches/countSentencesFromText.js +0 -26
- package/build/languageProcessing/researches/countSentencesFromText.js.map +0 -1
- package/build/languageProcessing/researches/findKeyphraseInSEOTitle.js +0 -257
- package/build/languageProcessing/researches/findKeyphraseInSEOTitle.js.map +0 -1
- package/build/languageProcessing/researches/findKeywordInFirstParagraph.js +0 -80
- package/build/languageProcessing/researches/findKeywordInFirstParagraph.js.map +0 -1
- package/build/languageProcessing/researches/findTransitionWords.js +0 -119
- package/build/languageProcessing/researches/findTransitionWords.js.map +0 -1
- package/build/languageProcessing/researches/functionWordsInKeyphrase.js +0 -48
- package/build/languageProcessing/researches/functionWordsInKeyphrase.js.map +0 -1
- package/build/languageProcessing/researches/getAnchorsWithKeyphrase.js +0 -222
- package/build/languageProcessing/researches/getAnchorsWithKeyphrase.js.map +0 -1
- package/build/languageProcessing/researches/getFleschReadingScore.js +0 -152
- package/build/languageProcessing/researches/getFleschReadingScore.js.map +0 -1
- package/build/languageProcessing/researches/getKeywordDensity.js +0 -49
- package/build/languageProcessing/researches/getKeywordDensity.js.map +0 -1
- package/build/languageProcessing/researches/getLinkStatistics.js +0 -56
- package/build/languageProcessing/researches/getLinkStatistics.js.map +0 -1
- package/build/languageProcessing/researches/getLinks.js +0 -23
- package/build/languageProcessing/researches/getLinks.js.map +0 -1
- package/build/languageProcessing/researches/getLongCenterAlignedTexts.js +0 -42
- package/build/languageProcessing/researches/getLongCenterAlignedTexts.js.map +0 -1
- package/build/languageProcessing/researches/getParagraphLength.js +0 -49
- package/build/languageProcessing/researches/getParagraphLength.js.map +0 -1
- package/build/languageProcessing/researches/getParagraphs.js +0 -23
- package/build/languageProcessing/researches/getParagraphs.js.map +0 -1
- package/build/languageProcessing/researches/getPassiveVoiceResult.js +0 -127
- package/build/languageProcessing/researches/getPassiveVoiceResult.js.map +0 -1
- package/build/languageProcessing/researches/getProminentWordsForInsights.js +0 -45
- package/build/languageProcessing/researches/getProminentWordsForInsights.js.map +0 -1
- package/build/languageProcessing/researches/getProminentWordsForInternalLinking.js +0 -103
- package/build/languageProcessing/researches/getProminentWordsForInternalLinking.js.map +0 -1
- package/build/languageProcessing/researches/getSentenceBeginnings.js +0 -122
- package/build/languageProcessing/researches/getSentenceBeginnings.js.map +0 -1
- package/build/languageProcessing/researches/getSubheadingTextLengths.js +0 -60
- package/build/languageProcessing/researches/getSubheadingTextLengths.js.map +0 -1
- package/build/languageProcessing/researches/getWordForms.js +0 -183
- package/build/languageProcessing/researches/getWordForms.js.map +0 -1
- package/build/languageProcessing/researches/h1s.js +0 -17
- package/build/languageProcessing/researches/h1s.js.map +0 -1
- package/build/languageProcessing/researches/imageCount.js +0 -22
- package/build/languageProcessing/researches/imageCount.js.map +0 -1
- package/build/languageProcessing/researches/index.js +0 -28
- package/build/languageProcessing/researches/index.js.map +0 -1
- package/build/languageProcessing/researches/keyphraseDistribution.js +0 -233
- package/build/languageProcessing/researches/keyphraseDistribution.js.map +0 -1
- package/build/languageProcessing/researches/keyphraseLength.js +0 -23
- package/build/languageProcessing/researches/keyphraseLength.js.map +0 -1
- package/build/languageProcessing/researches/keywordCount.js +0 -135
- package/build/languageProcessing/researches/keywordCount.js.map +0 -1
- package/build/languageProcessing/researches/keywordCountInUrl.js +0 -58
- package/build/languageProcessing/researches/keywordCountInUrl.js.map +0 -1
- package/build/languageProcessing/researches/matchKeywordInSubheadings.js +0 -68
- package/build/languageProcessing/researches/matchKeywordInSubheadings.js.map +0 -1
- package/build/languageProcessing/researches/metaDescriptionKeyword.js +0 -78
- package/build/languageProcessing/researches/metaDescriptionKeyword.js.map +0 -1
- package/build/languageProcessing/researches/metaDescriptionLength.js +0 -19
- package/build/languageProcessing/researches/metaDescriptionLength.js.map +0 -1
- package/build/languageProcessing/researches/pageTitleWidth.js +0 -18
- package/build/languageProcessing/researches/pageTitleWidth.js.map +0 -1
- package/build/languageProcessing/researches/readingTime.js +0 -84
- package/build/languageProcessing/researches/readingTime.js.map +0 -1
- package/build/languageProcessing/researches/sentences.js +0 -26
- package/build/languageProcessing/researches/sentences.js.map +0 -1
- package/build/languageProcessing/researches/videoCount.js +0 -39
- package/build/languageProcessing/researches/videoCount.js.map +0 -1
- package/build/languageProcessing/researches/wordComplexity.js +0 -128
- package/build/languageProcessing/researches/wordComplexity.js.map +0 -1
- package/build/languageProcessing/researches/wordCountInText.js +0 -36
- package/build/languageProcessing/researches/wordCountInText.js.map +0 -1
- package/build/languageProcessing/values/Clause.js +0 -113
- package/build/languageProcessing/values/Clause.js.map +0 -1
- package/build/languageProcessing/values/ProminentWord.js +0 -101
- package/build/languageProcessing/values/ProminentWord.js.map +0 -1
- package/build/languageProcessing/values/Sentence.js +0 -116
- package/build/languageProcessing/values/Sentence.js.map +0 -1
- package/build/languageProcessing/values/index.js +0 -28
- package/build/languageProcessing/values/index.js.map +0 -1
- package/build/markers/addMark.js +0 -16
- package/build/markers/addMark.js.map +0 -1
- package/build/markers/addMarkSingleWord.js +0 -37
- package/build/markers/addMarkSingleWord.js.map +0 -1
- package/build/markers/index.js +0 -21
- package/build/markers/index.js.map +0 -1
- package/build/markers/removeDuplicateMarks.js +0 -31
- package/build/markers/removeDuplicateMarks.js.map +0 -1
- package/build/markers/removeMarks.js +0 -16
- package/build/markers/removeMarks.js.map +0 -1
- package/build/parse/build/build.js +0 -62
- package/build/parse/build/build.js.map +0 -1
- package/build/parse/build/index.js +0 -14
- package/build/parse/build/index.js.map +0 -1
- package/build/parse/build/private/adapt.js +0 -111
- package/build/parse/build/private/adapt.js.map +0 -1
- package/build/parse/build/private/adaptAttributes.js +0 -41
- package/build/parse/build/private/adaptAttributes.js.map +0 -1
- package/build/parse/build/private/alwaysFilterElements.js +0 -32
- package/build/parse/build/private/alwaysFilterElements.js.map +0 -1
- package/build/parse/build/private/combineIntoImplicitParagraphs.js +0 -129
- package/build/parse/build/private/combineIntoImplicitParagraphs.js.map +0 -1
- package/build/parse/build/private/filterBeforeTokenizing.js +0 -37
- package/build/parse/build/private/filterBeforeTokenizing.js.map +0 -1
- package/build/parse/build/private/filterHelpers.js +0 -52
- package/build/parse/build/private/filterHelpers.js.map +0 -1
- package/build/parse/build/private/filterTree.js +0 -47
- package/build/parse/build/private/filterTree.js.map +0 -1
- package/build/parse/build/private/getTextElementPositions.js +0 -184
- package/build/parse/build/private/getTextElementPositions.js.map +0 -1
- package/build/parse/build/private/helpers/parseClassAttribute.js +0 -15
- package/build/parse/build/private/helpers/parseClassAttribute.js.map +0 -1
- package/build/parse/build/private/isPhrasingContent.js +0 -30
- package/build/parse/build/private/isPhrasingContent.js.map +0 -1
- package/build/parse/build/private/parseBlocks.js +0 -151
- package/build/parse/build/private/parseBlocks.js.map +0 -1
- package/build/parse/build/private/tokenize.js +0 -78
- package/build/parse/build/private/tokenize.js.map +0 -1
- package/build/parse/language/LanguageProcessor.js +0 -77
- package/build/parse/language/LanguageProcessor.js.map +0 -1
- package/build/parse/structure/Heading.js +0 -32
- package/build/parse/structure/Heading.js.map +0 -1
- package/build/parse/structure/Node.js +0 -75
- package/build/parse/structure/Node.js.map +0 -1
- package/build/parse/structure/Paragraph.js +0 -53
- package/build/parse/structure/Paragraph.js.map +0 -1
- package/build/parse/structure/Sentence.js +0 -36
- package/build/parse/structure/Sentence.js.map +0 -1
- package/build/parse/structure/SourceCodeLocation.js +0 -46
- package/build/parse/structure/SourceCodeLocation.js.map +0 -1
- package/build/parse/structure/Text.js +0 -33
- package/build/parse/structure/Text.js.map +0 -1
- package/build/parse/structure/Token.js +0 -29
- package/build/parse/structure/Token.js.map +0 -1
- package/build/parse/structure/index.js +0 -35
- package/build/parse/structure/index.js.map +0 -1
- package/build/parse/traverse/findAllInTree.js +0 -62
- package/build/parse/traverse/findAllInTree.js.map +0 -1
- package/build/parse/traverse/index.js +0 -21
- package/build/parse/traverse/index.js.map +0 -1
- package/build/parse/traverse/innerText.js +0 -30
- package/build/parse/traverse/innerText.js.map +0 -1
- package/build/parsedPaper/ParsedPaper.js +0 -100
- package/build/parsedPaper/ParsedPaper.js.map +0 -1
- package/build/parsedPaper/assess/TreeAssessor.js +0 -181
- package/build/parsedPaper/assess/TreeAssessor.js.map +0 -1
- package/build/parsedPaper/assess/assessmentListFactories.js +0 -77
- package/build/parsedPaper/assess/assessmentListFactories.js.map +0 -1
- package/build/parsedPaper/assess/assessments/Assessment.js +0 -86
- package/build/parsedPaper/assess/assessments/Assessment.js.map +0 -1
- package/build/parsedPaper/assess/assessments/index.js +0 -14
- package/build/parsedPaper/assess/assessments/index.js.map +0 -1
- package/build/parsedPaper/assess/assessorFactories.js +0 -104
- package/build/parsedPaper/assess/assessorFactories.js.map +0 -1
- package/build/parsedPaper/assess/cornerstone/assessmentListFactories.js +0 -51
- package/build/parsedPaper/assess/cornerstone/assessmentListFactories.js.map +0 -1
- package/build/parsedPaper/assess/cornerstone/index.js +0 -11
- package/build/parsedPaper/assess/cornerstone/index.js.map +0 -1
- package/build/parsedPaper/assess/index.js +0 -31
- package/build/parsedPaper/assess/index.js.map +0 -1
- package/build/parsedPaper/build/PaperParser.js +0 -103
- package/build/parsedPaper/build/PaperParser.js.map +0 -1
- package/build/parsedPaper/build/linguisticParsing/Sentence.js +0 -95
- package/build/parsedPaper/build/linguisticParsing/Sentence.js.map +0 -1
- package/build/parsedPaper/build/linguisticParsing/SentenceTokenizer.js +0 -294
- package/build/parsedPaper/build/linguisticParsing/SentenceTokenizer.js.map +0 -1
- package/build/parsedPaper/build/linguisticParsing/parseText.js +0 -26
- package/build/parsedPaper/build/linguisticParsing/parseText.js.map +0 -1
- package/build/parsedPaper/build/tree/TreeBuilder.js +0 -82
- package/build/parsedPaper/build/tree/TreeBuilder.js.map +0 -1
- package/build/parsedPaper/build/tree/cleanup/calculateTextIndices.js +0 -183
- package/build/parsedPaper/build/tree/cleanup/calculateTextIndices.js.map +0 -1
- package/build/parsedPaper/build/tree/cleanup/getElementContent.js +0 -27
- package/build/parsedPaper/build/tree/cleanup/getElementContent.js.map +0 -1
- package/build/parsedPaper/build/tree/cleanup/postParsing.js +0 -43
- package/build/parsedPaper/build/tree/cleanup/postParsing.js.map +0 -1
- package/build/parsedPaper/build/tree/html/HTMLTreeConverter.js +0 -226
- package/build/parsedPaper/build/tree/html/HTMLTreeConverter.js.map +0 -1
- package/build/parsedPaper/build/tree/html/buildTree.js +0 -36
- package/build/parsedPaper/build/tree/html/buildTree.js.map +0 -1
- package/build/parsedPaper/build/tree/html/htmlConstants.js +0 -35
- package/build/parsedPaper/build/tree/html/htmlConstants.js.map +0 -1
- package/build/parsedPaper/build/tree/index.js +0 -20
- package/build/parsedPaper/build/tree/index.js.map +0 -1
- package/build/parsedPaper/build/tree/metadata/buildTree.js +0 -36
- package/build/parsedPaper/build/tree/metadata/buildTree.js.map +0 -1
- package/build/parsedPaper/research/TreeResearcher.js +0 -136
- package/build/parsedPaper/research/TreeResearcher.js.map +0 -1
- package/build/parsedPaper/research/index.js +0 -14
- package/build/parsedPaper/research/index.js.map +0 -1
- package/build/parsedPaper/research/researches/Headings.js +0 -26
- package/build/parsedPaper/research/researches/Headings.js.map +0 -1
- package/build/parsedPaper/research/researches/LinkStatistics.js +0 -129
- package/build/parsedPaper/research/researches/LinkStatistics.js.map +0 -1
- package/build/parsedPaper/research/researches/Research.js +0 -58
- package/build/parsedPaper/research/researches/Research.js.map +0 -1
- package/build/parsedPaper/research/researches/index.js +0 -14
- package/build/parsedPaper/research/researches/index.js.map +0 -1
- package/build/parsedPaper/structure/tree/FormattingElement.js +0 -73
- package/build/parsedPaper/structure/tree/FormattingElement.js.map +0 -1
- package/build/parsedPaper/structure/tree/SourceCodeLocation.js +0 -48
- package/build/parsedPaper/structure/tree/SourceCodeLocation.js.map +0 -1
- package/build/parsedPaper/structure/tree/TextContainer.js +0 -89
- package/build/parsedPaper/structure/tree/TextContainer.js.map +0 -1
- package/build/parsedPaper/structure/tree/index.js +0 -76
- package/build/parsedPaper/structure/tree/index.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/Heading.js +0 -33
- package/build/parsedPaper/structure/tree/nodes/Heading.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/LeafNode.js +0 -82
- package/build/parsedPaper/structure/tree/nodes/LeafNode.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/List.js +0 -54
- package/build/parsedPaper/structure/tree/nodes/List.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/ListItem.js +0 -34
- package/build/parsedPaper/structure/tree/nodes/ListItem.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/MetadataMiscellaneous.js +0 -51
- package/build/parsedPaper/structure/tree/nodes/MetadataMiscellaneous.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/MetadataText.js +0 -31
- package/build/parsedPaper/structure/tree/nodes/MetadataText.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/Node.js +0 -159
- package/build/parsedPaper/structure/tree/nodes/Node.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/Paragraph.js +0 -29
- package/build/parsedPaper/structure/tree/nodes/Paragraph.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/StructuredNode.js +0 -60
- package/build/parsedPaper/structure/tree/nodes/StructuredNode.js.map +0 -1
- package/build/parsedPaper/structure/tree/nodes/index.js +0 -70
- package/build/parsedPaper/structure/tree/nodes/index.js.map +0 -1
- package/build/scoring/assessments/assessment.js +0 -68
- package/build/scoring/assessments/assessment.js.map +0 -1
- package/build/scoring/assessments/index.js +0 -64
- package/build/scoring/assessments/index.js.map +0 -1
- package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js +0 -162
- package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js.map +0 -1
- package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js +0 -131
- package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js.map +0 -1
- package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js +0 -173
- package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js.map +0 -1
- package/build/scoring/assessments/readability/TransitionWordsAssessment.js +0 -159
- package/build/scoring/assessments/readability/TransitionWordsAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/ImageCountAssessment.js +0 -107
- package/build/scoring/assessments/seo/ImageCountAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/InternalLinksAssessment.js +0 -108
- package/build/scoring/assessments/seo/InternalLinksAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js +0 -105
- package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/KeyphraseAssessment.js +0 -100
- package/build/scoring/assessments/seo/KeyphraseAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js +0 -105
- package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/KeywordDensityAssessment.js +0 -111
- package/build/scoring/assessments/seo/KeywordDensityAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js +0 -114
- package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js +0 -107
- package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js +0 -111
- package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js +0 -104
- package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/OutboundLinksAssessment.js +0 -110
- package/build/scoring/assessments/seo/OutboundLinksAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/PageTitleWidthAssessment.js +0 -102
- package/build/scoring/assessments/seo/PageTitleWidthAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/SingleH1Assessment.js +0 -110
- package/build/scoring/assessments/seo/SingleH1Assessment.js.map +0 -1
- package/build/scoring/assessments/seo/SingleTitleAssessment.js +0 -103
- package/build/scoring/assessments/seo/SingleTitleAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js +0 -103
- package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/TextImagesAssessment.js +0 -138
- package/build/scoring/assessments/seo/TextImagesAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/TextLengthAssessment.js +0 -100
- package/build/scoring/assessments/seo/TextLengthAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/UrlKeywordAssessment.js +0 -102
- package/build/scoring/assessments/seo/UrlKeywordAssessment.js.map +0 -1
- package/build/scoring/assessments/seo/UrlLengthAssessment.js +0 -102
- package/build/scoring/assessments/seo/UrlLengthAssessment.js.map +0 -1
- package/build/scoring/assessors/assessor.js +0 -248
- package/build/scoring/assessors/assessor.js.map +0 -1
- package/build/scoring/assessors/avadaAssessor.js +0 -65
- package/build/scoring/assessors/avadaAssessor.js.map +0 -1
- package/build/scoring/assessors/contentAssessor.js +0 -149
- package/build/scoring/assessors/contentAssessor.js.map +0 -1
- package/build/scoring/assessors/index.js +0 -35
- package/build/scoring/assessors/index.js.map +0 -1
- package/build/scoring/assessors/seoAssessor.js +0 -44
- package/build/scoring/assessors/seoAssessor.js.map +0 -1
- package/build/scoring/helpers/assessments/checkForTooLongSentences.js +0 -19
- package/build/scoring/helpers/assessments/checkForTooLongSentences.js.map +0 -1
- package/build/scoring/helpers/assessments/inRange.js +0 -51
- package/build/scoring/helpers/assessments/inRange.js.map +0 -1
- package/build/scoring/helpers/assessments/keyphraseLengthFactor.js +0 -17
- package/build/scoring/helpers/assessments/keyphraseLengthFactor.js.map +0 -1
- package/build/scoring/helpers/assessments/recommendedKeywordCount.js +0 -47
- package/build/scoring/helpers/assessments/recommendedKeywordCount.js.map +0 -1
- package/build/scoring/helpers/index.js +0 -92
- package/build/scoring/helpers/index.js.map +0 -1
- package/build/scoring/interpreters/index.js +0 -14
- package/build/scoring/interpreters/index.js.map +0 -1
- package/build/scoring/interpreters/scoreToRating.js +0 -32
- package/build/scoring/interpreters/scoreToRating.js.map +0 -1
- package/build/scoring/renderers/AssessorPresenter.js +0 -348
- package/build/scoring/renderers/AssessorPresenter.js.map +0 -1
- package/build/scoring/scoreAggregators/ReadabilityScoreAggregator.js +0 -203
- package/build/scoring/scoreAggregators/ReadabilityScoreAggregator.js.map +0 -1
- package/build/scoring/scoreAggregators/SEOScoreAggregator.js +0 -60
- package/build/scoring/scoreAggregators/SEOScoreAggregator.js.map +0 -1
- package/build/scoring/scoreAggregators/ScoreAggregator.js +0 -30
- package/build/scoring/scoreAggregators/ScoreAggregator.js.map +0 -1
- package/build/scoring/scoreAggregators/index.js +0 -28
- package/build/scoring/scoreAggregators/index.js.map +0 -1
- package/build/values/AssessmentResult.js +0 -485
- package/build/values/AssessmentResult.js.map +0 -1
- package/build/values/Mark.js +0 -273
- package/build/values/Mark.js.map +0 -1
- package/build/values/Paper.js +0 -425
- package/build/values/Paper.js.map +0 -1
- package/build/values/index.js +0 -28
- package/build/values/index.js.map +0 -1
- package/build/vendor/turkishStemmer.js +0 -2817
- package/build/vendor/turkishStemmer.js.map +0 -1
- /package/{build → src}/languageProcessing/languages/de/config/syllables.json +0 -0
- /package/{build → src}/languageProcessing/languages/en/config/syllables.json +0 -0
- /package/{build → src}/languageProcessing/languages/es/config/syllables.json +0 -0
- /package/{build → src}/languageProcessing/languages/fr/config/syllables.json +0 -0
- /package/{build → src}/languageProcessing/languages/it/config/syllables.json +0 -0
- /package/{build → src}/languageProcessing/languages/nl/config/syllables.json +0 -0
- /package/{build → src}/languageProcessing/languages/pt/config/syllables.json +0 -0
- /package/{build → src}/languageProcessing/languages/ru/config/syllables.json +0 -0
|
@@ -0,0 +1,632 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2015 Mouaffak A. Sarhan
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
* in the Software without restriction, including without limitation the rights
|
|
7
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
* furnished to do so, subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
* SOFTWARE.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Tries to match a word with a regex. If matched, modifies the string according to the indicated pattern.
|
|
25
|
+
*
|
|
26
|
+
* @param {string} word The word to check.
|
|
27
|
+
* @param {string[]} regexAndReplacement The regex to match the word with and what the word should be replaced with if it is matched.
|
|
28
|
+
*
|
|
29
|
+
* @returns {string} The modified word or the original word if it was not matched.
|
|
30
|
+
*/
|
|
31
|
+
const matchWithRegexAndReplace = function( word, regexAndReplacement ) {
|
|
32
|
+
return word.replace( new RegExp( regexAndReplacement[ 0 ] ),
|
|
33
|
+
regexAndReplacement[ 1 ] );
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if the word is on the list of three-letter roots which had the last weak letter removed (so are now two letters long).
|
|
38
|
+
* If the word is on the list, add back the removed last letter and return the three-letter root.
|
|
39
|
+
* Examples: طر -> طري (word with last weak letter ي (yeh) removed) , حص -> حصا (word with last weak letter ا (alef) removed)
|
|
40
|
+
*
|
|
41
|
+
* @param {string} word The two-letter word to check.
|
|
42
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
43
|
+
*
|
|
44
|
+
* @returns {string|null} The word with the last weak letter added back or null if the word was not found on a list.
|
|
45
|
+
*/
|
|
46
|
+
const checkWordsWithRemovedLastLetter = function( word, morphologyData ) {
|
|
47
|
+
const externalStemmer = morphologyData.externalStemmer;
|
|
48
|
+
const characters = externalStemmer.characters;
|
|
49
|
+
|
|
50
|
+
if ( externalStemmer.wordsWithLastAlefRemoved.includes( word ) ) {
|
|
51
|
+
return word + characters.alef;
|
|
52
|
+
}
|
|
53
|
+
if ( externalStemmer.wordsWithLastHamzaRemoved.includes( word ) ) {
|
|
54
|
+
return word + characters.alef_hamza_above;
|
|
55
|
+
}
|
|
56
|
+
if ( externalStemmer.wordsWithLastMaksoraRemoved.includes( word ) ) {
|
|
57
|
+
return word + characters.yeh_maksorah;
|
|
58
|
+
}
|
|
59
|
+
if ( externalStemmer.wordsWithLastYehRemoved.includes( word ) ) {
|
|
60
|
+
return word + characters.yeh;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if the word is on the list of three-letter roots which had the first weak letter removed (so are now two letters long).
|
|
66
|
+
* If the word is on the list, add back the removed first letter and return the three-letter root.
|
|
67
|
+
* Examples: مض -> ومض (word with first weak letter و (waw) removed) , سن -> يسن (word with first weak letter ي (yeh) removed)
|
|
68
|
+
*
|
|
69
|
+
* @param {string} word The two-letter word to check.
|
|
70
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
71
|
+
*
|
|
72
|
+
* @returns {string|null} The word with the first weak letter added back or null if the word was not found on any list.
|
|
73
|
+
*/
|
|
74
|
+
const checkWordsWithRemovedFirstLetter = function( word, morphologyData ) {
|
|
75
|
+
const externalStemmer = morphologyData.externalStemmer;
|
|
76
|
+
const characters = externalStemmer.characters;
|
|
77
|
+
|
|
78
|
+
if ( externalStemmer.wordsWithFirstWawRemoved.includes( word ) ) {
|
|
79
|
+
return characters.waw + word;
|
|
80
|
+
}
|
|
81
|
+
if ( externalStemmer.wordsWithFirstYehRemoved.includes( word ) ) {
|
|
82
|
+
return characters.yeh + word;
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Check if the word is on the list of three-letter roots which had the middle weak letter removed (so are now two letters long).
|
|
88
|
+
* If the word is on the list, add back the removed middle letter and return the three-letter root.
|
|
89
|
+
* Examples: غز -> غوز (word with middle weak letter و (waw) removed), لن -> لين (word with middle weak letter ي (yeh) removed)
|
|
90
|
+
*
|
|
91
|
+
* @param {string} word The two-letter word to check.
|
|
92
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
93
|
+
*
|
|
94
|
+
* @returns {string|null} The word with the middle weak letter added back or null if the word was not found on a list.
|
|
95
|
+
*/
|
|
96
|
+
const checkWordsWithRemovedMiddleLetter = function( word, morphologyData ) {
|
|
97
|
+
const externalStemmer = morphologyData.externalStemmer;
|
|
98
|
+
const characters = externalStemmer.characters;
|
|
99
|
+
|
|
100
|
+
if ( externalStemmer.wordsWithMiddleWawRemoved.includes( word ) ) {
|
|
101
|
+
return word[ 0 ] + characters.waw + word[ 1 ];
|
|
102
|
+
}
|
|
103
|
+
if ( externalStemmer.wordsWithMiddleYehRemoved.includes( word ) ) {
|
|
104
|
+
return word[ 0 ] + characters.yeh + word[ 1 ];
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Find the root of two-letter words. Two-letter words usually come from three-letter roots for which a letter was deleted
|
|
111
|
+
* as it is a duplicated last letter or a weak letter.
|
|
112
|
+
*
|
|
113
|
+
* @param {string} word The two-letter word to process.
|
|
114
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
115
|
+
*
|
|
116
|
+
* @returns {string} The three-letter root or the input word if no root was found.
|
|
117
|
+
*/
|
|
118
|
+
const processTwoLetterWords = function( word, morphologyData ) {
|
|
119
|
+
// Check whether the word is on the list of words with removed duplicate last letter. If it is, add back the removed letter to get the root.
|
|
120
|
+
if ( morphologyData.externalStemmer.wordsWithRemovedDuplicateLetter.includes( word ) ) {
|
|
121
|
+
return word + word.substring( 1 );
|
|
122
|
+
}
|
|
123
|
+
// Check whether the word is on one of the lists of words with removed weak letter or hamza.
|
|
124
|
+
const wordAfterLastLetterCheck = checkWordsWithRemovedLastLetter( word, morphologyData );
|
|
125
|
+
if ( wordAfterLastLetterCheck ) {
|
|
126
|
+
return wordAfterLastLetterCheck;
|
|
127
|
+
}
|
|
128
|
+
const wordAfterFirstLetterCheck = checkWordsWithRemovedFirstLetter( word, morphologyData );
|
|
129
|
+
if ( wordAfterFirstLetterCheck ) {
|
|
130
|
+
return wordAfterFirstLetterCheck;
|
|
131
|
+
}
|
|
132
|
+
const wordAfterMiddleLetterCheck = checkWordsWithRemovedMiddleLetter( word, morphologyData );
|
|
133
|
+
if ( wordAfterMiddleLetterCheck ) {
|
|
134
|
+
return wordAfterMiddleLetterCheck;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return word;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Remove the middle/last weak letter or hamza in a three letter word. Find its root by checking the appropriate exception lists
|
|
142
|
+
* (words with middle letter removed or words with last letter removed) and attaching the removed letter back.
|
|
143
|
+
* Example: بدء -> بد -> بدأ (three letter word with (ء) hamza ending,
|
|
144
|
+
* which is found on the list of words with last letter removed after removing the suffix)
|
|
145
|
+
*
|
|
146
|
+
* @param {string} word The three-letter word to check.
|
|
147
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
148
|
+
* @param {string[]} replacementPattern The regex to find and remove middle or last weak letter/hamza in three letter words
|
|
149
|
+
* @param {function} functionToRunToGetRoot The function that checks lists of words with either middle or last letter removed
|
|
150
|
+
* and attaches it back.
|
|
151
|
+
*
|
|
152
|
+
* @returns {string|null} The root or null if no root was found.
|
|
153
|
+
*/
|
|
154
|
+
const processThreeLetterWordsWithWeakLetterOrHamza = function( word, morphologyData, replacementPattern, functionToRunToGetRoot ) {
|
|
155
|
+
// Find and remove middle or last weak letter or hamza
|
|
156
|
+
const wordAfterRemovingWeakLetterOrHamza = word.replace( new RegExp( replacementPattern[ 0 ] ),
|
|
157
|
+
replacementPattern[ 1 ] );
|
|
158
|
+
if ( wordAfterRemovingWeakLetterOrHamza !== word ) {
|
|
159
|
+
/*
|
|
160
|
+
* If the weak letter or hamza was removed, get the root by checking lists of words with middle/last weak letter
|
|
161
|
+
* or hamza removed and attaching it back.
|
|
162
|
+
*/
|
|
163
|
+
return functionToRunToGetRoot( wordAfterRemovingWeakLetterOrHamza, morphologyData );
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Get the root of three letter words.
|
|
169
|
+
* Examples: ؤكد -> أكد (three letter word with ؤ (waw_hamza) beginning, قدّ -> قدد (three letter word which has a shadda on the second letter)
|
|
170
|
+
*
|
|
171
|
+
* @param {string} word The three-letter word to check.
|
|
172
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
173
|
+
*
|
|
174
|
+
* @returns {string|null} The root or the original input word (which may already be the root).
|
|
175
|
+
*/
|
|
176
|
+
const processThreeLetterWords = function( word, morphologyData ) {
|
|
177
|
+
const characters = morphologyData.externalStemmer.characters;
|
|
178
|
+
|
|
179
|
+
// If the word exists on the list of three letter roots, return the word.
|
|
180
|
+
if ( morphologyData.externalStemmer.threeLetterRoots.includes( word ) ) {
|
|
181
|
+
return word;
|
|
182
|
+
}
|
|
183
|
+
// If the first letter is ا/ ؤ/ ئ (yeh_hamza/waw_hamza/alef), change it to أ (alef_hamza_above).
|
|
184
|
+
if ( word[ 0 ] === characters.alef || word[ 0 ] === characters.waw_hamza ||
|
|
185
|
+
word[ 0 ] === characters.yeh_hamza ) {
|
|
186
|
+
word = characters.alef_hamza_above + word.slice( 1 );
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// If the last letter is a weak letter or a hamza, check if the word is a root that may get the last weak letter/hamza removed.
|
|
190
|
+
const wordAfterLastWeakLetterOrHamzaCheck = processThreeLetterWordsWithWeakLetterOrHamza( word, morphologyData,
|
|
191
|
+
morphologyData.externalStemmer.regexRemoveLastWeakLetterOrHamza, checkWordsWithRemovedLastLetter );
|
|
192
|
+
if ( wordAfterLastWeakLetterOrHamzaCheck ) {
|
|
193
|
+
return wordAfterLastWeakLetterOrHamzaCheck;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// If the middle letter is a waw, yeh, alef or a yeh_hamza, check if the word is a root that may get the middle weak letter/hamza removed..
|
|
197
|
+
const wordAfterMiddleWeakLetterOrHamzaCheck = processThreeLetterWordsWithWeakLetterOrHamza( word, morphologyData,
|
|
198
|
+
morphologyData.externalStemmer.regexRemoveMiddleWeakLetterOrHamza, checkWordsWithRemovedMiddleLetter );
|
|
199
|
+
if ( wordAfterMiddleWeakLetterOrHamzaCheck ) {
|
|
200
|
+
return wordAfterMiddleWeakLetterOrHamzaCheck;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const regexReplaceMiddleLetterWithAlef = morphologyData.externalStemmer.regexReplaceMiddleLetterWithAlef;
|
|
204
|
+
const regexReplaceMiddleLetterWithAlefWithHamza = morphologyData.externalStemmer.regexReplaceMiddleLetterWithAlefWithHamza;
|
|
205
|
+
|
|
206
|
+
// If the word has ئ/ؤ (yeh_hamza/waw_hamza) as the second letter and ends in ر/ز/ن (noon/zai/reh), change ئ/ؤ (yeh_hamza/waw_hamza) to ا (alef).
|
|
207
|
+
const wordAfterReplacingMiddleLetterWithAlef = word.replace( new RegExp( regexReplaceMiddleLetterWithAlef[ 0 ] ),
|
|
208
|
+
regexReplaceMiddleLetterWithAlef[ 1 ] );
|
|
209
|
+
if ( wordAfterReplacingMiddleLetterWithAlef === word ) {
|
|
210
|
+
// If the second letter is a ئ/ؤ (yeh_hamza/waw_hamza) and it doesn't end in noon/zai/reh, change ئ/ؤ d to أ (alef_hamza_above).
|
|
211
|
+
word = word.replace( new RegExp( regexReplaceMiddleLetterWithAlefWithHamza[ 0 ] ),
|
|
212
|
+
regexReplaceMiddleLetterWithAlefWithHamza[ 1 ] );
|
|
213
|
+
} else {
|
|
214
|
+
word = wordAfterReplacingMiddleLetterWithAlef;
|
|
215
|
+
}
|
|
216
|
+
// If the last letter is a shadda, remove it and duplicate the last letter.
|
|
217
|
+
const regexRemoveShaddaAndDuplicateLastLetter = morphologyData.externalStemmer.regexRemoveShaddaAndDuplicateLastLetter;
|
|
218
|
+
word = word.replace( new RegExp( regexRemoveShaddaAndDuplicateLastLetter[ 0 ] ),
|
|
219
|
+
regexRemoveShaddaAndDuplicateLastLetter[ 1 ] );
|
|
220
|
+
|
|
221
|
+
return word;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Check whether the word matches the pattern (it is a 6 letter-word, the fourth and sixth letter are the same, and the pattern
|
|
226
|
+
* and the word share two same letters at the same index). If it does, remove the first character and the two last characters and
|
|
227
|
+
* get the root.
|
|
228
|
+
* Example: احولال -> حول (the stem is the 2nd to 4th character)
|
|
229
|
+
*
|
|
230
|
+
* @param {string} word The word to check.
|
|
231
|
+
* @param {number} numberSameLetters The number of letters the word and the pattern share at the same index.
|
|
232
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
233
|
+
*
|
|
234
|
+
* @returns {string} The root or the original word if word was not matched by the pattern.
|
|
235
|
+
*/
|
|
236
|
+
const checkFirstPatternAndGetRoot = function( word, numberSameLetters, morphologyData ) {
|
|
237
|
+
if ( word.length === 6 && word[ 3 ] === word[ 5 ] && numberSameLetters === 2 ) {
|
|
238
|
+
return processThreeLetterWords( word.substring( 1, 4 ), morphologyData );
|
|
239
|
+
}
|
|
240
|
+
return word;
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Checks whether the word matches the pattern (the word shares three characters with the pattern) and get the root if it does.
|
|
245
|
+
* Example: استكتب -> كتب (A word that matches pattern (استفعل))
|
|
246
|
+
*
|
|
247
|
+
* @param {string} word The word to check.
|
|
248
|
+
* @param {string} pattern The pattern to check.
|
|
249
|
+
* @param {number} numberSameLetters The number of letters the word and the pattern share at the same index.
|
|
250
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
251
|
+
*
|
|
252
|
+
* @returns {string} The root or the original word if no root was found.
|
|
253
|
+
*/
|
|
254
|
+
const checkSecondPatternAndGetRoot = function( word, pattern, numberSameLetters, morphologyData ) {
|
|
255
|
+
const characters = morphologyData.externalStemmer.characters;
|
|
256
|
+
// If the word length minus three is equal to or less than the number of same letters found in the checkPatterns function.
|
|
257
|
+
if ( word.length - 3 <= numberSameLetters ) {
|
|
258
|
+
let root = "";
|
|
259
|
+
for ( let i = 0; i < word.length; i++ ) {
|
|
260
|
+
if ( pattern[ i ] === characters.feh ||
|
|
261
|
+
pattern[ i ] === characters.aen ||
|
|
262
|
+
pattern[ i ] === characters.lam ) {
|
|
263
|
+
root = root.concat( word[ i ] );
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
return processThreeLetterWords( root, morphologyData );
|
|
268
|
+
}
|
|
269
|
+
return word;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Count the number of letters the word and the pattern to match with share at the same index.
|
|
274
|
+
*
|
|
275
|
+
* @param {string} word The word to check.
|
|
276
|
+
* @param {string} pattern The pattern to check.
|
|
277
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
278
|
+
*
|
|
279
|
+
* @returns {number} The number of shared letters between the word and the pattern at the same index.
|
|
280
|
+
*/
|
|
281
|
+
const countSharedLettersBetweenWordAndPattern = function( word, pattern, morphologyData ) {
|
|
282
|
+
const characters = morphologyData.externalStemmer.characters;
|
|
283
|
+
|
|
284
|
+
let numberSameLetters = 0;
|
|
285
|
+
for ( let i = 0; i < word.length; i++ ) {
|
|
286
|
+
if ( pattern[ i ] === word[ i ] &&
|
|
287
|
+
pattern[ i ] !== characters.feh &&
|
|
288
|
+
pattern[ i ] !== characters.aen &&
|
|
289
|
+
pattern[ i ] !== characters.lam ) {
|
|
290
|
+
numberSameLetters++;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return numberSameLetters;
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Check if a word matches a specific pattern of letters, and if it does, modify the word to get the root.
|
|
298
|
+
*
|
|
299
|
+
* @param {string} word The word to check.
|
|
300
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
301
|
+
*
|
|
302
|
+
* @returns {Object|null} An object with either the root or the modified word and the information whether the root was found,
|
|
303
|
+
* or null if the word was not modified and the root was not found.
|
|
304
|
+
*/
|
|
305
|
+
const checkPatterns = function( word, morphologyData ) {
|
|
306
|
+
// If the first letter is an alef_madda, alef_hamza_above, or alef_hamza_below (أ/إ/آ), change it to an alef (ا)
|
|
307
|
+
const wordAfterModification = matchWithRegexAndReplace( word, morphologyData.externalStemmer.regexReplaceFirstHamzaWithAlef );
|
|
308
|
+
|
|
309
|
+
// Try and find a pattern that matches the word
|
|
310
|
+
for ( const pattern of morphologyData.externalStemmer.patterns ) {
|
|
311
|
+
if ( pattern.length === wordAfterModification.length ) {
|
|
312
|
+
// Count the number of letters the word and the pattern share at the same index.
|
|
313
|
+
const numberSameLetters = countSharedLettersBetweenWordAndPattern( wordAfterModification, pattern, morphologyData );
|
|
314
|
+
|
|
315
|
+
const wordAfterCheckingFirstPattern = checkFirstPatternAndGetRoot( wordAfterModification, numberSameLetters, morphologyData );
|
|
316
|
+
if ( wordAfterCheckingFirstPattern !== wordAfterModification ) {
|
|
317
|
+
return { word: wordAfterCheckingFirstPattern, rootFound: true };
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
const wordAfterCheckingSecondPattern = checkSecondPatternAndGetRoot( wordAfterModification, pattern, numberSameLetters, morphologyData );
|
|
321
|
+
if ( wordAfterCheckingSecondPattern !== wordAfterModification ) {
|
|
322
|
+
return { word: wordAfterCheckingSecondPattern, rootFound: true };
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// If a pattern was not matched but the word was modified, return the modified word.
|
|
328
|
+
if ( wordAfterModification !== word ) {
|
|
329
|
+
return { word: wordAfterModification, rootFound: false };
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Tries to find the root of two-, three- and four-letter words by checking lists and/or applying modifications to the word.
|
|
335
|
+
*
|
|
336
|
+
* Example: the word أبطر is on the list of four-letter roots.
|
|
337
|
+
*
|
|
338
|
+
* @param {string} word The word to check.
|
|
339
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
340
|
+
*
|
|
341
|
+
* @returns {string|null} The root or null if the root was not found.
|
|
342
|
+
*/
|
|
343
|
+
const checkIfWordIsRoot = function( word, morphologyData ) {
|
|
344
|
+
// Check if the word consists of two letters and find its root.
|
|
345
|
+
if ( word.length === 2 ) {
|
|
346
|
+
return processTwoLetterWords( word, morphologyData );
|
|
347
|
+
}
|
|
348
|
+
// Check if the word consists of three letters.
|
|
349
|
+
if ( word.length === 3 ) {
|
|
350
|
+
return processThreeLetterWords( word, morphologyData );
|
|
351
|
+
}
|
|
352
|
+
// If the word consists of four letters, check if it is on the list of four-letter roots.
|
|
353
|
+
if ( word.length === 4 ) {
|
|
354
|
+
if ( morphologyData.externalStemmer.fourLetterRoots.includes( word ) ) {
|
|
355
|
+
return word;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Checks whether the word ends in a suffix, and removes it if it does.
|
|
362
|
+
*
|
|
363
|
+
* @param {string} word The word to check.
|
|
364
|
+
* @param {string[]} suffixes The suffixes to check.
|
|
365
|
+
*
|
|
366
|
+
* @returns {string} The word with the suffix removed or the input word if no suffix was found.
|
|
367
|
+
*/
|
|
368
|
+
const removeSuffix = function( word, suffixes ) {
|
|
369
|
+
for ( const suffix of suffixes ) {
|
|
370
|
+
if ( word.endsWith( suffix ) ) {
|
|
371
|
+
return word.slice( 0, -suffix.length );
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
return word;
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Checks whether the word starts with a prefix, and removes it if it does.
|
|
379
|
+
*
|
|
380
|
+
* @param {string} word The word to check.
|
|
381
|
+
* @param {string[]} prefixes The prefixes to check.
|
|
382
|
+
*
|
|
383
|
+
* @returns {string} The word with the prefix removed or the input word if no prefix was found.
|
|
384
|
+
*/
|
|
385
|
+
const removePrefix = function( word, prefixes ) {
|
|
386
|
+
for ( const prefix of prefixes ) {
|
|
387
|
+
if ( word.startsWith( prefix ) ) {
|
|
388
|
+
return word.substring( prefix.length, word.length );
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
return word;
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Searches for a suffix, removes it if found, and tries to find the root of the stemmed word. If the root is not found, the
|
|
396
|
+
* function returns null, with one exception: it is possible that in the checkPatterns function that is ran inside of this one,
|
|
397
|
+
* the word is modified but no root is found. In this case, the function returns the modified word.
|
|
398
|
+
*
|
|
399
|
+
* Example: جمعكم -> جمع (word with suffix كم which is found on the list of three-letter roots after removing the suffix).
|
|
400
|
+
*
|
|
401
|
+
* @param {string} word The word to check.
|
|
402
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
403
|
+
*
|
|
404
|
+
* @returns {Object|null} An object with the root/modified word and information about whether the root was found, or null if
|
|
405
|
+
* the word is not modified and no root is found.
|
|
406
|
+
*/
|
|
407
|
+
const processWordWithSuffix = function( word, morphologyData ) {
|
|
408
|
+
// Find and remove suffix.
|
|
409
|
+
const wordAfterRemovingSuffix = removeSuffix( word, morphologyData.externalStemmer.suffixes );
|
|
410
|
+
if ( wordAfterRemovingSuffix !== word ) {
|
|
411
|
+
// If suffix was removed, check if the stemmed word is a root.
|
|
412
|
+
const root = checkIfWordIsRoot( wordAfterRemovingSuffix, morphologyData );
|
|
413
|
+
if ( root ) {
|
|
414
|
+
return { word: root, rootFound: true };
|
|
415
|
+
}
|
|
416
|
+
// If no root was found, try to get the root by matching with a pattern.
|
|
417
|
+
const outputAfterCheckingPatterns = checkPatterns( wordAfterRemovingSuffix, morphologyData );
|
|
418
|
+
if ( outputAfterCheckingPatterns ) {
|
|
419
|
+
return outputAfterCheckingPatterns;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Searches for a prefix (other than the definite article), removes it if found, and tries to find the root of the stemmed
|
|
426
|
+
* word. If the root is not found, the function returns null, with one exception: it is possible that in the checkPatterns
|
|
427
|
+
* function that is ran inside of this one, the word is modified but no root is found. In this case, the function returns
|
|
428
|
+
* the modified word.
|
|
429
|
+
*
|
|
430
|
+
* Example: للزهور -> زهر (word with prefix لل that gets its root by matching with a pattern after removing the prefix).
|
|
431
|
+
*
|
|
432
|
+
* @param {string} word The word to check.
|
|
433
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
434
|
+
*
|
|
435
|
+
* @returns {Object|null} An object with the root/modified word and information about whether the root was found, or null if
|
|
436
|
+
* the word is not modified and no root is found.
|
|
437
|
+
*/
|
|
438
|
+
const processWordWithPrefix = function( word, morphologyData ) {
|
|
439
|
+
// Find and remove prefix.
|
|
440
|
+
let wordAfterRemovingPrefix = removePrefix( word, morphologyData.externalStemmer.prefixes );
|
|
441
|
+
if ( wordAfterRemovingPrefix !== word ) {
|
|
442
|
+
// If prefix was removed, check if the stemmed word is a root.
|
|
443
|
+
const root = checkIfWordIsRoot( wordAfterRemovingPrefix, morphologyData );
|
|
444
|
+
if ( root ) {
|
|
445
|
+
return { word: root, rootFound: true };
|
|
446
|
+
}
|
|
447
|
+
// If no root was found, try to get the root by matching with a pattern.
|
|
448
|
+
const outputAfterCheckingPatterns = checkPatterns( wordAfterRemovingPrefix, morphologyData );
|
|
449
|
+
if ( outputAfterCheckingPatterns ) {
|
|
450
|
+
if ( outputAfterCheckingPatterns.rootFound === true ) {
|
|
451
|
+
return outputAfterCheckingPatterns;
|
|
452
|
+
}
|
|
453
|
+
wordAfterRemovingPrefix = outputAfterCheckingPatterns.word;
|
|
454
|
+
}
|
|
455
|
+
// If the root was still not found, try to find and remove suffixes and find the root again.
|
|
456
|
+
const outputAfterCheckingForSuffixes = processWordWithSuffix( wordAfterRemovingPrefix, morphologyData );
|
|
457
|
+
if ( outputAfterCheckingForSuffixes ) {
|
|
458
|
+
return outputAfterCheckingForSuffixes;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Checks if the word is a root. If root is not found, checks whether the root can be derived using a pattern. If the root is
|
|
465
|
+
* still not found, removes affixes and tries to find the root again. If the root is not found, the function returns null,
|
|
466
|
+
* with one exception: it is possible that in the checkPatterns function that is ran inside of this one, the word is modified
|
|
467
|
+
* but no root is found. In this case, the function returns the modified word.
|
|
468
|
+
*
|
|
469
|
+
* @param {string} word The word to check.
|
|
470
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
471
|
+
*
|
|
472
|
+
* @returns {Object|null} An object with the root/modified word and information about whether the root was found, or null if
|
|
473
|
+
* the word is not modified and no root is found.
|
|
474
|
+
*/
|
|
475
|
+
const findRoot = function( word, morphologyData ) {
|
|
476
|
+
// Check if the word is a root.
|
|
477
|
+
const root = checkIfWordIsRoot( word, morphologyData );
|
|
478
|
+
if ( root ) {
|
|
479
|
+
return { word: root, rootFound: true };
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// Check if the root can be derived by matching a pattern. إعدجص
|
|
483
|
+
const outputAfterCheckingPatterns = checkPatterns( word, morphologyData );
|
|
484
|
+
let stemmedWord = word;
|
|
485
|
+
if ( outputAfterCheckingPatterns ) {
|
|
486
|
+
if ( outputAfterCheckingPatterns.rootFound === true ) {
|
|
487
|
+
return outputAfterCheckingPatterns;
|
|
488
|
+
}
|
|
489
|
+
// Word: اعدجص
|
|
490
|
+
stemmedWord = outputAfterCheckingPatterns.word;
|
|
491
|
+
}
|
|
492
|
+
// Remove affixes and check if the stemmed word is a root
|
|
493
|
+
const outputAfterProcessingSuffix = processWordWithSuffix( stemmedWord, morphologyData );
|
|
494
|
+
if ( outputAfterProcessingSuffix ) {
|
|
495
|
+
return outputAfterProcessingSuffix;
|
|
496
|
+
}
|
|
497
|
+
const outputAfterRemovingPrefix = processWordWithPrefix( stemmedWord, morphologyData );
|
|
498
|
+
if ( outputAfterRemovingPrefix ) {
|
|
499
|
+
return outputAfterRemovingPrefix;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
if ( stemmedWord !== word ) {
|
|
503
|
+
return { word: stemmedWord, rootFound: false };
|
|
504
|
+
}
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Search for and remove a definite article and try to get the root of the word. If the root was not found, but the word
|
|
509
|
+
* was modified inside the checkPatterns function, returns the modified word. If the definite article was removed and the
|
|
510
|
+
* stemmed word is longer than three letters, but the root was not found, returns the stemmed word. Otherwise, if the root
|
|
511
|
+
* was not found, returns null.
|
|
512
|
+
*
|
|
513
|
+
* Example: الجدولين -> جدول (word with definite article ال and suffix ين ).
|
|
514
|
+
*
|
|
515
|
+
* @param {string} word The word to check.
|
|
516
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
517
|
+
*
|
|
518
|
+
* @returns {Object|null} An object with the root/modified word and information about whether the root was found, or null if
|
|
519
|
+
* the word is not modified and no root is found.
|
|
520
|
+
*/
|
|
521
|
+
const processWordWithDefiniteArticle = function( word, morphologyData ) {
|
|
522
|
+
// Search for and remove the definite article.
|
|
523
|
+
const wordAfterRemovingDefiniteArticle = removePrefix( word, morphologyData.externalStemmer.definiteArticles );
|
|
524
|
+
// If a definite article was removed, try to find the root.
|
|
525
|
+
if ( wordAfterRemovingDefiniteArticle !== word ) {
|
|
526
|
+
/**
|
|
527
|
+
* If definite article was removed, try to find root by checking whether the word is a root, matching with a pattern, and/or
|
|
528
|
+
* searching for and removing prefixes.
|
|
529
|
+
*/
|
|
530
|
+
const outputAfterTryingToFindRoot = findRoot( wordAfterRemovingDefiniteArticle, morphologyData );
|
|
531
|
+
if ( outputAfterTryingToFindRoot ) {
|
|
532
|
+
return outputAfterTryingToFindRoot;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
// Return it even if no root was found.
|
|
536
|
+
return { word: wordAfterRemovingDefiniteArticle, rootFound: false };
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Searches for prefix waw (و) and removes it if found, then tries to find the root. If the root is still not found, removes
|
|
542
|
+
* affixes and tries to find the root again. If the root is not found, the function returns null, with one exception: it
|
|
543
|
+
* is possible that in the checkPatterns function that is ran inside of this one, the word is modified but no root is found.
|
|
544
|
+
* In this case, the function returns the modified word.
|
|
545
|
+
*
|
|
546
|
+
* Example: وتمثّل -> مثل (word with prefix waw which matches a pattern after removing the prefix).
|
|
547
|
+
*
|
|
548
|
+
* @param {string} word The word to check.
|
|
549
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
550
|
+
*
|
|
551
|
+
* @returns {Object|null} An object with the root/modified word and information about whether the root was found, or null if
|
|
552
|
+
* the word is not modified and no root is found.
|
|
553
|
+
*/
|
|
554
|
+
const processWordWithPrefixWaw = function( word, morphologyData ) {
|
|
555
|
+
let wordAfterRemovingWaw = "";
|
|
556
|
+
if ( word.length > 3 && word.startsWith( morphologyData.externalStemmer.characters.waw ) ) {
|
|
557
|
+
wordAfterRemovingWaw = word.substring( 1 );
|
|
558
|
+
/*
|
|
559
|
+
* If the prefix waw was removed, try to find the root by checking whether the word is a root, matching with a pattern,
|
|
560
|
+
* and/or searching for and removing prefixes.
|
|
561
|
+
*/
|
|
562
|
+
const outputAfterTryingToFindRoot = findRoot( wordAfterRemovingWaw, morphologyData );
|
|
563
|
+
|
|
564
|
+
if ( outputAfterTryingToFindRoot ) {
|
|
565
|
+
return outputAfterTryingToFindRoot;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Stems Arabic words.
|
|
572
|
+
*
|
|
573
|
+
* @param {string} word The word to stem.
|
|
574
|
+
* @param {Object} morphologyData The Arabic morphology data.
|
|
575
|
+
*
|
|
576
|
+
* @returns {string} The stemmed word.
|
|
577
|
+
*/
|
|
578
|
+
export default function stem( word, morphologyData ) {
|
|
579
|
+
// Remove diacritics that serve as phonetic guides and are not usually used in regular writing.
|
|
580
|
+
const regexRemovingDiacritics = morphologyData.externalStemmer.regexRemovingDiacritics;
|
|
581
|
+
word.replace( new RegExp( regexRemovingDiacritics ), "" );
|
|
582
|
+
|
|
583
|
+
const root = checkIfWordIsRoot( word, morphologyData );
|
|
584
|
+
if ( root ) {
|
|
585
|
+
return root;
|
|
586
|
+
}
|
|
587
|
+
// If the root still hasn't been found, check if the word matches a pattern and get its root if it does.
|
|
588
|
+
const outputAfterCheckingPatterns = checkPatterns( word, morphologyData );
|
|
589
|
+
if ( outputAfterCheckingPatterns ) {
|
|
590
|
+
// Return the root if it was found in the checkPatterns function
|
|
591
|
+
if ( outputAfterCheckingPatterns.rootFound === true ) {
|
|
592
|
+
return outputAfterCheckingPatterns.word;
|
|
593
|
+
}
|
|
594
|
+
// If the checkPatterns function modified the word but did not find the root, replace the word with the modified word.
|
|
595
|
+
word = outputAfterCheckingPatterns.word;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
// If the root still hasn't been found, remove the definite article and try to find the root.
|
|
599
|
+
const outputAfterProcessingDefiniteArticle = processWordWithDefiniteArticle( word, morphologyData );
|
|
600
|
+
if ( outputAfterProcessingDefiniteArticle ) {
|
|
601
|
+
// Return the root if it was found after removing the definite article.
|
|
602
|
+
if ( outputAfterProcessingDefiniteArticle.rootFound === true ) {
|
|
603
|
+
return outputAfterProcessingDefiniteArticle.word;
|
|
604
|
+
}
|
|
605
|
+
// If the definite article was removed but the root was not found, replace the word with the stemmed word.
|
|
606
|
+
|
|
607
|
+
word = outputAfterProcessingDefiniteArticle.word;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
// If the root still hasn't been found, remove the prefix waw and try to find the root.
|
|
611
|
+
const outputAfterProcessingPrefixWaw = processWordWithPrefixWaw( word, morphologyData );
|
|
612
|
+
if ( outputAfterProcessingPrefixWaw ) {
|
|
613
|
+
if ( outputAfterProcessingPrefixWaw.rootFound === true ) {
|
|
614
|
+
return outputAfterProcessingPrefixWaw.word;
|
|
615
|
+
}
|
|
616
|
+
// If the checkPatterns function modified the word but did not find the root, replace the word with the modified word.
|
|
617
|
+
word = outputAfterProcessingPrefixWaw.word;
|
|
618
|
+
}
|
|
619
|
+
// If the root still hasn't been found, remove a suffix and try to find the root.
|
|
620
|
+
const outputAfterProcessingSuffix = processWordWithSuffix( word, morphologyData );
|
|
621
|
+
if ( outputAfterProcessingSuffix ) {
|
|
622
|
+
return outputAfterProcessingSuffix.word;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
// If the root still hasn't been found, remove a prefix and try to find the root.
|
|
626
|
+
const wordAfterProcessingPrefix = processWordWithPrefix( word, morphologyData );
|
|
627
|
+
if ( wordAfterProcessingPrefix ) {
|
|
628
|
+
return wordAfterProcessingPrefix.word;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
return word;
|
|
632
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import getPassiveVerbs from '../config/internal/passiveVerbsWithLongVowel';
|
|
2
|
+
import {languageProcessing} from '../../../index';
|
|
3
|
+
const {getWords} = languageProcessing;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Checks the passed sentence to see if it contains Arabic passive verb-forms.
|
|
7
|
+
*
|
|
8
|
+
* @param {string} sentence The sentence to match against.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Boolean} Whether the sentence contains Arabic passive voice.
|
|
11
|
+
*/
|
|
12
|
+
export default function isPassiveSentence(sentence) {
|
|
13
|
+
const arabicPrepositionalPrefix = 'و';
|
|
14
|
+
const words = getWords(sentence);
|
|
15
|
+
const passiveVerbs = [];
|
|
16
|
+
|
|
17
|
+
for (let word of words) {
|
|
18
|
+
// Check if the word starts with prefix و
|
|
19
|
+
if (word.startsWith(arabicPrepositionalPrefix)) {
|
|
20
|
+
word = word.slice(1);
|
|
21
|
+
}
|
|
22
|
+
let wordWithDamma = -1;
|
|
23
|
+
// Check if the first character has a damma or if the word is in the list of Arabic passive verbs
|
|
24
|
+
if (word.length >= 2) {
|
|
25
|
+
wordWithDamma = word[1].search('\u064F');
|
|
26
|
+
}
|
|
27
|
+
if (wordWithDamma !== -1 || getPassiveVerbs.includes(word)) {
|
|
28
|
+
passiveVerbs.push(word);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return passiveVerbs.length !== 0;
|
|
33
|
+
}
|