axyseo 2.0.0-alpha.0.0.37 → 2.0.0-alpha.0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/RelatedKeywordsDescription.js +38 -0
- package/build/components/RelatedKeywordsDescription.js.map +1 -0
- package/build/components/RelatedKeywordsDescription.scss +34 -0
- package/build/config/diacritics.js +134 -0
- package/build/config/diacritics.js.map +1 -0
- package/build/config/getTransliterations.js +3564 -0
- package/build/config/getTransliterations.js.map +1 -0
- package/build/config/transliterationsWPstyle.js +1417 -0
- package/build/config/transliterationsWPstyle.js.map +1 -0
- package/build/config/wordBoundaries.js +20 -0
- package/build/config/wordBoundaries.js.map +1 -0
- package/build/config/wordBoundariesWithoutPunctuation.js +10 -0
- package/build/config/wordBoundariesWithoutPunctuation.js.map +1 -0
- package/build/const/analysis.js +14 -0
- package/build/const/analysis.js.map +1 -0
- package/build/errors/invalidType.js +15 -0
- package/build/errors/invalidType.js.map +1 -0
- package/build/errors/missingArgument.js +15 -0
- package/build/errors/missingArgument.js.map +1 -0
- package/build/helpers/createMeasurementElement.js +39 -0
- package/build/helpers/createMeasurementElement.js.map +1 -0
- package/build/helpers/domManipulation.js +61 -0
- package/build/helpers/domManipulation.js.map +1 -0
- package/build/helpers/errors.js +21 -0
- package/build/helpers/errors.js.map +1 -0
- package/build/helpers/factory.js +201 -0
- package/build/helpers/factory.js.map +1 -0
- package/build/helpers/formatNumber.js +12 -0
- package/build/helpers/formatNumber.js.map +1 -0
- package/build/helpers/formatString.js +33 -0
- package/build/helpers/formatString.js.map +1 -0
- package/build/helpers/getLanguagesWithWordComplexity.js +9 -0
- package/build/helpers/getLanguagesWithWordComplexity.js.map +1 -0
- package/build/helpers/getLanguagesWithWordFormSupport.js +10 -0
- package/build/helpers/getLanguagesWithWordFormSupport.js.map +1 -0
- package/build/helpers/getWordComplexityConfig.js +21 -0
- package/build/helpers/getWordComplexityConfig.js.map +1 -0
- package/build/helpers/getWordComplexityHelper.js +21 -0
- package/build/helpers/getWordComplexityHelper.js.map +1 -0
- package/build/helpers/htmlEntities.js +16 -0
- package/build/helpers/htmlEntities.js.map +1 -0
- package/build/helpers/includesAny.js +19 -0
- package/build/helpers/includesAny.js.map +1 -0
- package/build/helpers/index.js +122 -0
- package/build/helpers/index.js.map +1 -0
- package/build/helpers/shortlinker/Shortlinker.js +72 -0
- package/build/helpers/shortlinker/Shortlinker.js.map +1 -0
- package/build/helpers/shortlinker/index.js +2 -0
- package/build/helpers/shortlinker/index.js.map +1 -0
- package/build/helpers/shortlinker/singleton.js +68 -0
- package/build/helpers/shortlinker/singleton.js.map +1 -0
- package/build/helpers/types.js +30 -0
- package/build/helpers/types.js.map +1 -0
- package/build/index.js +41 -0
- package/build/index.js.map +1 -0
- package/build/languageProcessing/AbstractResearcher.js +341 -0
- package/build/languageProcessing/AbstractResearcher.js.map +1 -0
- package/build/languageProcessing/helpers/highlighting/getMarkingsInSentence.js +116 -0
- package/build/languageProcessing/helpers/highlighting/getMarkingsInSentence.js.map +1 -0
- package/build/languageProcessing/helpers/html/getFieldsToMark.js +32 -0
- package/build/languageProcessing/helpers/html/getFieldsToMark.js.map +1 -0
- package/build/languageProcessing/helpers/html/getSubheadingTexts.js +42 -0
- package/build/languageProcessing/helpers/html/getSubheadingTexts.js.map +1 -0
- package/build/languageProcessing/helpers/html/getSubheadings.js +82 -0
- package/build/languageProcessing/helpers/html/getSubheadings.js.map +1 -0
- package/build/languageProcessing/helpers/html/html.js +144 -0
- package/build/languageProcessing/helpers/html/html.js.map +1 -0
- package/build/languageProcessing/helpers/html/htmlParser.js +125 -0
- package/build/languageProcessing/helpers/html/htmlParser.js.map +1 -0
- package/build/languageProcessing/helpers/html/matchParagraphs.js +56 -0
- package/build/languageProcessing/helpers/html/matchParagraphs.js.map +1 -0
- package/build/languageProcessing/helpers/html/normalizeHTML.js +17 -0
- package/build/languageProcessing/helpers/html/normalizeHTML.js.map +1 -0
- package/build/languageProcessing/helpers/image/getAltAttribute.js +18 -0
- package/build/languageProcessing/helpers/image/getAltAttribute.js.map +1 -0
- package/build/languageProcessing/helpers/image/getImagesInTree.js +15 -0
- package/build/languageProcessing/helpers/image/getImagesInTree.js.map +1 -0
- package/build/languageProcessing/helpers/image/imageInText.js +19 -0
- package/build/languageProcessing/helpers/image/imageInText.js.map +1 -0
- package/build/languageProcessing/helpers/index.js +6 -0
- package/build/languageProcessing/helpers/index.js.map +1 -0
- package/build/languageProcessing/helpers/language/getLanguage.js +10 -0
- package/build/languageProcessing/helpers/language/getLanguage.js.map +1 -0
- package/build/languageProcessing/helpers/link/checkNofollow.js +35 -0
- package/build/languageProcessing/helpers/link/checkNofollow.js.map +1 -0
- package/build/languageProcessing/helpers/link/getAnchorsFromText.js +31 -0
- package/build/languageProcessing/helpers/link/getAnchorsFromText.js.map +1 -0
- package/build/languageProcessing/helpers/link/getLinkType.js +30 -0
- package/build/languageProcessing/helpers/link/getLinkType.js.map +1 -0
- package/build/languageProcessing/helpers/match/findKeywordFormsInString.js +94 -0
- package/build/languageProcessing/helpers/match/findKeywordFormsInString.js.map +1 -0
- package/build/languageProcessing/helpers/match/isDoubleQuoted.js +13 -0
- package/build/languageProcessing/helpers/match/isDoubleQuoted.js.map +1 -0
- package/build/languageProcessing/helpers/match/matchTextWithArray.js +35 -0
- package/build/languageProcessing/helpers/match/matchTextWithArray.js.map +1 -0
- package/build/languageProcessing/helpers/match/matchTextWithTransliteration.js +52 -0
- package/build/languageProcessing/helpers/match/matchTextWithTransliteration.js.map +1 -0
- package/build/languageProcessing/helpers/match/matchTextWithWord.js +41 -0
- package/build/languageProcessing/helpers/match/matchTextWithWord.js.map +1 -0
- package/build/languageProcessing/helpers/match/matchWordFormsWithSentence.js +155 -0
- package/build/languageProcessing/helpers/match/matchWordFormsWithSentence.js.map +1 -0
- package/build/languageProcessing/helpers/match/processExactMatchRequest.js +23 -0
- package/build/languageProcessing/helpers/match/processExactMatchRequest.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/baseStemmer.js +12 -0
- package/build/languageProcessing/helpers/morphology/baseStemmer.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/buildFormRule.js +20 -0
- package/build/languageProcessing/helpers/morphology/buildFormRule.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/buildTopicStems.js +154 -0
- package/build/languageProcessing/helpers/morphology/buildTopicStems.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/createRulesFromArrays.js +41 -0
- package/build/languageProcessing/helpers/morphology/createRulesFromArrays.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/exceptionListHelpers.js +63 -0
- package/build/languageProcessing/helpers/morphology/exceptionListHelpers.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/findMatchingEndingInArray.js +23 -0
- package/build/languageProcessing/helpers/morphology/findMatchingEndingInArray.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/flattenSortLength.js +14 -0
- package/build/languageProcessing/helpers/morphology/flattenSortLength.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/getAllWordsFromPaper.js +29 -0
- package/build/languageProcessing/helpers/morphology/getAllWordsFromPaper.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/regexHelpers.js +45 -0
- package/build/languageProcessing/helpers/morphology/regexHelpers.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/stemHelpers.js +39 -0
- package/build/languageProcessing/helpers/morphology/stemHelpers.js.map +1 -0
- package/build/languageProcessing/helpers/morphology/stemPrefixedFunctionWords.js +33 -0
- package/build/languageProcessing/helpers/morphology/stemPrefixedFunctionWords.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/directPrecedenceException.js +36 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/directPrecedenceException.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/getClausesSplitOnStopWords.js +110 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/getClausesSplitOnStopWords.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/nonDirectParticiplePrecedenceException.js +39 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/nonDirectParticiplePrecedenceException.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getClauses.js +214 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getClauses.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getIndicesWithRegex.js +21 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/getIndicesWithRegex.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/matchRegularParticiples.js +23 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/matchRegularParticiples.js.map +1 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/precedenceException.js +40 -0
- package/build/languageProcessing/helpers/passiveVoice/periphrastic/precedenceException.js.map +1 -0
- package/build/languageProcessing/helpers/prominentWords/determineProminentWords.js +191 -0
- package/build/languageProcessing/helpers/prominentWords/determineProminentWords.js.map +1 -0
- package/build/languageProcessing/helpers/regex/createRegexFromArray.js +32 -0
- package/build/languageProcessing/helpers/regex/createRegexFromArray.js.map +1 -0
- package/build/languageProcessing/helpers/regex/createRegexFromDoubleArray.js +33 -0
- package/build/languageProcessing/helpers/regex/createRegexFromDoubleArray.js.map +1 -0
- package/build/languageProcessing/helpers/regex/createWordRegex.js +28 -0
- package/build/languageProcessing/helpers/regex/createWordRegex.js.map +1 -0
- package/build/languageProcessing/helpers/regex/matchStringWithRegex.js +18 -0
- package/build/languageProcessing/helpers/regex/matchStringWithRegex.js.map +1 -0
- package/build/languageProcessing/helpers/regex/searchAndReplaceWithOneRegex.js +15 -0
- package/build/languageProcessing/helpers/regex/searchAndReplaceWithOneRegex.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/doubleQuotes.js +13 -0
- package/build/languageProcessing/helpers/sanitize/doubleQuotes.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/filterShortcodesFromTree.js +123 -0
- package/build/languageProcessing/helpers/sanitize/filterShortcodesFromTree.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/mergeListItems.js +24 -0
- package/build/languageProcessing/helpers/sanitize/mergeListItems.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/parseSynonyms.js +18 -0
- package/build/languageProcessing/helpers/sanitize/parseSynonyms.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/quotes.js +39 -0
- package/build/languageProcessing/helpers/sanitize/quotes.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/removeEmailAddresses.js +13 -0
- package/build/languageProcessing/helpers/sanitize/removeEmailAddresses.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/removePunctuation.js +58 -0
- package/build/languageProcessing/helpers/sanitize/removePunctuation.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/removePunctuationExceptQuotes.js +18 -0
- package/build/languageProcessing/helpers/sanitize/removePunctuationExceptQuotes.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/removeSentenceTerminators.js +14 -0
- package/build/languageProcessing/helpers/sanitize/removeSentenceTerminators.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/removeURLs.js +13 -0
- package/build/languageProcessing/helpers/sanitize/removeURLs.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/sanitizeLineBreakTag.js +12 -0
- package/build/languageProcessing/helpers/sanitize/sanitizeLineBreakTag.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/sanitizeString.js +18 -0
- package/build/languageProcessing/helpers/sanitize/sanitizeString.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/stripHTMLTags.js +50 -0
- package/build/languageProcessing/helpers/sanitize/stripHTMLTags.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/stripNonTextTags.js +16 -0
- package/build/languageProcessing/helpers/sanitize/stripNonTextTags.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/stripNumbers.js +20 -0
- package/build/languageProcessing/helpers/sanitize/stripNumbers.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/stripSpaces.js +23 -0
- package/build/languageProcessing/helpers/sanitize/stripSpaces.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/stripWordBoundaries.js +57 -0
- package/build/languageProcessing/helpers/sanitize/stripWordBoundaries.js.map +1 -0
- package/build/languageProcessing/helpers/sanitize/unifyWhitespace.js +55 -0
- package/build/languageProcessing/helpers/sanitize/unifyWhitespace.js.map +1 -0
- package/build/languageProcessing/helpers/sentence/SentenceTokenizer.js +558 -0
- package/build/languageProcessing/helpers/sentence/SentenceTokenizer.js.map +1 -0
- package/build/languageProcessing/helpers/sentence/countSentences.js +21 -0
- package/build/languageProcessing/helpers/sentence/countSentences.js.map +1 -0
- package/build/languageProcessing/helpers/sentence/getSentences.js +64 -0
- package/build/languageProcessing/helpers/sentence/getSentences.js.map +1 -0
- package/build/languageProcessing/helpers/sentence/getSentencesFromTree.js +53 -0
- package/build/languageProcessing/helpers/sentence/getSentencesFromTree.js.map +1 -0
- package/build/languageProcessing/helpers/sentence/memoizedSentenceTokenizer.js +31 -0
- package/build/languageProcessing/helpers/sentence/memoizedSentenceTokenizer.js.map +1 -0
- package/build/languageProcessing/helpers/sentence/sentencesLength.js +31 -0
- package/build/languageProcessing/helpers/sentence/sentencesLength.js.map +1 -0
- package/build/languageProcessing/helpers/syllables/DeviationFragment.js +102 -0
- package/build/languageProcessing/helpers/syllables/DeviationFragment.js.map +1 -0
- package/build/languageProcessing/helpers/syllables/countSyllables.js +166 -0
- package/build/languageProcessing/helpers/syllables/countSyllables.js.map +1 -0
- package/build/languageProcessing/helpers/syllables/syllableCountIterator.js +56 -0
- package/build/languageProcessing/helpers/syllables/syllableCountIterator.js.map +1 -0
- package/build/languageProcessing/helpers/syllables/syllableCountStep.js +68 -0
- package/build/languageProcessing/helpers/syllables/syllableCountStep.js.map +1 -0
- package/build/languageProcessing/helpers/transform/transformWordsWithHyphens.js +18 -0
- package/build/languageProcessing/helpers/transform/transformWordsWithHyphens.js.map +1 -0
- package/build/languageProcessing/helpers/transliterate/replaceDiacritics.js +19 -0
- package/build/languageProcessing/helpers/transliterate/replaceDiacritics.js.map +1 -0
- package/build/languageProcessing/helpers/transliterate/specialCharacterMappings.js +183 -0
- package/build/languageProcessing/helpers/transliterate/specialCharacterMappings.js.map +1 -0
- package/build/languageProcessing/helpers/transliterate/transliterate.js +18 -0
- package/build/languageProcessing/helpers/transliterate/transliterate.js.map +1 -0
- package/build/languageProcessing/helpers/transliterate/transliterateWPstyle.js +19 -0
- package/build/languageProcessing/helpers/transliterate/transliterateWPstyle.js.map +1 -0
- package/build/languageProcessing/helpers/url/parseSlug.js +11 -0
- package/build/languageProcessing/helpers/url/parseSlug.js.map +1 -0
- package/build/languageProcessing/helpers/url/url.js +168 -0
- package/build/languageProcessing/helpers/url/url.js.map +1 -0
- package/build/languageProcessing/helpers/word/addWordboundary.js +35 -0
- package/build/languageProcessing/helpers/word/addWordboundary.js.map +1 -0
- package/build/languageProcessing/helpers/word/areWordsInSentence.js +17 -0
- package/build/languageProcessing/helpers/word/areWordsInSentence.js.map +1 -0
- package/build/languageProcessing/helpers/word/countMetaDescriptionLength.js +18 -0
- package/build/languageProcessing/helpers/word/countMetaDescriptionLength.js.map +1 -0
- package/build/languageProcessing/helpers/word/countWords.js +15 -0
- package/build/languageProcessing/helpers/word/countWords.js.map +1 -0
- package/build/languageProcessing/helpers/word/createPunctuationTokens.js +41 -0
- package/build/languageProcessing/helpers/word/createPunctuationTokens.js.map +1 -0
- package/build/languageProcessing/helpers/word/filterWordsFromArray.js +16 -0
- package/build/languageProcessing/helpers/word/filterWordsFromArray.js.map +1 -0
- package/build/languageProcessing/helpers/word/followsIndex.js +24 -0
- package/build/languageProcessing/helpers/word/followsIndex.js.map +1 -0
- package/build/languageProcessing/helpers/word/getAllWordsFromTree.js +24 -0
- package/build/languageProcessing/helpers/word/getAllWordsFromTree.js.map +1 -0
- package/build/languageProcessing/helpers/word/getWords.js +37 -0
- package/build/languageProcessing/helpers/word/getWords.js.map +1 -0
- package/build/languageProcessing/helpers/word/includesIndex.js +29 -0
- package/build/languageProcessing/helpers/word/includesIndex.js.map +1 -0
- package/build/languageProcessing/helpers/word/indices.js +130 -0
- package/build/languageProcessing/helpers/word/indices.js.map +1 -0
- package/build/languageProcessing/helpers/word/markWordsInSentences.js +177 -0
- package/build/languageProcessing/helpers/word/markWordsInSentences.js.map +1 -0
- package/build/languageProcessing/helpers/word/matchWordInSentence.js +56 -0
- package/build/languageProcessing/helpers/word/matchWordInSentence.js.map +1 -0
- package/build/languageProcessing/helpers/word/splitIntoTokens.js +46 -0
- package/build/languageProcessing/helpers/word/splitIntoTokens.js.map +1 -0
- package/build/languageProcessing/index.js +42 -0
- package/build/languageProcessing/index.js.map +1 -0
- package/build/languageProcessing/languages/_default/Researcher.js +35 -0
- package/build/languageProcessing/languages/_default/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/_default/helpers/getStemmer.js +14 -0
- package/build/languageProcessing/languages/_default/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/ar/Researcher.js +46 -0
- package/build/languageProcessing/languages/ar/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/ar/config/firstWordExceptions.js +12 -0
- package/build/languageProcessing/languages/ar/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/ar/config/functionWords.js +74 -0
- package/build/languageProcessing/languages/ar/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/ar/config/internal/passiveVerbsWithLongVowel.js +7 -0
- package/build/languageProcessing/languages/ar/config/internal/passiveVerbsWithLongVowel.js.map +1 -0
- package/build/languageProcessing/languages/ar/config/prefixedFunctionWords.js +5 -0
- package/build/languageProcessing/languages/ar/config/prefixedFunctionWords.js.map +1 -0
- package/build/languageProcessing/languages/ar/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/ar/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ar/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/ar/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ar/helpers/createBasicWordForms.js +33 -0
- package/build/languageProcessing/languages/ar/helpers/createBasicWordForms.js.map +1 -0
- package/build/languageProcessing/languages/ar/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/ar/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/ar/helpers/internal/stem.js +629 -0
- package/build/languageProcessing/languages/ar/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/ar/helpers/isPassiveSentence.js +34 -0
- package/build/languageProcessing/languages/ar/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/ca/Researcher.js +44 -0
- package/build/languageProcessing/languages/ca/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/ca/config/sentenceLength.js +4 -0
- package/build/languageProcessing/languages/ca/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/ca/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/ca/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ca/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/ca/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ca/helpers/getStemmer.js +14 -0
- package/build/languageProcessing/languages/ca/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/cs/Researcher.js +44 -0
- package/build/languageProcessing/languages/cs/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/firstWordExceptions.js +14 -0
- package/build/languageProcessing/languages/cs/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/functionWords.js +44 -0
- package/build/languageProcessing/languages/cs/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceAuxiliaries.js +4 -0
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceEndings.js +8 -0
- package/build/languageProcessing/languages/cs/config/internal/passiveVoiceEndings.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/stopWords.js +6 -0
- package/build/languageProcessing/languages/cs/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/cs/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/cs/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/cs/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/cs/helpers/getClauses.js +28 -0
- package/build/languageProcessing/languages/cs/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/cs/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/cs/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/cs/helpers/internal/getParticiples.js +18 -0
- package/build/languageProcessing/languages/cs/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/cs/helpers/internal/stem.js +335 -0
- package/build/languageProcessing/languages/cs/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/cs/values/Clause.js +38 -0
- package/build/languageProcessing/languages/cs/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/de/Researcher.js +53 -0
- package/build/languageProcessing/languages/de/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/de/config/firstWordExceptions.js +14 -0
- package/build/languageProcessing/languages/de/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/de/config/functionWords.js +95 -0
- package/build/languageProcessing/languages/de/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/de/config/internal/exceptionsParticiplesActive.js +7 -0
- package/build/languageProcessing/languages/de/config/internal/exceptionsParticiplesActive.js.map +1 -0
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceAuxiliaries.js +23 -0
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceIrregulars.js +9 -0
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceIrregulars.js.map +1 -0
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceRegex.js +72 -0
- package/build/languageProcessing/languages/de/config/internal/passiveVoiceRegex.js.map +1 -0
- package/build/languageProcessing/languages/de/config/keyphraseLength.js +11 -0
- package/build/languageProcessing/languages/de/config/keyphraseLength.js.map +1 -0
- package/build/languageProcessing/languages/de/config/stopWords.js +6 -0
- package/build/languageProcessing/languages/de/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/de/config/syllables.json +460 -0
- package/build/languageProcessing/languages/de/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/de/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/de/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/de/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/de/config/wordComplexity.js +5 -0
- package/build/languageProcessing/languages/de/config/wordComplexity.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/calculateFleschReadingScore.js +17 -0
- package/build/languageProcessing/languages/de/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsComplex.js +41 -0
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsComplex.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsFunction.js +15 -0
- package/build/languageProcessing/languages/de/helpers/checkIfWordIsFunction.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/getClauses.js +27 -0
- package/build/languageProcessing/languages/de/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/de/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/internal/SentenceTokenizer.js +31 -0
- package/build/languageProcessing/languages/de/helpers/internal/SentenceTokenizer.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/internal/detectAndStemRegularParticiple.js +112 -0
- package/build/languageProcessing/languages/de/helpers/internal/detectAndStemRegularParticiple.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/internal/determineStem.js +107 -0
- package/build/languageProcessing/languages/de/helpers/internal/determineStem.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/internal/getParticiples.js +32 -0
- package/build/languageProcessing/languages/de/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/internal/stem.js +216 -0
- package/build/languageProcessing/languages/de/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/de/helpers/memoizedSentenceTokenizer.js +31 -0
- package/build/languageProcessing/languages/de/helpers/memoizedSentenceTokenizer.js.map +1 -0
- package/build/languageProcessing/languages/de/values/Clause.js +84 -0
- package/build/languageProcessing/languages/de/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/el/Researcher.js +47 -0
- package/build/languageProcessing/languages/el/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/el/config/firstWordExceptions.js +27 -0
- package/build/languageProcessing/languages/el/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/el/config/functionWords.js +41 -0
- package/build/languageProcessing/languages/el/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/el/config/internal/auxiliaries.js +6 -0
- package/build/languageProcessing/languages/el/config/internal/auxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/el/config/internal/morphologicalPassiveSuffixes.js +2 -0
- package/build/languageProcessing/languages/el/config/internal/morphologicalPassiveSuffixes.js.map +1 -0
- package/build/languageProcessing/languages/el/config/internal/nonPassiveVerbStems.js +16 -0
- package/build/languageProcessing/languages/el/config/internal/nonPassiveVerbStems.js.map +1 -0
- package/build/languageProcessing/languages/el/config/stopWords.js +7 -0
- package/build/languageProcessing/languages/el/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/el/config/transitionWords.js +12 -0
- package/build/languageProcessing/languages/el/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/el/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/el/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/el/helpers/getClauses.js +27 -0
- package/build/languageProcessing/languages/el/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/el/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/el/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/el/helpers/internal/getParticiples.js +18 -0
- package/build/languageProcessing/languages/el/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/el/helpers/internal/stem.js +338 -0
- package/build/languageProcessing/languages/el/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/el/helpers/isPassiveSentence.js +36 -0
- package/build/languageProcessing/languages/el/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/el/values/Clause.js +40 -0
- package/build/languageProcessing/languages/el/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/en/Researcher.js +47 -0
- package/build/languageProcessing/languages/en/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/en/config/abbreviations.js +10 -0
- package/build/languageProcessing/languages/en/config/abbreviations.js.map +1 -0
- package/build/languageProcessing/languages/en/config/firstWordExceptions.js +14 -0
- package/build/languageProcessing/languages/en/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/en/config/functionWords.js +103 -0
- package/build/languageProcessing/languages/en/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceAuxiliaries.js +9 -0
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceIrregulars.js +9 -0
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceIrregulars.js.map +1 -0
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceNonVerbEndingEd.js +7 -0
- package/build/languageProcessing/languages/en/config/internal/passiveVoiceNonVerbEndingEd.js.map +1 -0
- package/build/languageProcessing/languages/en/config/regularParticiplesRegex.js +6 -0
- package/build/languageProcessing/languages/en/config/regularParticiplesRegex.js.map +1 -0
- package/build/languageProcessing/languages/en/config/stopWords.js +6 -0
- package/build/languageProcessing/languages/en/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/en/config/syllables.json +86 -0
- package/build/languageProcessing/languages/en/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/en/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/en/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/en/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/en/config/wordComplexity.js +6 -0
- package/build/languageProcessing/languages/en/config/wordComplexity.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js +17 -0
- package/build/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js +43 -0
- package/build/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/getClauses.js +51 -0
- package/build/languageProcessing/languages/en/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/en/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/internal/determineStem.js +150 -0
- package/build/languageProcessing/languages/en/helpers/internal/determineStem.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js +142 -0
- package/build/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/internal/getParticiples.js +27 -0
- package/build/languageProcessing/languages/en/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/en/helpers/internal/getVerbStem.js +218 -0
- package/build/languageProcessing/languages/en/helpers/internal/getVerbStem.js.map +1 -0
- package/build/languageProcessing/languages/en/values/Clause.js +61 -0
- package/build/languageProcessing/languages/en/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/es/Researcher.js +49 -0
- package/build/languageProcessing/languages/es/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/es/config/firstWordExceptions.js +14 -0
- package/build/languageProcessing/languages/es/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/es/config/functionWords.js +105 -0
- package/build/languageProcessing/languages/es/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceAuxiliaries.js +6 -0
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceParticiples.js +7 -0
- package/build/languageProcessing/languages/es/config/internal/passiveVoiceParticiples.js.map +1 -0
- package/build/languageProcessing/languages/es/config/sentenceLength.js +4 -0
- package/build/languageProcessing/languages/es/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/es/config/stopWords.js +6 -0
- package/build/languageProcessing/languages/es/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/es/config/syllables.json +176 -0
- package/build/languageProcessing/languages/es/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/es/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/es/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/es/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/es/config/wordComplexity.js +5 -0
- package/build/languageProcessing/languages/es/config/wordComplexity.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/calculateFleschReadingScore.js +17 -0
- package/build/languageProcessing/languages/es/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/checkIfWordIsComplex.js +53 -0
- package/build/languageProcessing/languages/es/helpers/checkIfWordIsComplex.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/getClauses.js +31 -0
- package/build/languageProcessing/languages/es/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/es/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/internal/checkVerbStemModifications.js +34 -0
- package/build/languageProcessing/languages/es/helpers/internal/checkVerbStemModifications.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/internal/getParticiples.js +37 -0
- package/build/languageProcessing/languages/es/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/es/helpers/internal/stem.js +566 -0
- package/build/languageProcessing/languages/es/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/es/values/Clause.js +42 -0
- package/build/languageProcessing/languages/es/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/fa/Researcher.js +48 -0
- package/build/languageProcessing/languages/fa/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/fa/config/firstWordExceptions.js +12 -0
- package/build/languageProcessing/languages/fa/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/fa/config/functionWords.js +35 -0
- package/build/languageProcessing/languages/fa/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/fa/config/internal/participles.js +8 -0
- package/build/languageProcessing/languages/fa/config/internal/participles.js.map +1 -0
- package/build/languageProcessing/languages/fa/config/sentenceLength.js +4 -0
- package/build/languageProcessing/languages/fa/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/fa/config/transitionWords.js +12 -0
- package/build/languageProcessing/languages/fa/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/fa/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/fa/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/fa/helpers/createBasicWordForms.js +93 -0
- package/build/languageProcessing/languages/fa/helpers/createBasicWordForms.js.map +1 -0
- package/build/languageProcessing/languages/fa/helpers/getStemmer.js +16 -0
- package/build/languageProcessing/languages/fa/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/fa/helpers/isPassiveSentence.js +16 -0
- package/build/languageProcessing/languages/fa/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/fr/Researcher.js +47 -0
- package/build/languageProcessing/languages/fr/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/firstWordExceptions.js +14 -0
- package/build/languageProcessing/languages/fr/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/functionWords.js +138 -0
- package/build/languageProcessing/languages/fr/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/internal/exceptionsParticiplesActive.js +17 -0
- package/build/languageProcessing/languages/fr/config/internal/exceptionsParticiplesActive.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceAuxiliaries.js +6 -0
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceIrregulars.js +22 -0
- package/build/languageProcessing/languages/fr/config/internal/passiveVoiceIrregulars.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/stopWords.js +6 -0
- package/build/languageProcessing/languages/fr/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/syllables.json +1426 -0
- package/build/languageProcessing/languages/fr/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/fr/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/fr/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/fr/config/wordComplexity.js +5 -0
- package/build/languageProcessing/languages/fr/config/wordComplexity.js.map +1 -0
- package/build/languageProcessing/languages/fr/helpers/calculateFleschReadingScore.js +17 -0
- package/build/languageProcessing/languages/fr/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/fr/helpers/checkIfWordIsComplex.js +66 -0
- package/build/languageProcessing/languages/fr/helpers/checkIfWordIsComplex.js.map +1 -0
- package/build/languageProcessing/languages/fr/helpers/getClauses.js +35 -0
- package/build/languageProcessing/languages/fr/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/fr/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/fr/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/fr/helpers/internal/getParticiples.js +66 -0
- package/build/languageProcessing/languages/fr/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/fr/helpers/internal/stem.js +537 -0
- package/build/languageProcessing/languages/fr/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/fr/values/Clause.js +84 -0
- package/build/languageProcessing/languages/fr/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/he/Researcher.js +51 -0
- package/build/languageProcessing/languages/he/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/he/config/firstWordExceptions.js +12 -0
- package/build/languageProcessing/languages/he/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/he/config/functionWords.js +497 -0
- package/build/languageProcessing/languages/he/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/he/config/internal/regularRootsHufal.js +7 -0
- package/build/languageProcessing/languages/he/config/internal/regularRootsHufal.js.map +1 -0
- package/build/languageProcessing/languages/he/config/internal/regularRootsNifal.js +7 -0
- package/build/languageProcessing/languages/he/config/internal/regularRootsNifal.js.map +1 -0
- package/build/languageProcessing/languages/he/config/internal/regularRootsPual.js +7 -0
- package/build/languageProcessing/languages/he/config/internal/regularRootsPual.js.map +1 -0
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsHufal.js +9 -0
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsHufal.js.map +1 -0
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsNifal.js +9 -0
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsNifal.js.map +1 -0
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsPual.js +9 -0
- package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsPual.js.map +1 -0
- package/build/languageProcessing/languages/he/config/prefixedFunctionWords.js +3 -0
- package/build/languageProcessing/languages/he/config/prefixedFunctionWords.js.map +1 -0
- package/build/languageProcessing/languages/he/config/sentenceLength.js +4 -0
- package/build/languageProcessing/languages/he/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/he/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/he/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/he/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/he/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/he/helpers/createBasicWordForms.js +35 -0
- package/build/languageProcessing/languages/he/helpers/createBasicWordForms.js.map +1 -0
- package/build/languageProcessing/languages/he/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/he/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/he/helpers/internal/stem.js +53 -0
- package/build/languageProcessing/languages/he/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/he/helpers/isPassiveSentence.js +116 -0
- package/build/languageProcessing/languages/he/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/he/helpers/stem.js +53 -0
- package/build/languageProcessing/languages/he/helpers/stem.js.map +1 -0
- package/build/languageProcessing/languages/hu/Researcher.js +49 -0
- package/build/languageProcessing/languages/hu/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/firstWordExceptions.js +26 -0
- package/build/languageProcessing/languages/hu/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/functionWords.js +46 -0
- package/build/languageProcessing/languages/hu/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/internal/auxiliaries.js +14 -0
- package/build/languageProcessing/languages/hu/config/internal/auxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/internal/morphologicalPassiveAffixes.js +6 -0
- package/build/languageProcessing/languages/hu/config/internal/morphologicalPassiveAffixes.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/internal/nonPassivesInVaAndVe.js +20 -0
- package/build/languageProcessing/languages/hu/config/internal/nonPassivesInVaAndVe.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/internal/odikVerbs.js +19 -0
- package/build/languageProcessing/languages/hu/config/internal/odikVerbs.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/internal/participles.js +20 -0
- package/build/languageProcessing/languages/hu/config/internal/participles.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/stopWords.js +24 -0
- package/build/languageProcessing/languages/hu/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/hu/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/hu/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/hu/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/hu/helpers/getClauses.js +27 -0
- package/build/languageProcessing/languages/hu/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/hu/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/hu/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/hu/helpers/internal/getParticiples.js +19 -0
- package/build/languageProcessing/languages/hu/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/hu/helpers/internal/stem.js +384 -0
- package/build/languageProcessing/languages/hu/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/hu/helpers/isPassiveSentence.js +47 -0
- package/build/languageProcessing/languages/hu/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/hu/values/Clause.js +41 -0
- package/build/languageProcessing/languages/hu/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/id/Researcher.js +47 -0
- package/build/languageProcessing/languages/id/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/id/config/firstWordExceptions.js +12 -0
- package/build/languageProcessing/languages/id/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/id/config/functionWords.js +101 -0
- package/build/languageProcessing/languages/id/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/id/config/internal/nonPassiveVerbsStartingDi.js +7 -0
- package/build/languageProcessing/languages/id/config/internal/nonPassiveVerbsStartingDi.js.map +1 -0
- package/build/languageProcessing/languages/id/config/transitionWords.js +24 -0
- package/build/languageProcessing/languages/id/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/id/config/twoPartTransitionWords.js +9 -0
- package/build/languageProcessing/languages/id/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/id/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/id/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/id/helpers/internal/stem.js +389 -0
- package/build/languageProcessing/languages/id/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/id/helpers/internal/stemHelpers.js +78 -0
- package/build/languageProcessing/languages/id/helpers/internal/stemHelpers.js.map +1 -0
- package/build/languageProcessing/languages/id/helpers/isPassiveSentence.js +40 -0
- package/build/languageProcessing/languages/id/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/id/helpers/splitIntoTokensCustom.js +47 -0
- package/build/languageProcessing/languages/id/helpers/splitIntoTokensCustom.js.map +1 -0
- package/build/languageProcessing/languages/it/Researcher.js +49 -0
- package/build/languageProcessing/languages/it/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/it/config/firstWordExceptions.js +14 -0
- package/build/languageProcessing/languages/it/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/it/config/functionWords.js +135 -0
- package/build/languageProcessing/languages/it/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceAuxiliaries.js +6 -0
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceParticiples.js +7 -0
- package/build/languageProcessing/languages/it/config/internal/passiveVoiceParticiples.js.map +1 -0
- package/build/languageProcessing/languages/it/config/sentenceLength.js +4 -0
- package/build/languageProcessing/languages/it/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/it/config/stopWords.js +6 -0
- package/build/languageProcessing/languages/it/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/it/config/syllables.json +573 -0
- package/build/languageProcessing/languages/it/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/it/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/it/config/twoPartTransitionWords.js +6 -0
- package/build/languageProcessing/languages/it/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/it/helpers/calculateFleschReadingScore.js +17 -0
- package/build/languageProcessing/languages/it/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/it/helpers/getClauses.js +33 -0
- package/build/languageProcessing/languages/it/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/it/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/it/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/it/helpers/internal/getParticiples.js +36 -0
- package/build/languageProcessing/languages/it/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/it/helpers/internal/stem.js +402 -0
- package/build/languageProcessing/languages/it/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/it/values/Clause.js +44 -0
- package/build/languageProcessing/languages/it/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/ja/Researcher.js +86 -0
- package/build/languageProcessing/languages/ja/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/assessmentApplicabilityCharacterCount.js +5 -0
- package/build/languageProcessing/languages/ja/config/assessmentApplicabilityCharacterCount.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/firstWordExceptions.js +8 -0
- package/build/languageProcessing/languages/ja/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/functionWords.js +2 -0
- package/build/languageProcessing/languages/ja/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/keyphraseLength.js +17 -0
- package/build/languageProcessing/languages/ja/config/keyphraseLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/metaDescriptionLength.js +5 -0
- package/build/languageProcessing/languages/ja/config/metaDescriptionLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/paragraphLength.js +11 -0
- package/build/languageProcessing/languages/ja/config/paragraphLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/sentenceLength.js +5 -0
- package/build/languageProcessing/languages/ja/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/subheadingsTooLong.js +19 -0
- package/build/languageProcessing/languages/ja/config/subheadingsTooLong.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/textLength.js +48 -0
- package/build/languageProcessing/languages/ja/config/textLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/topicLength.js +6 -0
- package/build/languageProcessing/languages/ja/config/topicLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/config/transitionWords.js +4 -0
- package/build/languageProcessing/languages/ja/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js +96 -0
- package/build/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js.map +1 -0
- package/build/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js +19 -0
- package/build/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/customResearches/getWordForms.js +51 -0
- package/build/languageProcessing/languages/ja/customResearches/getWordForms.js.map +1 -0
- package/build/languageProcessing/languages/ja/customResearches/textLength.js +25 -0
- package/build/languageProcessing/languages/ja/customResearches/textLength.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/countCharacters.js +21 -0
- package/build/languageProcessing/languages/ja/helpers/countCharacters.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/customGetStemmer.js +22 -0
- package/build/languageProcessing/languages/ja/helpers/customGetStemmer.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/getContentWords.js +21 -0
- package/build/languageProcessing/languages/ja/helpers/getContentWords.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/getWords.js +31 -0
- package/build/languageProcessing/languages/ja/helpers/getWords.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js +92 -0
- package/build/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/internal/createWordForms.js +65 -0
- package/build/languageProcessing/languages/ja/helpers/internal/createWordForms.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/internal/determineStem.js +17 -0
- package/build/languageProcessing/languages/ja/helpers/internal/determineStem.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/matchTextWithWord.js +52 -0
- package/build/languageProcessing/languages/ja/helpers/matchTextWithWord.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/matchTransitionWords.js +23 -0
- package/build/languageProcessing/languages/ja/helpers/matchTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/memoizedSentenceTokenizer.js +31 -0
- package/build/languageProcessing/languages/ja/helpers/memoizedSentenceTokenizer.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/splitIntoTokensCustom.js +21 -0
- package/build/languageProcessing/languages/ja/helpers/splitIntoTokensCustom.js.map +1 -0
- package/build/languageProcessing/languages/ja/helpers/wordsCharacterCount.js +13 -0
- package/build/languageProcessing/languages/ja/helpers/wordsCharacterCount.js.map +1 -0
- package/build/languageProcessing/languages/nb/Researcher.js +46 -0
- package/build/languageProcessing/languages/nb/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/firstWordExceptions.js +12 -0
- package/build/languageProcessing/languages/nb/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/functionWords.js +48 -0
- package/build/languageProcessing/languages/nb/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/internal/participles.js +7 -0
- package/build/languageProcessing/languages/nb/config/internal/participles.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/internal/passiveVoiceAuxiliaries.js +6 -0
- package/build/languageProcessing/languages/nb/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/stopWords.js +7 -0
- package/build/languageProcessing/languages/nb/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/nb/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/nb/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/nb/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/nb/helpers/getClauses.js +30 -0
- package/build/languageProcessing/languages/nb/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/nb/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/nb/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/nb/helpers/internal/getParticiples.js +25 -0
- package/build/languageProcessing/languages/nb/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/nb/helpers/internal/stem.js +129 -0
- package/build/languageProcessing/languages/nb/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/nb/values/Clause.js +43 -0
- package/build/languageProcessing/languages/nb/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/nl/Researcher.js +49 -0
- package/build/languageProcessing/languages/nl/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/firstWordExceptions.js +14 -0
- package/build/languageProcessing/languages/nl/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/functionWords.js +96 -0
- package/build/languageProcessing/languages/nl/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/internal/nonParticiples.js +6 -0
- package/build/languageProcessing/languages/nl/config/internal/nonParticiples.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceAuxiliaries.js +6 -0
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceIrregulars.js +7 -0
- package/build/languageProcessing/languages/nl/config/internal/passiveVoiceIrregulars.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/keyphraseLength.js +11 -0
- package/build/languageProcessing/languages/nl/config/keyphraseLength.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/stopWords.js +6 -0
- package/build/languageProcessing/languages/nl/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/syllables.json +343 -0
- package/build/languageProcessing/languages/nl/config/transitionWords.js +5 -0
- package/build/languageProcessing/languages/nl/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/nl/config/twoPartTransitionWords.js +6 -0
- package/build/languageProcessing/languages/nl/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/calculateFleschReadingScore.js +17 -0
- package/build/languageProcessing/languages/nl/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/getClauses.js +27 -0
- package/build/languageProcessing/languages/nl/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/nl/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/checkExceptionsWithFullForms.js +118 -0
- package/build/languageProcessing/languages/nl/helpers/internal/checkExceptionsWithFullForms.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemRegularParticiple.js +254 -0
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemRegularParticiple.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemSuffixes.js +152 -0
- package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemSuffixes.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/determineStem.js +114 -0
- package/build/languageProcessing/languages/nl/helpers/internal/determineStem.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/getParticiples.js +21 -0
- package/build/languageProcessing/languages/nl/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/getStemWordsWithTAndDEnding.js +147 -0
- package/build/languageProcessing/languages/nl/helpers/internal/getStemWordsWithTAndDEnding.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/stem.js +125 -0
- package/build/languageProcessing/languages/nl/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/stemModificationHelpers.js +87 -0
- package/build/languageProcessing/languages/nl/helpers/internal/stemModificationHelpers.js.map +1 -0
- package/build/languageProcessing/languages/nl/helpers/internal/stemTOrDFromEndOfWord.js +53 -0
- package/build/languageProcessing/languages/nl/helpers/internal/stemTOrDFromEndOfWord.js.map +1 -0
- package/build/languageProcessing/languages/nl/values/Clause.js +57 -0
- package/build/languageProcessing/languages/nl/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/pl/Researcher.js +48 -0
- package/build/languageProcessing/languages/pl/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/firstWordExceptions.js +10 -0
- package/build/languageProcessing/languages/pl/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/functionWords.js +71 -0
- package/build/languageProcessing/languages/pl/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/internal/auxiliaries.js +6 -0
- package/build/languageProcessing/languages/pl/config/internal/auxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/internal/participles.js +7 -0
- package/build/languageProcessing/languages/pl/config/internal/participles.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/sentenceLength.js +11 -0
- package/build/languageProcessing/languages/pl/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/stopWords.js +6 -0
- package/build/languageProcessing/languages/pl/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/pl/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/pl/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/pl/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/pl/helpers/getClauses.js +27 -0
- package/build/languageProcessing/languages/pl/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/pl/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/pl/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/pl/helpers/internal/getParticiples.js +19 -0
- package/build/languageProcessing/languages/pl/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/pl/helpers/internal/stem.js +152 -0
- package/build/languageProcessing/languages/pl/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/pl/values/Clause.js +45 -0
- package/build/languageProcessing/languages/pl/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/pt/Researcher.js +49 -0
- package/build/languageProcessing/languages/pt/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/firstWordExceptions.js +14 -0
- package/build/languageProcessing/languages/pt/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/functionWords.js +92 -0
- package/build/languageProcessing/languages/pt/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceAuxiliaries.js +6 -0
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceParticiples.js +7 -0
- package/build/languageProcessing/languages/pt/config/internal/passiveVoiceParticiples.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/sentenceLength.js +4 -0
- package/build/languageProcessing/languages/pt/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/stopWords.js +6 -0
- package/build/languageProcessing/languages/pt/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/syllables.json +38 -0
- package/build/languageProcessing/languages/pt/config/transitionWords.js +5 -0
- package/build/languageProcessing/languages/pt/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/pt/config/twoPartTransitionWords.js +6 -0
- package/build/languageProcessing/languages/pt/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/pt/helpers/calculateFleschReadingScore.js +17 -0
- package/build/languageProcessing/languages/pt/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/pt/helpers/getClauses.js +31 -0
- package/build/languageProcessing/languages/pt/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/pt/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/pt/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/pt/helpers/internal/getParticiples.js +37 -0
- package/build/languageProcessing/languages/pt/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/pt/helpers/internal/stem.js +277 -0
- package/build/languageProcessing/languages/pt/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/pt/values/Clause.js +43 -0
- package/build/languageProcessing/languages/pt/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/ru/Researcher.js +49 -0
- package/build/languageProcessing/languages/ru/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/firstWordExceptions.js +10 -0
- package/build/languageProcessing/languages/ru/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/fleschReadingEaseScores.js +21 -0
- package/build/languageProcessing/languages/ru/config/fleschReadingEaseScores.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/functionWords.js +85 -0
- package/build/languageProcessing/languages/ru/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/internal/participlesShortenedList.js +21 -0
- package/build/languageProcessing/languages/ru/config/internal/participlesShortenedList.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/internal/passiveVoiceParticiples.js +18 -0
- package/build/languageProcessing/languages/ru/config/internal/passiveVoiceParticiples.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/sentenceLength.js +4 -0
- package/build/languageProcessing/languages/ru/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/syllables.json +19 -0
- package/build/languageProcessing/languages/ru/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/ru/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ru/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/ru/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/ru/helpers/calculateFleschReadingScore.js +17 -0
- package/build/languageProcessing/languages/ru/helpers/calculateFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/languages/ru/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/ru/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/ru/helpers/internal/stem.js +265 -0
- package/build/languageProcessing/languages/ru/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/ru/helpers/isPassiveSentence.js +16 -0
- package/build/languageProcessing/languages/ru/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/sk/Researcher.js +47 -0
- package/build/languageProcessing/languages/sk/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/firstWordExceptions.js +12 -0
- package/build/languageProcessing/languages/sk/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/functionWords.js +12 -0
- package/build/languageProcessing/languages/sk/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/internal/nonPassives.js +8 -0
- package/build/languageProcessing/languages/sk/config/internal/nonPassives.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/internal/passiveVoiceAuxiliaries.js +4 -0
- package/build/languageProcessing/languages/sk/config/internal/passiveVoiceAuxiliaries.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/stopWords.js +7 -0
- package/build/languageProcessing/languages/sk/config/stopWords.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/sk/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/sk/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/sk/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/sk/helpers/getClauses.js +28 -0
- package/build/languageProcessing/languages/sk/helpers/getClauses.js.map +1 -0
- package/build/languageProcessing/languages/sk/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/sk/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/sk/helpers/internal/getParticiples.js +18 -0
- package/build/languageProcessing/languages/sk/helpers/internal/getParticiples.js.map +1 -0
- package/build/languageProcessing/languages/sk/helpers/internal/stem.js +316 -0
- package/build/languageProcessing/languages/sk/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/sk/values/Clause.js +41 -0
- package/build/languageProcessing/languages/sk/values/Clause.js.map +1 -0
- package/build/languageProcessing/languages/sv/Researcher.js +46 -0
- package/build/languageProcessing/languages/sv/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/sv/config/firstWordExceptions.js +15 -0
- package/build/languageProcessing/languages/sv/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/sv/config/functionWords.js +68 -0
- package/build/languageProcessing/languages/sv/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/sv/config/internal/passiveVerbs.js +7 -0
- package/build/languageProcessing/languages/sv/config/internal/passiveVerbs.js.map +1 -0
- package/build/languageProcessing/languages/sv/config/keyphraseLength.js +11 -0
- package/build/languageProcessing/languages/sv/config/keyphraseLength.js.map +1 -0
- package/build/languageProcessing/languages/sv/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/sv/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/sv/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/sv/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/sv/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/sv/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/sv/helpers/internal/stem.js +153 -0
- package/build/languageProcessing/languages/sv/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/sv/helpers/isPassiveSentence.js +16 -0
- package/build/languageProcessing/languages/sv/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/languages/tr/Researcher.js +44 -0
- package/build/languageProcessing/languages/tr/Researcher.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/firstWordExceptions.js +12 -0
- package/build/languageProcessing/languages/tr/config/firstWordExceptions.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/functionWords.js +45 -0
- package/build/languageProcessing/languages/tr/config/functionWords.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/internal/nonPassiveExceptions.js +8 -0
- package/build/languageProcessing/languages/tr/config/internal/nonPassiveExceptions.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/internal/passiveEndings.js +7 -0
- package/build/languageProcessing/languages/tr/config/internal/passiveEndings.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/sentenceLength.js +8 -0
- package/build/languageProcessing/languages/tr/config/sentenceLength.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/transitionWords.js +7 -0
- package/build/languageProcessing/languages/tr/config/transitionWords.js.map +1 -0
- package/build/languageProcessing/languages/tr/config/twoPartTransitionWords.js +8 -0
- package/build/languageProcessing/languages/tr/config/twoPartTransitionWords.js.map +1 -0
- package/build/languageProcessing/languages/tr/helpers/getStemmer.js +22 -0
- package/build/languageProcessing/languages/tr/helpers/getStemmer.js.map +1 -0
- package/build/languageProcessing/languages/tr/helpers/internal/stem.js +19 -0
- package/build/languageProcessing/languages/tr/helpers/internal/stem.js.map +1 -0
- package/build/languageProcessing/languages/tr/helpers/isPassiveSentence.js +40 -0
- package/build/languageProcessing/languages/tr/helpers/isPassiveSentence.js.map +1 -0
- package/build/languageProcessing/researches/altTagCount.js +66 -0
- package/build/languageProcessing/researches/altTagCount.js.map +1 -0
- package/build/languageProcessing/researches/checkRelatedKeywords.js +71 -0
- package/build/languageProcessing/researches/checkRelatedKeywords.js.map +1 -0
- package/build/languageProcessing/researches/countSentencesFromText.js +20 -0
- package/build/languageProcessing/researches/countSentencesFromText.js.map +1 -0
- package/build/languageProcessing/researches/findKeyphraseInSEOTitle.js +250 -0
- package/build/languageProcessing/researches/findKeyphraseInSEOTitle.js.map +1 -0
- package/build/languageProcessing/researches/findKeywordInFirstParagraph.js +74 -0
- package/build/languageProcessing/researches/findKeywordInFirstParagraph.js.map +1 -0
- package/build/languageProcessing/researches/findTransitionWords.js +112 -0
- package/build/languageProcessing/researches/findTransitionWords.js.map +1 -0
- package/build/languageProcessing/researches/functionWordsInKeyphrase.js +42 -0
- package/build/languageProcessing/researches/functionWordsInKeyphrase.js.map +1 -0
- package/build/languageProcessing/researches/getAnchorsWithKeyphrase.js +215 -0
- package/build/languageProcessing/researches/getAnchorsWithKeyphrase.js.map +1 -0
- package/build/languageProcessing/researches/getFleschReadingScore.js +145 -0
- package/build/languageProcessing/researches/getFleschReadingScore.js.map +1 -0
- package/build/languageProcessing/researches/getKeywordDensity.js +42 -0
- package/build/languageProcessing/researches/getKeywordDensity.js.map +1 -0
- package/build/languageProcessing/researches/getLinkStatistics.js +50 -0
- package/build/languageProcessing/researches/getLinkStatistics.js.map +1 -0
- package/build/languageProcessing/researches/getLinks.js +17 -0
- package/build/languageProcessing/researches/getLinks.js.map +1 -0
- package/build/languageProcessing/researches/getLongCenterAlignedTexts.js +36 -0
- package/build/languageProcessing/researches/getLongCenterAlignedTexts.js.map +1 -0
- package/build/languageProcessing/researches/getParagraphLength.js +43 -0
- package/build/languageProcessing/researches/getParagraphLength.js.map +1 -0
- package/build/languageProcessing/researches/getParagraphs.js +18 -0
- package/build/languageProcessing/researches/getParagraphs.js.map +1 -0
- package/build/languageProcessing/researches/getPassiveVoiceResult.js +118 -0
- package/build/languageProcessing/researches/getPassiveVoiceResult.js.map +1 -0
- package/build/languageProcessing/researches/getProminentWordsForInsights.js +39 -0
- package/build/languageProcessing/researches/getProminentWordsForInsights.js.map +1 -0
- package/build/languageProcessing/researches/getProminentWordsForInternalLinking.js +97 -0
- package/build/languageProcessing/researches/getProminentWordsForInternalLinking.js.map +1 -0
- package/build/languageProcessing/researches/getSentenceBeginnings.js +116 -0
- package/build/languageProcessing/researches/getSentenceBeginnings.js.map +1 -0
- package/build/languageProcessing/researches/getSubheadingTextLengths.js +54 -0
- package/build/languageProcessing/researches/getSubheadingTextLengths.js.map +1 -0
- package/build/languageProcessing/researches/getWordForms.js +177 -0
- package/build/languageProcessing/researches/getWordForms.js.map +1 -0
- package/build/languageProcessing/researches/h1s.js +11 -0
- package/build/languageProcessing/researches/h1s.js.map +1 -0
- package/build/languageProcessing/researches/imageCount.js +16 -0
- package/build/languageProcessing/researches/imageCount.js.map +1 -0
- package/build/languageProcessing/researches/index.js +5 -0
- package/build/languageProcessing/researches/index.js.map +1 -0
- package/build/languageProcessing/researches/keyphraseDistribution.js +223 -0
- package/build/languageProcessing/researches/keyphraseDistribution.js.map +1 -0
- package/build/languageProcessing/researches/keyphraseLength.js +17 -0
- package/build/languageProcessing/researches/keyphraseLength.js.map +1 -0
- package/build/languageProcessing/researches/keywordCount.js +127 -0
- package/build/languageProcessing/researches/keywordCount.js.map +1 -0
- package/build/languageProcessing/researches/keywordCountInUrl.js +50 -0
- package/build/languageProcessing/researches/keywordCountInUrl.js.map +1 -0
- package/build/languageProcessing/researches/matchKeywordInSubheadings.js +62 -0
- package/build/languageProcessing/researches/matchKeywordInSubheadings.js.map +1 -0
- package/build/languageProcessing/researches/metaDescriptionKeyword.js +72 -0
- package/build/languageProcessing/researches/metaDescriptionKeyword.js.map +1 -0
- package/build/languageProcessing/researches/metaDescriptionLength.js +13 -0
- package/build/languageProcessing/researches/metaDescriptionLength.js.map +1 -0
- package/build/languageProcessing/researches/pageTitleWidth.js +12 -0
- package/build/languageProcessing/researches/pageTitleWidth.js.map +1 -0
- package/build/languageProcessing/researches/readingTime.js +78 -0
- package/build/languageProcessing/researches/readingTime.js.map +1 -0
- package/build/languageProcessing/researches/sentences.js +20 -0
- package/build/languageProcessing/researches/sentences.js.map +1 -0
- package/build/languageProcessing/researches/videoCount.js +33 -0
- package/build/languageProcessing/researches/videoCount.js.map +1 -0
- package/build/languageProcessing/researches/wordComplexity.js +122 -0
- package/build/languageProcessing/researches/wordComplexity.js.map +1 -0
- package/build/languageProcessing/researches/wordCountInText.js +30 -0
- package/build/languageProcessing/researches/wordCountInText.js.map +1 -0
- package/build/languageProcessing/values/Clause.js +107 -0
- package/build/languageProcessing/values/Clause.js.map +1 -0
- package/build/languageProcessing/values/ProminentWord.js +95 -0
- package/build/languageProcessing/values/ProminentWord.js.map +1 -0
- package/build/languageProcessing/values/Sentence.js +110 -0
- package/build/languageProcessing/values/Sentence.js.map +1 -0
- package/build/languageProcessing/values/index.js +5 -0
- package/build/languageProcessing/values/index.js.map +1 -0
- package/build/markers/addMark.js +10 -0
- package/build/markers/addMark.js.map +1 -0
- package/build/markers/addMarkSingleWord.js +32 -0
- package/build/markers/addMarkSingleWord.js.map +1 -0
- package/build/markers/index.js +4 -0
- package/build/markers/index.js.map +1 -0
- package/build/markers/removeDuplicateMarks.js +26 -0
- package/build/markers/removeDuplicateMarks.js.map +1 -0
- package/build/markers/removeMarks.js +10 -0
- package/build/markers/removeMarks.js.map +1 -0
- package/build/parse/build/build.js +54 -0
- package/build/parse/build/build.js.map +1 -0
- package/build/parse/build/index.js +9 -0
- package/build/parse/build/index.js.map +1 -0
- package/build/parse/build/private/adapt.js +105 -0
- package/build/parse/build/private/adapt.js.map +1 -0
- package/build/parse/build/private/adaptAttributes.js +35 -0
- package/build/parse/build/private/adaptAttributes.js.map +1 -0
- package/build/parse/build/private/alwaysFilterElements.js +27 -0
- package/build/parse/build/private/alwaysFilterElements.js.map +1 -0
- package/build/parse/build/private/combineIntoImplicitParagraphs.js +123 -0
- package/build/parse/build/private/combineIntoImplicitParagraphs.js.map +1 -0
- package/build/parse/build/private/filterBeforeTokenizing.js +32 -0
- package/build/parse/build/private/filterBeforeTokenizing.js.map +1 -0
- package/build/parse/build/private/filterHelpers.js +44 -0
- package/build/parse/build/private/filterHelpers.js.map +1 -0
- package/build/parse/build/private/filterTree.js +42 -0
- package/build/parse/build/private/filterTree.js.map +1 -0
- package/build/parse/build/private/getTextElementPositions.js +179 -0
- package/build/parse/build/private/getTextElementPositions.js.map +1 -0
- package/build/parse/build/private/helpers/parseClassAttribute.js +9 -0
- package/build/parse/build/private/helpers/parseClassAttribute.js.map +1 -0
- package/build/parse/build/private/isPhrasingContent.js +24 -0
- package/build/parse/build/private/isPhrasingContent.js.map +1 -0
- package/build/parse/build/private/parseBlocks.js +144 -0
- package/build/parse/build/private/parseBlocks.js.map +1 -0
- package/build/parse/build/private/tokenize.js +72 -0
- package/build/parse/build/private/tokenize.js.map +1 -0
- package/build/parse/language/LanguageProcessor.js +70 -0
- package/build/parse/language/LanguageProcessor.js.map +1 -0
- package/build/parse/structure/Heading.js +26 -0
- package/build/parse/structure/Heading.js.map +1 -0
- package/build/parse/structure/Node.js +69 -0
- package/build/parse/structure/Node.js.map +1 -0
- package/build/parse/structure/Paragraph.js +47 -0
- package/build/parse/structure/Paragraph.js.map +1 -0
- package/build/parse/structure/Sentence.js +30 -0
- package/build/parse/structure/Sentence.js.map +1 -0
- package/build/parse/structure/SourceCodeLocation.js +40 -0
- package/build/parse/structure/SourceCodeLocation.js.map +1 -0
- package/build/parse/structure/Text.js +26 -0
- package/build/parse/structure/Text.js.map +1 -0
- package/build/parse/structure/Token.js +24 -0
- package/build/parse/structure/Token.js.map +1 -0
- package/build/parse/structure/index.js +12 -0
- package/build/parse/structure/index.js.map +1 -0
- package/build/parse/traverse/findAllInTree.js +56 -0
- package/build/parse/traverse/findAllInTree.js.map +1 -0
- package/build/parse/traverse/index.js +10 -0
- package/build/parse/traverse/index.js.map +1 -0
- package/build/parse/traverse/innerText.js +25 -0
- package/build/parse/traverse/innerText.js.map +1 -0
- package/build/parsedPaper/ParsedPaper.js +93 -0
- package/build/parsedPaper/ParsedPaper.js.map +1 -0
- package/build/parsedPaper/assess/TreeAssessor.js +175 -0
- package/build/parsedPaper/assess/TreeAssessor.js.map +1 -0
- package/build/parsedPaper/assess/assessmentListFactories.js +67 -0
- package/build/parsedPaper/assess/assessmentListFactories.js.map +1 -0
- package/build/parsedPaper/assess/assessments/Assessment.js +92 -0
- package/build/parsedPaper/assess/assessments/Assessment.js.map +1 -0
- package/build/parsedPaper/assess/assessments/index.js +7 -0
- package/build/parsedPaper/assess/assessments/index.js.map +1 -0
- package/build/parsedPaper/assess/assessorFactories.js +96 -0
- package/build/parsedPaper/assess/assessorFactories.js.map +1 -0
- package/build/parsedPaper/assess/cornerstone/assessmentListFactories.js +43 -0
- package/build/parsedPaper/assess/cornerstone/assessmentListFactories.js.map +1 -0
- package/build/parsedPaper/assess/cornerstone/index.js +3 -0
- package/build/parsedPaper/assess/cornerstone/index.js.map +1 -0
- package/build/parsedPaper/assess/index.js +15 -0
- package/build/parsedPaper/assess/index.js.map +1 -0
- package/build/parsedPaper/build/PaperParser.js +97 -0
- package/build/parsedPaper/build/PaperParser.js.map +1 -0
- package/build/parsedPaper/build/linguisticParsing/Sentence.js +89 -0
- package/build/parsedPaper/build/linguisticParsing/Sentence.js.map +1 -0
- package/build/parsedPaper/build/linguisticParsing/SentenceTokenizer.js +287 -0
- package/build/parsedPaper/build/linguisticParsing/SentenceTokenizer.js.map +1 -0
- package/build/parsedPaper/build/linguisticParsing/parseText.js +20 -0
- package/build/parsedPaper/build/linguisticParsing/parseText.js.map +1 -0
- package/build/parsedPaper/build/tree/TreeBuilder.js +76 -0
- package/build/parsedPaper/build/tree/TreeBuilder.js.map +1 -0
- package/build/parsedPaper/build/tree/cleanup/calculateTextIndices.js +178 -0
- package/build/parsedPaper/build/tree/cleanup/calculateTextIndices.js.map +1 -0
- package/build/parsedPaper/build/tree/cleanup/getElementContent.js +21 -0
- package/build/parsedPaper/build/tree/cleanup/getElementContent.js.map +1 -0
- package/build/parsedPaper/build/tree/cleanup/postParsing.js +37 -0
- package/build/parsedPaper/build/tree/cleanup/postParsing.js.map +1 -0
- package/build/parsedPaper/build/tree/html/HTMLTreeConverter.js +220 -0
- package/build/parsedPaper/build/tree/html/HTMLTreeConverter.js.map +1 -0
- package/build/parsedPaper/build/tree/html/buildTree.js +30 -0
- package/build/parsedPaper/build/tree/html/buildTree.js.map +1 -0
- package/build/parsedPaper/build/tree/html/htmlConstants.js +30 -0
- package/build/parsedPaper/build/tree/html/htmlConstants.js.map +1 -0
- package/build/parsedPaper/build/tree/index.js +15 -0
- package/build/parsedPaper/build/tree/index.js.map +1 -0
- package/build/parsedPaper/build/tree/metadata/buildTree.js +30 -0
- package/build/parsedPaper/build/tree/metadata/buildTree.js.map +1 -0
- package/build/parsedPaper/research/TreeResearcher.js +131 -0
- package/build/parsedPaper/research/TreeResearcher.js.map +1 -0
- package/build/parsedPaper/research/index.js +12 -0
- package/build/parsedPaper/research/index.js.map +1 -0
- package/build/parsedPaper/research/researches/Headings.js +20 -0
- package/build/parsedPaper/research/researches/Headings.js.map +1 -0
- package/build/parsedPaper/research/researches/LinkStatistics.js +123 -0
- package/build/parsedPaper/research/researches/LinkStatistics.js.map +1 -0
- package/build/parsedPaper/research/researches/Research.js +53 -0
- package/build/parsedPaper/research/researches/Research.js.map +1 -0
- package/build/parsedPaper/research/researches/index.js +2 -0
- package/build/parsedPaper/research/researches/index.js.map +1 -0
- package/build/parsedPaper/structure/tree/FormattingElement.js +67 -0
- package/build/parsedPaper/structure/tree/FormattingElement.js.map +1 -0
- package/build/parsedPaper/structure/tree/SourceCodeLocation.js +42 -0
- package/build/parsedPaper/structure/tree/SourceCodeLocation.js.map +1 -0
- package/build/parsedPaper/structure/tree/TextContainer.js +84 -0
- package/build/parsedPaper/structure/tree/TextContainer.js.map +1 -0
- package/build/parsedPaper/structure/tree/index.js +11 -0
- package/build/parsedPaper/structure/tree/index.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/Heading.js +27 -0
- package/build/parsedPaper/structure/tree/nodes/Heading.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/LeafNode.js +75 -0
- package/build/parsedPaper/structure/tree/nodes/LeafNode.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/List.js +48 -0
- package/build/parsedPaper/structure/tree/nodes/List.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/ListItem.js +27 -0
- package/build/parsedPaper/structure/tree/nodes/ListItem.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/MetadataMiscellaneous.js +45 -0
- package/build/parsedPaper/structure/tree/nodes/MetadataMiscellaneous.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/MetadataText.js +25 -0
- package/build/parsedPaper/structure/tree/nodes/MetadataText.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/Node.js +153 -0
- package/build/parsedPaper/structure/tree/nodes/Node.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/Paragraph.js +23 -0
- package/build/parsedPaper/structure/tree/nodes/Paragraph.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/StructuredNode.js +53 -0
- package/build/parsedPaper/structure/tree/nodes/StructuredNode.js.map +1 -0
- package/build/parsedPaper/structure/tree/nodes/index.js +11 -0
- package/build/parsedPaper/structure/tree/nodes/index.js.map +1 -0
- package/build/scoring/assessments/assessment.js +70 -0
- package/build/scoring/assessments/assessment.js.map +1 -0
- package/build/scoring/assessments/index.js +61 -0
- package/build/scoring/assessments/index.js.map +1 -0
- package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js +159 -0
- package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js.map +1 -0
- package/build/scoring/assessments/readability/RelatedKeywordsAssessment.js +114 -0
- package/build/scoring/assessments/readability/RelatedKeywordsAssessment.js.map +1 -0
- package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js +128 -0
- package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js.map +1 -0
- package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js +170 -0
- package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js.map +1 -0
- package/build/scoring/assessments/readability/TransitionWordsAssessment.js +156 -0
- package/build/scoring/assessments/readability/TransitionWordsAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/ImageCountAssessment.js +104 -0
- package/build/scoring/assessments/seo/ImageCountAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/InternalLinksAssessment.js +106 -0
- package/build/scoring/assessments/seo/InternalLinksAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js +103 -0
- package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/KeyphraseAssessment.js +98 -0
- package/build/scoring/assessments/seo/KeyphraseAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js +103 -0
- package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/KeywordDensityAssessment.js +111 -0
- package/build/scoring/assessments/seo/KeywordDensityAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js +111 -0
- package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js +104 -0
- package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js +108 -0
- package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js +101 -0
- package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/OutboundLinksAssessment.js +107 -0
- package/build/scoring/assessments/seo/OutboundLinksAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/PageTitleWidthAssessment.js +99 -0
- package/build/scoring/assessments/seo/PageTitleWidthAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/SchemaAssessment.js +108 -0
- package/build/scoring/assessments/seo/SchemaAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/SingleH1Assessment.js +108 -0
- package/build/scoring/assessments/seo/SingleH1Assessment.js.map +1 -0
- package/build/scoring/assessments/seo/SingleTitleAssessment.js +101 -0
- package/build/scoring/assessments/seo/SingleTitleAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js +99 -0
- package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/TextImagesAssessment.js +135 -0
- package/build/scoring/assessments/seo/TextImagesAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/TextLengthAssessment.js +97 -0
- package/build/scoring/assessments/seo/TextLengthAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/UrlKeywordAssessment.js +100 -0
- package/build/scoring/assessments/seo/UrlKeywordAssessment.js.map +1 -0
- package/build/scoring/assessments/seo/UrlLengthAssessment.js +99 -0
- package/build/scoring/assessments/seo/UrlLengthAssessment.js.map +1 -0
- package/build/scoring/assessors/assessor.js +277 -0
- package/build/scoring/assessors/assessor.js.map +1 -0
- package/build/scoring/assessors/avadaAssessor.js +85 -0
- package/build/scoring/assessors/avadaAssessor.js.map +1 -0
- package/build/scoring/assessors/contentAssessor.js +143 -0
- package/build/scoring/assessors/contentAssessor.js.map +1 -0
- package/build/scoring/assessors/index.js +5 -0
- package/build/scoring/assessors/index.js.map +1 -0
- package/build/scoring/assessors/seoAssessor.js +38 -0
- package/build/scoring/assessors/seoAssessor.js.map +1 -0
- package/build/scoring/helpers/assessments/checkForTooLongSentences.js +14 -0
- package/build/scoring/helpers/assessments/checkForTooLongSentences.js.map +1 -0
- package/build/scoring/helpers/assessments/inRange.js +43 -0
- package/build/scoring/helpers/assessments/inRange.js.map +1 -0
- package/build/scoring/helpers/assessments/keyphraseLengthFactor.js +11 -0
- package/build/scoring/helpers/assessments/keyphraseLengthFactor.js.map +1 -0
- package/build/scoring/helpers/assessments/recommendedKeywordCount.js +41 -0
- package/build/scoring/helpers/assessments/recommendedKeywordCount.js.map +1 -0
- package/build/scoring/helpers/index.js +84 -0
- package/build/scoring/helpers/index.js.map +1 -0
- package/build/scoring/interpreters/index.js +3 -0
- package/build/scoring/interpreters/index.js.map +1 -0
- package/build/scoring/interpreters/scoreToRating.js +26 -0
- package/build/scoring/interpreters/scoreToRating.js.map +1 -0
- package/build/scoring/renderers/AssessorPresenter.js +342 -0
- package/build/scoring/renderers/AssessorPresenter.js.map +1 -0
- package/build/scoring/scoreAggregators/ReadabilityScoreAggregator.js +197 -0
- package/build/scoring/scoreAggregators/ReadabilityScoreAggregator.js.map +1 -0
- package/build/scoring/scoreAggregators/SEOScoreAggregator.js +54 -0
- package/build/scoring/scoreAggregators/SEOScoreAggregator.js.map +1 -0
- package/build/scoring/scoreAggregators/ScoreAggregator.js +24 -0
- package/build/scoring/scoreAggregators/ScoreAggregator.js.map +1 -0
- package/build/scoring/scoreAggregators/index.js +4 -0
- package/build/scoring/scoreAggregators/index.js.map +1 -0
- package/build/values/AssessmentResult.js +479 -0
- package/build/values/AssessmentResult.js.map +1 -0
- package/build/values/Mark.js +267 -0
- package/build/values/Mark.js.map +1 -0
- package/build/values/Paper.js +489 -0
- package/build/values/Paper.js.map +1 -0
- package/build/values/index.js +5 -0
- package/build/values/index.js.map +1 -0
- package/build/vendor/turkishStemmer.js +2811 -0
- package/build/vendor/turkishStemmer.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transitionWords.js","names":["singleWords","multipleWords","allWords","concat"],"sources":["../../../../../src/languageProcessing/languages/en/config/transitionWords.js"],"sourcesContent":["/** @module config/transitionWords */\n\nexport const singleWords = [ \"accordingly\", \"additionally\", \"afterward\", \"afterwards\", \"albeit\", \"also\", \"although\", \"altogether\",\n\t\"another\", \"basically\", \"because\", \"before\", \"besides\", \"but\", \"certainly\", \"chiefly\", \"comparatively\",\n\t\"concurrently\", \"consequently\", \"contrarily\", \"conversely\", \"correspondingly\", \"despite\", \"doubtedly\", \"during\",\n\t\"e.g.\", \"earlier\", \"emphatically\", \"equally\", \"especially\", \"eventually\", \"evidently\", \"explicitly\", \"finally\",\n\t\"firstly\", \"following\", \"formerly\", \"forthwith\", \"fourthly\", \"further\", \"furthermore\", \"generally\", \"hence\",\n\t\"henceforth\", \"however\", \"i.e.\", \"identically\", \"indeed\", \"initially\", \"instead\", \"last\", \"lastly\", \"later\", \"lest\",\n\t\"likewise\", \"markedly\", \"meanwhile\", \"moreover\", \"nevertheless\", \"nonetheless\", \"nor\", \"notwithstanding\", \"obviously\",\n\t\"occasionally\", \"otherwise\", \"overall\", \"particularly\", \"presently\", \"previously\", \"rather\", \"regardless\", \"secondly\",\n\t\"shortly\", \"significantly\", \"similarly\", \"simultaneously\", \"since\", \"so\", \"soon\", \"specifically\", \"still\", \"straightaway\",\n\t\"subsequently\", \"surely\", \"surprisingly\", \"than\", \"then\", \"thereafter\", \"therefore\", \"thereupon\", \"thirdly\", \"though\",\n\t\"thus\", \"till\", \"undeniably\", \"undoubtedly\", \"unless\", \"unlike\", \"unquestionably\", \"until\", \"when\", \"whenever\",\n\t\"whereas\", \"while\", \"whether\", \"if\", \"actually\", \"anyway\", \"anyways\", \"anyhow\", \"mostly\", \"namely\", \"including\", \"suddenly\" ];\nexport const multipleWords = [ \"above all\", \"after all\", \"after that\", \"all in all\", \"all of a sudden\", \"all things considered\",\n\t\"analogous to\", \"although this may be true\", \"analogous to\", \"another key point\", \"as a matter of fact\", \"as a result\",\n\t\"as an illustration\", \"as can be seen\", \"as has been noted\", \"as I have noted\", \"as I have said\", \"as I have shown\",\n\t\"as long as\", \"as much as\", \"as opposed to\", \"as shown above\", \"as soon as\", \"as well as\", \"at any rate\", \"at first\", \"at last\",\n\t\"at least\", \"at length\", \"at the present time\", \"at the same time\", \"at this instant\", \"at this point\", \"at this time\",\n\t\"balanced against\", \"being that\", \"by all means\", \"by and large\", \"by comparison\", \"by the same token\", \"by the time\",\n\t\"compared to\", \"be that as it may\", \"coupled with\", \"different from\", \"due to\", \"equally important\", \"even if\",\n\t\"even more\", \"even so\", \"even though\", \"first thing to remember\", \"for example\", \"for fear that\", \"for instance\",\n\t\"for one thing\", \"for that reason\", \"for the most part\", \"for the purpose of\", \"for the same reason\", \"for this purpose\",\n\t\"for this reason\", \"from time to time\", \"given that\", \"given these points\", \"important to realize\", \"in a word\", \"in addition\",\n\t\"in another case\", \"in any case\", \"in any event\", \"in brief\", \"in case\", \"in conclusion\", \"in contrast\",\n\t\"in detail\", \"in due time\", \"in effect\", \"in either case\", \"either way\", \"in essence\", \"in fact\", \"in general\", \"in light of\",\n\t\"in like fashion\", \"in like manner\", \"in order that\", \"in order to\", \"in other words\", \"in particular\", \"in reality\",\n\t\"in short\", \"in similar fashion\", \"in spite of\", \"in sum\", \"in summary\", \"in that case\", \"in the event that\",\n\t\"in the final analysis\", \"in the first place\", \"in the fourth place\", \"in the hope that\", \"in the light of\",\n\t\"in the long run\", \"in the meantime\", \"in the same fashion\", \"in the same way\", \"in the second place\",\n\t\"in the third place\", \"in this case\", \"in this situation\", \"in time\", \"in truth\", \"in view of\", \"inasmuch as\",\n\t\"most compelling evidence\", \"most important\", \"must be remembered\", \"not only\", \"not to mention\", \"note that\",\n\t\"now that\", \"of course\", \"on account of\", \"on balance\", \"on condition that\", \"on one hand\", \"on the condition that\", \"on the contrary\",\n\t\"on the negative side\", \"on the other hand\", \"on the positive side\", \"on the whole\", \"on this occasion\", \"all at once\",\n\t\"once in a while\", \t\"only if\", \"owing to\", \"point often overlooked\", \"prior to\", \"provided that\", \"seeing that\",\n\t\"so as to\", \"so far\", \"so long as\", \"so that\", \"sooner or later\", \"such as\", \"summing up\", \"take the case of\",\n\t\"that is\", \"that is to say\", \"then again\", \"this time\", \"to be sure\", \"to begin with\", \"to clarify\", \"to conclude\",\n\t\"to demonstrate\", \"to emphasize\", \"to enumerate\", \"to explain\", \"to illustrate\", \"to list\", \"to point out\",\n\t\"to put it another way\", \"to put it differently\", \"to repeat\", \"to rephrase it\", \"to say nothing of\", \"to sum up\",\n\t\"to summarize\", \"to that end\", \"to the end that\", \"to this end\", \"together with\", \"under those circumstances\", \"until now\",\n\t\"up against\", \"up to the present time\", \"vis a vis\", \"what's more\", \"what is more\", \"while it may be true\", \"while this may be true\",\n\t\"with attention to\", \"with the result that\", \"with this in mind\", \"with this intention\", \"with this purpose in mind\",\n\t\"without a doubt\", \"without delay\", \"without doubt\", \"without reservation\", \"according to\", \"no sooner\", \"at most\", \"at the most\",\n\t\"from now on\" ];\n\nexport const allWords = singleWords.concat( multipleWords );\n\nexport default allWords;\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** @module config/twoPartTransitionWords */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Returns an array with two-part transition words to be used by the assessments.
|
|
5
|
+
* @type {Array} The array filled with two-part transition words.
|
|
6
|
+
*/
|
|
7
|
+
export default [["both", "and"], ["not only", "but also"], ["neither", "nor"], ["either", "or"], ["not", "but"]];
|
|
8
|
+
//# sourceMappingURL=twoPartTransitionWords.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"twoPartTransitionWords.js","names":[],"sources":["../../../../../src/languageProcessing/languages/en/config/twoPartTransitionWords.js"],"sourcesContent":["/** @module config/twoPartTransitionWords */\n\n/**\n * Returns an array with two-part transition words to be used by the assessments.\n * @type {Array} The array filled with two-part transition words.\n */\nexport default [ [ \"both\", \"and\" ], [ \"not only\", \"but also\" ], [ \"neither\", \"nor\" ], [ \"either\", \"or\" ], [ \"not\", \"but\" ] ];\n"],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACA,eAAe,CAAE,CAAE,MAAM,EAAE,KAAK,CAAE,EAAE,CAAE,UAAU,EAAE,UAAU,CAAE,EAAE,CAAE,SAAS,EAAE,KAAK,CAAE,EAAE,CAAE,QAAQ,EAAE,IAAI,CAAE,EAAE,CAAE,KAAK,EAAE,KAAK,CAAE,CAAE","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wordComplexity.js","names":["wordLength","doesUpperCaseDecreaseComplexity"],"sources":["../../../../../src/languageProcessing/languages/en/config/wordComplexity.js"],"sourcesContent":["// This is a config for the Word Complexity assessment. As such, this helper is not bundled in Yoast SEO.\nexport default {\n\twordLength: 7,\n\tdoesUpperCaseDecreaseComplexity: true,\n};\n"],"mappings":"AAAA;AACA,eAAe;EACdA,UAAU,EAAE,CAAC;EACbC,+BAA+B,EAAE;AAClC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { helpers } from "../../../../index.js";
|
|
2
|
+
const {
|
|
3
|
+
formatNumber
|
|
4
|
+
} = helpers;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Returns the Flesch reading score for English.
|
|
8
|
+
*
|
|
9
|
+
* @param {Object} statistics The Flesch reading statistics.
|
|
10
|
+
*
|
|
11
|
+
* @returns {number} The Flesch reading score for English.
|
|
12
|
+
*/
|
|
13
|
+
export default function calculateScore(statistics) {
|
|
14
|
+
const score = 206.835 - 1.015 * statistics.averageWordsPerSentence - 84.6 * (statistics.numberOfSyllables / statistics.numberOfWords);
|
|
15
|
+
return formatNumber(score);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=calculateFleschReadingScore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateFleschReadingScore.js","names":["helpers","formatNumber","calculateScore","statistics","score","averageWordsPerSentence","numberOfSyllables","numberOfWords"],"sources":["../../../../../src/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js"],"sourcesContent":["import {helpers} from '@axyseo/index.js';\nconst {formatNumber} = helpers;\n\n/**\n * Returns the Flesch reading score for English.\n *\n * @param {Object} statistics The Flesch reading statistics.\n *\n * @returns {number} The Flesch reading score for English.\n */\nexport default function calculateScore(statistics) {\n const score =\n 206.835 -\n 1.015 * statistics.averageWordsPerSentence -\n 84.6 * (statistics.numberOfSyllables / statistics.numberOfWords);\n\n return formatNumber(score);\n}\n"],"mappings":"AAAA,SAAQA,OAAO;AACf,MAAM;EAACC;AAAY,CAAC,GAAGD,OAAO;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASE,cAAcA,CAACC,UAAU,EAAE;EACjD,MAAMC,KAAK,GACT,OAAO,GACP,KAAK,GAAGD,UAAU,CAACE,uBAAuB,GAC1C,IAAI,IAAIF,UAAU,CAACG,iBAAiB,GAAGH,UAAU,CAACI,aAAa,CAAC;EAElE,OAAON,YAAY,CAACG,KAAK,CAAC;AAC5B","ignoreList":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import buildFormRule from "../../../helpers/morphology/buildFormRule";
|
|
2
|
+
import createRulesFromArrays from "../../../helpers/morphology/createRulesFromArrays";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Checks if a word is complex.
|
|
6
|
+
* This is a helper for the Word Complexity assessment. As such, this helper is not bundled in Yoast SEO.
|
|
7
|
+
*
|
|
8
|
+
* @param {object} config The configuration needed for assessing the word's complexity, e.g., the frequency list.
|
|
9
|
+
* @param {string} word The word to check.
|
|
10
|
+
* @param {object} premiumData The object that contains data for the assessment including the frequency list.
|
|
11
|
+
*
|
|
12
|
+
* @returns {boolean} Whether or not a word is complex.
|
|
13
|
+
*/
|
|
14
|
+
export default function checkIfWordIsComplex(config, word, premiumData) {
|
|
15
|
+
const lengthLimit = config.wordLength;
|
|
16
|
+
const frequencyList = premiumData.frequencyList.list;
|
|
17
|
+
|
|
18
|
+
// Whether uppercased beginning of a word decreases its complexity.
|
|
19
|
+
const doesUpperCaseDecreaseComplexity = config.doesUpperCaseDecreaseComplexity;
|
|
20
|
+
|
|
21
|
+
// The word is not complex if it's less than or the same as the length limit, i.e. 7 characters for English.
|
|
22
|
+
if (word.length <= lengthLimit) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// The word is not complex if it starts with a capital and thus is assumed to be a named entity.
|
|
27
|
+
if (doesUpperCaseDecreaseComplexity && word[0].toLowerCase() !== word[0]) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// The word is not complex if it's in the frequency list.
|
|
32
|
+
if (frequencyList.includes(word)) {
|
|
33
|
+
return false;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// The word is not complex if its singular form is in the frequency list.
|
|
37
|
+
if (premiumData) {
|
|
38
|
+
const singular = buildFormRule(word, createRulesFromArrays(premiumData.nouns.regexNoun.singularize));
|
|
39
|
+
return !frequencyList.includes(singular);
|
|
40
|
+
}
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=checkIfWordIsComplex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkIfWordIsComplex.js","names":["buildFormRule","createRulesFromArrays","checkIfWordIsComplex","config","word","premiumData","lengthLimit","wordLength","frequencyList","list","doesUpperCaseDecreaseComplexity","length","toLowerCase","includes","singular","nouns","regexNoun","singularize"],"sources":["../../../../../src/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js"],"sourcesContent":["import buildFormRule from \"../../../helpers/morphology/buildFormRule\";\nimport createRulesFromArrays from \"../../../helpers/morphology/createRulesFromArrays\";\n\n/**\n * Checks if a word is complex.\n * This is a helper for the Word Complexity assessment. As such, this helper is not bundled in Yoast SEO.\n *\n * @param {object} config The configuration needed for assessing the word's complexity, e.g., the frequency list.\n * @param {string} word The word to check.\n * @param {object}\tpremiumData The object that contains data for the assessment including the frequency list.\n *\n * @returns {boolean} Whether or not a word is complex.\n */\nexport default function checkIfWordIsComplex( config, word, premiumData ) {\n\tconst lengthLimit = config.wordLength;\n\tconst frequencyList = premiumData.frequencyList.list;\n\n\t// Whether uppercased beginning of a word decreases its complexity.\n\tconst doesUpperCaseDecreaseComplexity = config.doesUpperCaseDecreaseComplexity;\n\n\t// The word is not complex if it's less than or the same as the length limit, i.e. 7 characters for English.\n\tif ( word.length <= lengthLimit ) {\n\t\treturn false;\n\t}\n\n\t// The word is not complex if it starts with a capital and thus is assumed to be a named entity.\n\tif ( doesUpperCaseDecreaseComplexity && word[ 0 ].toLowerCase() !== word[ 0 ] ) {\n\t\treturn false;\n\t}\n\n\t// The word is not complex if it's in the frequency list.\n\tif ( frequencyList.includes( word ) ) {\n\t\treturn false;\n\t}\n\n\t// The word is not complex if its singular form is in the frequency list.\n\tif ( premiumData ) {\n\t\tconst singular = buildFormRule( word, createRulesFromArrays( premiumData.nouns.regexNoun.singularize ) );\n\t\treturn ! frequencyList.includes( singular );\n\t}\n\n\treturn true;\n}\n"],"mappings":"AAAA,OAAOA,aAAa;AACpB,OAAOC,qBAAqB;;AAE5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,oBAAoBA,CAAEC,MAAM,EAAEC,IAAI,EAAEC,WAAW,EAAG;EACzE,MAAMC,WAAW,GAAGH,MAAM,CAACI,UAAU;EACrC,MAAMC,aAAa,GAAGH,WAAW,CAACG,aAAa,CAACC,IAAI;;EAEpD;EACA,MAAMC,+BAA+B,GAAGP,MAAM,CAACO,+BAA+B;;EAE9E;EACA,IAAKN,IAAI,CAACO,MAAM,IAAIL,WAAW,EAAG;IACjC,OAAO,KAAK;EACb;;EAEA;EACA,IAAKI,+BAA+B,IAAIN,IAAI,CAAE,CAAC,CAAE,CAACQ,WAAW,CAAC,CAAC,KAAKR,IAAI,CAAE,CAAC,CAAE,EAAG;IAC/E,OAAO,KAAK;EACb;;EAEA;EACA,IAAKI,aAAa,CAACK,QAAQ,CAAET,IAAK,CAAC,EAAG;IACrC,OAAO,KAAK;EACb;;EAEA;EACA,IAAKC,WAAW,EAAG;IAClB,MAAMS,QAAQ,GAAGd,aAAa,CAAEI,IAAI,EAAEH,qBAAqB,CAAEI,WAAW,CAACU,KAAK,CAACC,SAAS,CAACC,WAAY,CAAE,CAAC;IACxG,OAAO,CAAET,aAAa,CAACK,QAAQ,CAAEC,QAAS,CAAC;EAC5C;EAEA,OAAO,IAAI;AACZ","ignoreList":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { languageProcessing } from "../../../../index.js";
|
|
2
|
+
const {
|
|
3
|
+
createRegexFromArray,
|
|
4
|
+
getClauses
|
|
5
|
+
} = languageProcessing;
|
|
6
|
+
import Clause from "../values/Clause";
|
|
7
|
+
import auxiliaries from "../config/internal/passiveVoiceAuxiliaries.js";
|
|
8
|
+
import stopwords from "../config/stopWords.js";
|
|
9
|
+
import { includes } from 'lodash';
|
|
10
|
+
import stripSpaces from "../../../helpers/sanitize/stripSpaces";
|
|
11
|
+
import { getIndicesByWordList as getIndicesOfList } from "../../../helpers/word/indices";
|
|
12
|
+
const options = {
|
|
13
|
+
Clause,
|
|
14
|
+
stopwords,
|
|
15
|
+
auxiliaries: auxiliaries,
|
|
16
|
+
ingExclusions: ['king', 'cling', 'ring', 'being', 'thing', 'something', 'anything'],
|
|
17
|
+
regexes: {
|
|
18
|
+
auxiliaryRegex: createRegexFromArray(auxiliaries),
|
|
19
|
+
stopCharacterRegex: /([:,]|('ll)|('ve))(?=[ \n\r\t'"+\-»«‹›<>])/gi,
|
|
20
|
+
verbEndingInIngRegex: /\w+ing(?=$|[ \n\r\t.,'()"+\-;!?:/»«‹›<>])/gi
|
|
21
|
+
},
|
|
22
|
+
otherStopWordIndices: []
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Gets active verbs (ending in ing) to determine sentence breakers in English.
|
|
27
|
+
*
|
|
28
|
+
* @param {string} sentence The sentence to get the active verbs from.
|
|
29
|
+
*
|
|
30
|
+
* @returns {Array} The array with valid matches.
|
|
31
|
+
*/
|
|
32
|
+
const getVerbsEndingInIngIndices = function (sentence) {
|
|
33
|
+
// Matches the sentences with words ending in ing.
|
|
34
|
+
let matches = sentence.match(options.regexes.verbEndingInIngRegex) || [];
|
|
35
|
+
// Filters out words ending in -ing that aren't verbs.
|
|
36
|
+
matches = matches.filter(match => !includes(options.ingExclusions, stripSpaces(match)));
|
|
37
|
+
return getIndicesOfList(matches, sentence);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Gets the clauses from a sentence by determining sentence breakers.
|
|
42
|
+
*
|
|
43
|
+
* @param {string} sentence The sentence to split up in clauses.
|
|
44
|
+
*
|
|
45
|
+
* @returns {Array} The array with all clauses that have an auxiliary.
|
|
46
|
+
*/
|
|
47
|
+
export default function getEnglishClauses(sentence) {
|
|
48
|
+
options.otherStopWordIndices = getVerbsEndingInIngIndices(sentence);
|
|
49
|
+
return getClauses(sentence, options);
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=getClauses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getClauses.js","names":["languageProcessing","createRegexFromArray","getClauses","Clause","auxiliaries","stopwords","includes","stripSpaces","getIndicesByWordList","getIndicesOfList","options","ingExclusions","regexes","auxiliaryRegex","stopCharacterRegex","verbEndingInIngRegex","otherStopWordIndices","getVerbsEndingInIngIndices","sentence","matches","match","filter","getEnglishClauses"],"sources":["../../../../../src/languageProcessing/languages/en/helpers/getClauses.js"],"sourcesContent":["import {languageProcessing} from '@axyseo/index.js';\nconst {createRegexFromArray, getClauses} = languageProcessing;\n\nimport Clause from '../values/Clause';\nimport auxiliaries from '../config/internal/passiveVoiceAuxiliaries.js';\nimport stopwords from '../config/stopWords.js';\nimport {includes} from 'lodash';\nimport stripSpaces from '../../../helpers/sanitize/stripSpaces';\nimport {getIndicesByWordList as getIndicesOfList} from '../../../helpers/word/indices';\n\nconst options = {\n Clause,\n stopwords,\n auxiliaries: auxiliaries,\n ingExclusions: ['king', 'cling', 'ring', 'being', 'thing', 'something', 'anything'],\n regexes: {\n auxiliaryRegex: createRegexFromArray(auxiliaries),\n stopCharacterRegex: /([:,]|('ll)|('ve))(?=[ \\n\\r\\t'\"+\\-»«‹›<>])/gi,\n verbEndingInIngRegex: /\\w+ing(?=$|[ \\n\\r\\t.,'()\"+\\-;!?:/»«‹›<>])/gi\n },\n otherStopWordIndices: []\n};\n\n/**\n * Gets active verbs (ending in ing) to determine sentence breakers in English.\n *\n * @param {string} sentence The sentence to get the active verbs from.\n *\n * @returns {Array} The array with valid matches.\n */\nconst getVerbsEndingInIngIndices = function(sentence) {\n // Matches the sentences with words ending in ing.\n let matches = sentence.match(options.regexes.verbEndingInIngRegex) || [];\n // Filters out words ending in -ing that aren't verbs.\n matches = matches.filter(match => !includes(options.ingExclusions, stripSpaces(match)));\n return getIndicesOfList(matches, sentence);\n};\n\n/**\n * Gets the clauses from a sentence by determining sentence breakers.\n *\n * @param {string} sentence The sentence to split up in clauses.\n *\n * @returns {Array} The array with all clauses that have an auxiliary.\n */\nexport default function getEnglishClauses(sentence) {\n options.otherStopWordIndices = getVerbsEndingInIngIndices(sentence);\n return getClauses(sentence, options);\n}\n"],"mappings":"AAAA,SAAQA,kBAAkB;AAC1B,MAAM;EAACC,oBAAoB;EAAEC;AAAU,CAAC,GAAGF,kBAAkB;AAE7D,OAAOG,MAAM;AACb,OAAOC,WAAW;AAClB,OAAOC,SAAS;AAChB,SAAQC,QAAQ,QAAO,QAAQ;AAC/B,OAAOC,WAAW;AAClB,SAAQC,oBAAoB,IAAIC,gBAAgB;AAEhD,MAAMC,OAAO,GAAG;EACdP,MAAM;EACNE,SAAS;EACTD,WAAW,EAAEA,WAAW;EACxBO,aAAa,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,UAAU,CAAC;EACnFC,OAAO,EAAE;IACPC,cAAc,EAAEZ,oBAAoB,CAACG,WAAW,CAAC;IACjDU,kBAAkB,EAAE,8CAA8C;IAClEC,oBAAoB,EAAE;EACxB,CAAC;EACDC,oBAAoB,EAAE;AACxB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,0BAA0B,GAAG,SAAAA,CAASC,QAAQ,EAAE;EACpD;EACA,IAAIC,OAAO,GAAGD,QAAQ,CAACE,KAAK,CAACV,OAAO,CAACE,OAAO,CAACG,oBAAoB,CAAC,IAAI,EAAE;EACxE;EACAI,OAAO,GAAGA,OAAO,CAACE,MAAM,CAACD,KAAK,IAAI,CAACd,QAAQ,CAACI,OAAO,CAACC,aAAa,EAAEJ,WAAW,CAACa,KAAK,CAAC,CAAC,CAAC;EACvF,OAAOX,gBAAgB,CAACU,OAAO,EAAED,QAAQ,CAAC;AAC5C,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASI,iBAAiBA,CAACJ,QAAQ,EAAE;EAClDR,OAAO,CAACM,oBAAoB,GAAGC,0BAA0B,CAACC,QAAQ,CAAC;EACnE,OAAOhB,UAAU,CAACgB,QAAQ,EAAER,OAAO,CAAC;AACtC","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { get } from 'lodash';
|
|
2
|
+
import { languageProcessing } from "../../../../index.js";
|
|
3
|
+
const {
|
|
4
|
+
baseStemmer
|
|
5
|
+
} = languageProcessing;
|
|
6
|
+
import determineStem from "./internal/determineStem";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Returns the stemmer for a researcher.
|
|
10
|
+
*
|
|
11
|
+
* @param {Researcher} researcher The researcher.
|
|
12
|
+
*
|
|
13
|
+
* @returns {Function} The stemmer.
|
|
14
|
+
*/
|
|
15
|
+
export default function getStemmer(researcher) {
|
|
16
|
+
const morphologyData = get(researcher.getData('morphology'), 'en', false);
|
|
17
|
+
if (morphologyData) {
|
|
18
|
+
return word => determineStem(word, morphologyData);
|
|
19
|
+
}
|
|
20
|
+
return baseStemmer;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=getStemmer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStemmer.js","names":["get","languageProcessing","baseStemmer","determineStem","getStemmer","researcher","morphologyData","getData","word"],"sources":["../../../../../src/languageProcessing/languages/en/helpers/getStemmer.js"],"sourcesContent":["import {get} from 'lodash';\nimport {languageProcessing} from '@axyseo/index.js';\nconst {baseStemmer} = languageProcessing;\n\nimport determineStem from './internal/determineStem';\n\n/**\n * Returns the stemmer for a researcher.\n *\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Function} The stemmer.\n */\nexport default function getStemmer(researcher) {\n const morphologyData = get(researcher.getData('morphology'), 'en', false);\n\n if (morphologyData) {\n return word => determineStem(word, morphologyData);\n }\n\n return baseStemmer;\n}\n"],"mappings":"AAAA,SAAQA,GAAG,QAAO,QAAQ;AAC1B,SAAQC,kBAAkB;AAC1B,MAAM;EAACC;AAAW,CAAC,GAAGD,kBAAkB;AAExC,OAAOE,aAAa;;AAEpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,UAAUA,CAACC,UAAU,EAAE;EAC7C,MAAMC,cAAc,GAAGN,GAAG,CAACK,UAAU,CAACE,OAAO,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC;EAEzE,IAAID,cAAc,EAAE;IAClB,OAAOE,IAAI,IAAIL,aAAa,CAACK,IAAI,EAAEF,cAAc,CAAC;EACpD;EAEA,OAAOJ,WAAW;AACpB","ignoreList":[]}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { isUndefined, flatten } from 'lodash';
|
|
2
|
+
import { languageProcessing } from "../../../../../index.js";
|
|
3
|
+
const {
|
|
4
|
+
buildFormRule,
|
|
5
|
+
createRulesFromArrays
|
|
6
|
+
} = languageProcessing;
|
|
7
|
+
import getAdjectiveStem from "./getAdjectiveStem";
|
|
8
|
+
import { getInfinitive, checkIrregulars as getIrregularVerbParadigm, endsWithIng } from "./getVerbStem.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Gets the shortest of the alphabetically ordered strings from an array.
|
|
12
|
+
*
|
|
13
|
+
* @param {string[]} array The array of strings.
|
|
14
|
+
*
|
|
15
|
+
* @returns {string|undefined} The shortest of the alphabetically ordered strings from the input array;
|
|
16
|
+
* undefined if the input array is empty.
|
|
17
|
+
*/
|
|
18
|
+
export function findShortestAndAlphabeticallyFirst(array) {
|
|
19
|
+
const strings = flatten(array);
|
|
20
|
+
let result = strings.pop();
|
|
21
|
+
strings.forEach(str => {
|
|
22
|
+
const lengthDifference = str.length - result.length;
|
|
23
|
+
if (lengthDifference === 0) {
|
|
24
|
+
if (str.localeCompare(result) < 0) {
|
|
25
|
+
result = str;
|
|
26
|
+
}
|
|
27
|
+
} else if (lengthDifference < 0) {
|
|
28
|
+
result = str;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Checks if the input word occurs in the list of exceptions and if so returns the first form of the paradigm, which is
|
|
36
|
+
* always the base.
|
|
37
|
+
*
|
|
38
|
+
* @param {string} word The word for which to determine its base.
|
|
39
|
+
* @param {string[]} irregulars An array of irregular nouns and adjectives.
|
|
40
|
+
*
|
|
41
|
+
* @returns {string|null} The base form of the irregular word; null if no irregular stem was found.
|
|
42
|
+
*/
|
|
43
|
+
export function determineIrregularStem(word, irregulars) {
|
|
44
|
+
for (const paradigm of irregulars) {
|
|
45
|
+
if (paradigm.includes(word)) {
|
|
46
|
+
return paradigm[0];
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Checks if the input word occurs in the list of exception verbs and if so returns the first form
|
|
54
|
+
* of the paradigm, which is always the base. Contrary to nouns and adjectives, irregular verbs can have different prefixes
|
|
55
|
+
* which are not included in the list of exceptions and have to be processed separately.
|
|
56
|
+
*
|
|
57
|
+
* @param {string} word The word for which to determine its base.
|
|
58
|
+
* @param {Object} verbMorphology Regexes and irregulars for verb morphology, False if verb rules should not be applied.
|
|
59
|
+
*
|
|
60
|
+
* @returns {string|null} The base form of the irregular word; null if no irregular stem was found.
|
|
61
|
+
*/
|
|
62
|
+
export function determineIrregularVerbStem(word, verbMorphology) {
|
|
63
|
+
const paradigmIfIrregularVerb = getIrregularVerbParadigm(word, verbMorphology.irregularVerbs, verbMorphology.regexVerb.verbPrefixes);
|
|
64
|
+
if (!isUndefined(paradigmIfIrregularVerb)) {
|
|
65
|
+
return paradigmIfIrregularVerb[0];
|
|
66
|
+
}
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Gets possible stems as a regular noun, adjective and verb.
|
|
72
|
+
*
|
|
73
|
+
* @param {string} word The word for which to determine its base.
|
|
74
|
+
* @param {Object} morphologyData The morphology data for the language.
|
|
75
|
+
*
|
|
76
|
+
* @returns {string} The shortest and the alphabetically-first of possible noun-like, verb-like and adjective-like bases.
|
|
77
|
+
*/
|
|
78
|
+
export function determineRegularStem(word, morphologyData) {
|
|
79
|
+
// Try to singularize as a noun.
|
|
80
|
+
const regexVerb = morphologyData.verbs.regexVerb;
|
|
81
|
+
const baseIfPluralNoun = buildFormRule(word, createRulesFromArrays(morphologyData.nouns.regexNoun.singularize));
|
|
82
|
+
if (!isUndefined(baseIfPluralNoun)) {
|
|
83
|
+
// Bring ing-nouns to base forms ("blessings" -> "bless").
|
|
84
|
+
if (endsWithIng(baseIfPluralNoun)) {
|
|
85
|
+
return buildFormRule(baseIfPluralNoun, createRulesFromArrays(regexVerb.ingFormToInfinitive));
|
|
86
|
+
}
|
|
87
|
+
return baseIfPluralNoun;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Check if the word ends with "ic", "ical" or "ically". Return the "ical" form for consistency.
|
|
91
|
+
const regexAdjective = morphologyData.adjectives.regexAdjective;
|
|
92
|
+
const baseIfIcally = buildFormRule(word, createRulesFromArrays(regexAdjective.icallyToBase));
|
|
93
|
+
if (!isUndefined(baseIfIcally)) {
|
|
94
|
+
return baseIfIcally;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// No more quick guesses, we have to determine a verbal infinitive and an adjectival base.
|
|
98
|
+
const possibleRegularBases = [];
|
|
99
|
+
|
|
100
|
+
// Verbal infinitive.
|
|
101
|
+
const baseIfVerb = getInfinitive(word, regexVerb).infinitive;
|
|
102
|
+
possibleRegularBases.push(baseIfVerb);
|
|
103
|
+
|
|
104
|
+
// Adjectival base.
|
|
105
|
+
const stopAdjectives = morphologyData.adjectives.stopAdjectives;
|
|
106
|
+
/*
|
|
107
|
+
The following list of words are the stem of adjectives that have two syllables or more that receive -er and -est in their comparative and superlative forms, e.g 'shallow'.
|
|
108
|
+
Please note that if the adjective ends in -y and -e, the ending is removed, e.g. 'acute' -> 'acut'.
|
|
109
|
+
The list is not exhaustive and can be expanded if needed. Oxford dictionary was used to check if the forms indeed exist, e.g. "acuter".
|
|
110
|
+
*/
|
|
111
|
+
const multiSyllableAdjWithSuffixes = morphologyData.adjectives.multiSyllableAdjectives.list;
|
|
112
|
+
const baseIfAdjective = getAdjectiveStem(word, regexAdjective, stopAdjectives, multiSyllableAdjWithSuffixes).base;
|
|
113
|
+
possibleRegularBases.push(baseIfAdjective);
|
|
114
|
+
return findShortestAndAlphabeticallyFirst(possibleRegularBases);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Returns the stem of the input word using the morphologyData (language-specific).
|
|
119
|
+
*
|
|
120
|
+
* @param {string} word The word to get the stem for.
|
|
121
|
+
* @param {Object} morphologyData The available morphology data per language (false if unavailable).
|
|
122
|
+
*
|
|
123
|
+
* @returns {string} Stemmed (or base) form of the word.
|
|
124
|
+
*/
|
|
125
|
+
export function determineStem(word, morphologyData) {
|
|
126
|
+
const nounMorphology = morphologyData.nouns;
|
|
127
|
+
const baseIfPossessive = buildFormRule(word, createRulesFromArrays(nounMorphology.regexNoun.possessiveToBase));
|
|
128
|
+
let stem;
|
|
129
|
+
let irregular;
|
|
130
|
+
|
|
131
|
+
// Determine if this is an irregular noun, adjective or verb.
|
|
132
|
+
if (isUndefined(baseIfPossessive)) {
|
|
133
|
+
stem = word;
|
|
134
|
+
// Word can be a noun, adjective or verb.
|
|
135
|
+
irregular = determineIrregularStem(word, nounMorphology.irregularNouns) || determineIrregularStem(word, morphologyData.adjectives.irregularAdjectives) || determineIrregularVerbStem(word, morphologyData.verbs);
|
|
136
|
+
} else {
|
|
137
|
+
stem = baseIfPossessive;
|
|
138
|
+
// The word is a possessive, it can only be a noun or an ing-noun;
|
|
139
|
+
irregular = determineIrregularStem(baseIfPossessive, nounMorphology.irregularNouns);
|
|
140
|
+
}
|
|
141
|
+
if (irregular) {
|
|
142
|
+
// Found the stem of an irregular word! Return it.
|
|
143
|
+
return irregular;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Treat the word as a regular noun, adjective or verb.
|
|
147
|
+
return determineRegularStem(stem, morphologyData);
|
|
148
|
+
}
|
|
149
|
+
export default determineStem;
|
|
150
|
+
//# sourceMappingURL=determineStem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"determineStem.js","names":["isUndefined","flatten","languageProcessing","buildFormRule","createRulesFromArrays","getAdjectiveStem","getInfinitive","checkIrregulars","getIrregularVerbParadigm","endsWithIng","findShortestAndAlphabeticallyFirst","array","strings","result","pop","forEach","str","lengthDifference","length","localeCompare","determineIrregularStem","word","irregulars","paradigm","includes","determineIrregularVerbStem","verbMorphology","paradigmIfIrregularVerb","irregularVerbs","regexVerb","verbPrefixes","determineRegularStem","morphologyData","verbs","baseIfPluralNoun","nouns","regexNoun","singularize","ingFormToInfinitive","regexAdjective","adjectives","baseIfIcally","icallyToBase","possibleRegularBases","baseIfVerb","infinitive","push","stopAdjectives","multiSyllableAdjWithSuffixes","multiSyllableAdjectives","list","baseIfAdjective","base","determineStem","nounMorphology","baseIfPossessive","possessiveToBase","stem","irregular","irregularNouns","irregularAdjectives"],"sources":["../../../../../../src/languageProcessing/languages/en/helpers/internal/determineStem.js"],"sourcesContent":["import {isUndefined, flatten} from 'lodash';\nimport {languageProcessing} from '@axyseo/index.js';\nconst {buildFormRule, createRulesFromArrays} = languageProcessing;\n\nimport getAdjectiveStem from './getAdjectiveStem';\nimport {\n getInfinitive,\n checkIrregulars as getIrregularVerbParadigm,\n endsWithIng\n} from './getVerbStem.js';\n\n/**\n * Gets the shortest of the alphabetically ordered strings from an array.\n *\n * @param {string[]} array The array of strings.\n *\n * @returns {string|undefined} The shortest of the alphabetically ordered strings from the input array;\n * undefined if the input array is empty.\n */\nexport function findShortestAndAlphabeticallyFirst(array) {\n const strings = flatten(array);\n let result = strings.pop();\n\n strings.forEach(str => {\n const lengthDifference = str.length - result.length;\n if (lengthDifference === 0) {\n if (str.localeCompare(result) < 0) {\n result = str;\n }\n } else if (lengthDifference < 0) {\n result = str;\n }\n });\n\n return result;\n}\n\n/**\n * Checks if the input word occurs in the list of exceptions and if so returns the first form of the paradigm, which is\n * always the base.\n *\n * @param {string}\t\tword\t\tThe word for which to determine its base.\n * @param {string[]}\tirregulars\tAn array of irregular nouns and adjectives.\n *\n * @returns {string|null} The base form of the irregular word; null if no irregular stem was found.\n */\nexport function determineIrregularStem(word, irregulars) {\n for (const paradigm of irregulars) {\n if (paradigm.includes(word)) {\n return paradigm[0];\n }\n }\n return null;\n}\n\n/**\n * Checks if the input word occurs in the list of exception verbs and if so returns the first form\n * of the paradigm, which is always the base. Contrary to nouns and adjectives, irregular verbs can have different prefixes\n * which are not included in the list of exceptions and have to be processed separately.\n *\n * @param {string}\tword The word for which to determine its base.\n * @param {Object}\tverbMorphology Regexes and irregulars for verb morphology, False if verb rules should not be applied.\n *\n * @returns {string|null} The base form of the irregular word; null if no irregular stem was found.\n */\nexport function determineIrregularVerbStem(word, verbMorphology) {\n const paradigmIfIrregularVerb = getIrregularVerbParadigm(\n word,\n verbMorphology.irregularVerbs,\n verbMorphology.regexVerb.verbPrefixes\n );\n if (!isUndefined(paradigmIfIrregularVerb)) {\n return paradigmIfIrregularVerb[0];\n }\n return null;\n}\n\n/**\n * Gets possible stems as a regular noun, adjective and verb.\n *\n * @param {string} word The word for which to determine its base.\n * @param {Object} morphologyData The morphology data for the language.\n *\n * @returns {string} The shortest and the alphabetically-first of possible noun-like, verb-like and adjective-like bases.\n */\nexport function determineRegularStem(word, morphologyData) {\n // Try to singularize as a noun.\n const regexVerb = morphologyData.verbs.regexVerb;\n const baseIfPluralNoun = buildFormRule(\n word,\n createRulesFromArrays(morphologyData.nouns.regexNoun.singularize)\n );\n if (!isUndefined(baseIfPluralNoun)) {\n // Bring ing-nouns to base forms (\"blessings\" -> \"bless\").\n if (endsWithIng(baseIfPluralNoun)) {\n return buildFormRule(baseIfPluralNoun, createRulesFromArrays(regexVerb.ingFormToInfinitive));\n }\n return baseIfPluralNoun;\n }\n\n // Check if the word ends with \"ic\", \"ical\" or \"ically\". Return the \"ical\" form for consistency.\n const regexAdjective = morphologyData.adjectives.regexAdjective;\n const baseIfIcally = buildFormRule(word, createRulesFromArrays(regexAdjective.icallyToBase));\n if (!isUndefined(baseIfIcally)) {\n return baseIfIcally;\n }\n\n // No more quick guesses, we have to determine a verbal infinitive and an adjectival base.\n const possibleRegularBases = [];\n\n // Verbal infinitive.\n const baseIfVerb = getInfinitive(word, regexVerb).infinitive;\n\n possibleRegularBases.push(baseIfVerb);\n\n // Adjectival base.\n const stopAdjectives = morphologyData.adjectives.stopAdjectives;\n /*\n\t The following list of words are the stem of adjectives that have two syllables or more that receive -er and -est in their comparative and superlative forms, e.g 'shallow'.\n\t Please note that if the adjective ends in -y and -e, the ending is removed, e.g. 'acute' -> 'acut'.\n\t The list is not exhaustive and can be expanded if needed. Oxford dictionary was used to check if the forms indeed exist, e.g. \"acuter\".\n\t */\n const multiSyllableAdjWithSuffixes = morphologyData.adjectives.multiSyllableAdjectives.list;\n\n const baseIfAdjective = getAdjectiveStem(\n word,\n regexAdjective,\n stopAdjectives,\n multiSyllableAdjWithSuffixes\n ).base;\n possibleRegularBases.push(baseIfAdjective);\n\n return findShortestAndAlphabeticallyFirst(possibleRegularBases);\n}\n\n/**\n * Returns the stem of the input word using the morphologyData (language-specific).\n *\n * @param {string} word The word to get the stem for.\n * @param {Object} morphologyData The available morphology data per language (false if unavailable).\n *\n * @returns {string} Stemmed (or base) form of the word.\n */\nexport function determineStem(word, morphologyData) {\n const nounMorphology = morphologyData.nouns;\n\n const baseIfPossessive = buildFormRule(\n word,\n createRulesFromArrays(nounMorphology.regexNoun.possessiveToBase)\n );\n\n let stem;\n let irregular;\n\n // Determine if this is an irregular noun, adjective or verb.\n if (isUndefined(baseIfPossessive)) {\n stem = word;\n // Word can be a noun, adjective or verb.\n irregular =\n determineIrregularStem(word, nounMorphology.irregularNouns) ||\n determineIrregularStem(word, morphologyData.adjectives.irregularAdjectives) ||\n determineIrregularVerbStem(word, morphologyData.verbs);\n } else {\n stem = baseIfPossessive;\n // The word is a possessive, it can only be a noun or an ing-noun;\n irregular = determineIrregularStem(baseIfPossessive, nounMorphology.irregularNouns);\n }\n\n if (irregular) {\n // Found the stem of an irregular word! Return it.\n return irregular;\n }\n\n // Treat the word as a regular noun, adjective or verb.\n return determineRegularStem(stem, morphologyData);\n}\n\nexport default determineStem;\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { languageProcessing } from "../../../../../index.js";
|
|
2
|
+
import { countSyllablesInWord } from "../../../../helpers/syllables/countSyllables";
|
|
3
|
+
import syllables from "../../config/syllables.json";
|
|
4
|
+
const {
|
|
5
|
+
buildFormRule,
|
|
6
|
+
createRulesFromArrays
|
|
7
|
+
} = languageProcessing;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Further checks if the word can be a specific adjectival form.
|
|
11
|
+
*
|
|
12
|
+
* @param {string} word The word to check.
|
|
13
|
+
* @param {string} endsWith The ending of the form.
|
|
14
|
+
* @param {string[]} nonStemmingExceptions The list of words ending with the form that are not this form.
|
|
15
|
+
* @param {string[]} forcedStemmingExceptions The list of words ending with the form that are not caught by the regular rules.
|
|
16
|
+
*
|
|
17
|
+
* @returns {boolean} Whether the word can be a specific adjectival form.
|
|
18
|
+
*/
|
|
19
|
+
const refineAdjectiveCheck = (word, endsWith, nonStemmingExceptions, forcedStemmingExceptions) => {
|
|
20
|
+
const countSyllables = countSyllablesInWord(word, syllables);
|
|
21
|
+
/*
|
|
22
|
+
* This check is based on the regular comparative and superlative formation rules.
|
|
23
|
+
* One syllable adjectives receive -er and -est. The syllable count of the comparative/superlative form is 2.
|
|
24
|
+
* One/two syllable adjectives ending in -e receive -r and -st. The syllable count of the comparative/superlative form is 2.
|
|
25
|
+
* Two syllable adjectives ending in -y receive -ier and -iest. The syllable count of the comparative/superlative form is 3.
|
|
26
|
+
* Words ending in -er/-est that don't follow the above rules are not comparatives/superlatives, unless listed in the exception lists.
|
|
27
|
+
*/
|
|
28
|
+
if (word.endsWith(endsWith)) {
|
|
29
|
+
// Words with one syllable or less can't be comparatives/superlatives.
|
|
30
|
+
if (countSyllables <= 1) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
// The suffix for adjectives ending in -y is -ier/-iest.
|
|
34
|
+
const adjectiveEndingInYSuffix = `i${endsWith}`;
|
|
35
|
+
// Checks if the word is an adjective ending in -y that can have suffixes -er/-est. For example, 'pretty'.
|
|
36
|
+
const isStemEndingInY = word.endsWith(adjectiveEndingInYSuffix);
|
|
37
|
+
// Checks if the word is an adjective longer than one syllable that can have suffixes -er/-est (e.g. 'shallow'), OR
|
|
38
|
+
// if the word is an adjective ending in -y containing more than two syllables that can have suffixes -ier/-iest (e.g. 'unlikely').
|
|
39
|
+
const isForcedStemmingException = forcedStemmingExceptions.includes(word.slice(0, -adjectiveEndingInYSuffix.length)) || forcedStemmingExceptions.includes(word.slice(0, -endsWith.length));
|
|
40
|
+
// Check if the word ending in -er/-est is not a comparative/superlative (e.g. 'banner').
|
|
41
|
+
const isNonStemmingException = nonStemmingExceptions.includes(word);
|
|
42
|
+
// The maximum syllable count for a word to be a comparative/superlative is 2, unless it ends in -y, then it's 3.
|
|
43
|
+
const maxSyllables = isStemEndingInY ? 3 : 2;
|
|
44
|
+
if (isForcedStemmingException || countSyllables <= maxSyllables && !isNonStemmingException) {
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return false;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Checks if the word ends with a specific form and is not in the exceptions list.
|
|
53
|
+
*
|
|
54
|
+
* @param {string} word The word to check.
|
|
55
|
+
* @param {string} endsWith The ending of the form.
|
|
56
|
+
* @param {string[]} nonStemmingExceptions The list of words ending with the form that are not this form.
|
|
57
|
+
* @returns {boolean} Whether the word ends with the form and is not in the exceptions list.
|
|
58
|
+
*/
|
|
59
|
+
const endsWithAndNoException = (word, endsWith, nonStemmingExceptions) => word.endsWith(endsWith) && !nonStemmingExceptions.includes(word);
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Constructs a function that checks if the input word can be a specific adjectival form.
|
|
63
|
+
*
|
|
64
|
+
* @param {string} endsWith How the form ends.
|
|
65
|
+
* @param {int} minimumWordLength How long the word should be to classify for this form.
|
|
66
|
+
* @param {string[]} [nonStemmingExceptions=[]] The list of words with that ending (endsWith) which are not this form.
|
|
67
|
+
* @param {string[]} [forcedStemmingExceptions=[]] The list of words with that ending (endsWith) which are not caught by the regular rules.
|
|
68
|
+
* @param {Function} [checkFunction=endsWithAndNoException] An extra check to determine if the word is this form.
|
|
69
|
+
*
|
|
70
|
+
* @returns {Function} A function that checks if the input word can be a specific adjectival form.
|
|
71
|
+
*/
|
|
72
|
+
const constructCanBeFunction = function (endsWith, minimumWordLength, nonStemmingExceptions = [], forcedStemmingExceptions = [], checkFunction = endsWithAndNoException) {
|
|
73
|
+
return word => {
|
|
74
|
+
const wordLength = word.length;
|
|
75
|
+
if (wordLength < minimumWordLength) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
return checkFunction(word, endsWith, nonStemmingExceptions, forcedStemmingExceptions);
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Forms the base form from an input word.
|
|
84
|
+
*
|
|
85
|
+
* @param {string} word The word to build the base form for.
|
|
86
|
+
* @param {Object} regexAdjective The lists of regexes to apply to stem adjectives.
|
|
87
|
+
* @param {Array} regexAdjective.comparativeToBaseRegex The Array of regex-based rules to bring comparatives to base.
|
|
88
|
+
* @param {Array} regexAdjective.superlativeToBaseRegex The Array of regex-based rules to bring superlatives to base.
|
|
89
|
+
* @param {Array} regexAdjective.adverbToBaseRegex The Array of regex-based rules to bring adverbs to base.
|
|
90
|
+
* @param {Object} stopAdjectives The lists of words that are not adverbs.
|
|
91
|
+
* @param {string[]} stopAdjectives.erExceptions The list of words that end with -er and are not comparatives.
|
|
92
|
+
* @param {string[]} stopAdjectives.estExceptions The list of words that end with -est and are not superlatives.
|
|
93
|
+
* @param {string[]} stopAdjectives.lyExceptions The list of words that end with -ly and are not adverbs.
|
|
94
|
+
* @param {string[]} multiSyllableAdjWithSuffixes The list of adjectives containing more than 2 syllables that can have suffixes.
|
|
95
|
+
*
|
|
96
|
+
* @returns {Object} The base form of the input word.
|
|
97
|
+
*/
|
|
98
|
+
export default function (word, regexAdjective, stopAdjectives, multiSyllableAdjWithSuffixes) {
|
|
99
|
+
/*
|
|
100
|
+
* Check comparatives: Consider only words of four letters or more (otherwise, words like "per" are being treated
|
|
101
|
+
* as comparatives).
|
|
102
|
+
*/
|
|
103
|
+
const canBeComparative = constructCanBeFunction('er', 4, stopAdjectives.erExceptions, multiSyllableAdjWithSuffixes, refineAdjectiveCheck);
|
|
104
|
+
if (canBeComparative(word)) {
|
|
105
|
+
const comparativeToBaseRegex = createRulesFromArrays(regexAdjective.comparativeToBase);
|
|
106
|
+
return {
|
|
107
|
+
base: buildFormRule(word, comparativeToBaseRegex) || word,
|
|
108
|
+
guessedForm: 'er'
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/*
|
|
113
|
+
* Check superlatives: Consider only words of five letters or more (otherwise, words like "test" are being treated
|
|
114
|
+
* as superlatives).
|
|
115
|
+
*/
|
|
116
|
+
const canBeSuperlative = constructCanBeFunction('est', 5, stopAdjectives.estExceptions, multiSyllableAdjWithSuffixes, refineAdjectiveCheck);
|
|
117
|
+
if (canBeSuperlative(word)) {
|
|
118
|
+
const superlativeToBaseRegex = createRulesFromArrays(regexAdjective.superlativeToBase);
|
|
119
|
+
return {
|
|
120
|
+
base: buildFormRule(word, superlativeToBaseRegex) || word,
|
|
121
|
+
guessedForm: 'est'
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/*
|
|
126
|
+
* Check ly-adverbs: Consider only words of five letters or more (otherwise, words like "lily" are being treated
|
|
127
|
+
* as ly-adverbs).
|
|
128
|
+
*/
|
|
129
|
+
const canBeLyAdverb = constructCanBeFunction('ly', 5, stopAdjectives.lyExceptions);
|
|
130
|
+
if (canBeLyAdverb(word)) {
|
|
131
|
+
const adverbToBaseRegex = createRulesFromArrays(regexAdjective.adverbToBase);
|
|
132
|
+
return {
|
|
133
|
+
base: buildFormRule(word, adverbToBaseRegex),
|
|
134
|
+
guessedForm: 'ly'
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
return {
|
|
138
|
+
base: word,
|
|
139
|
+
guessedForm: 'base'
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=getAdjectiveStem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAdjectiveStem.js","names":["languageProcessing","countSyllablesInWord","syllables","buildFormRule","createRulesFromArrays","refineAdjectiveCheck","word","endsWith","nonStemmingExceptions","forcedStemmingExceptions","countSyllables","adjectiveEndingInYSuffix","isStemEndingInY","isForcedStemmingException","includes","slice","length","isNonStemmingException","maxSyllables","endsWithAndNoException","constructCanBeFunction","minimumWordLength","checkFunction","wordLength","regexAdjective","stopAdjectives","multiSyllableAdjWithSuffixes","canBeComparative","erExceptions","comparativeToBaseRegex","comparativeToBase","base","guessedForm","canBeSuperlative","estExceptions","superlativeToBaseRegex","superlativeToBase","canBeLyAdverb","lyExceptions","adverbToBaseRegex","adverbToBase"],"sources":["../../../../../../src/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js"],"sourcesContent":["import {languageProcessing} from '@axyseo/index.js';\nimport {countSyllablesInWord} from '../../../../helpers/syllables/countSyllables';\nimport syllables from '../../config/syllables.json';\nconst {buildFormRule, createRulesFromArrays} = languageProcessing;\n\n/**\n * Further checks if the word can be a specific adjectival form.\n *\n * @param {string} word\t\tThe word to check.\n * @param {string} endsWith\tThe ending of the form.\n * @param {string[]} nonStemmingExceptions\t\tThe list of words ending with the form that are not this form.\n * @param {string[]} forcedStemmingExceptions\tThe list of words ending with the form that are not caught by the regular rules.\n *\n * @returns {boolean} Whether the word can be a specific adjectival form.\n */\nconst refineAdjectiveCheck = (word, endsWith, nonStemmingExceptions, forcedStemmingExceptions) => {\n const countSyllables = countSyllablesInWord(word, syllables);\n /*\n * This check is based on the regular comparative and superlative formation rules.\n * One syllable adjectives receive -er and -est. The syllable count of the comparative/superlative form is 2.\n * One/two syllable adjectives ending in -e receive -r and -st. The syllable count of the comparative/superlative form is 2.\n * Two syllable adjectives ending in -y receive -ier and -iest. The syllable count of the comparative/superlative form is 3.\n * Words ending in -er/-est that don't follow the above rules are not comparatives/superlatives, unless listed in the exception lists.\n */\n if (word.endsWith(endsWith)) {\n // Words with one syllable or less can't be comparatives/superlatives.\n if (countSyllables <= 1) {\n return false;\n }\n // The suffix for adjectives ending in -y is -ier/-iest.\n const adjectiveEndingInYSuffix = `i${endsWith}`;\n // Checks if the word is an adjective ending in -y that can have suffixes -er/-est. For example, 'pretty'.\n const isStemEndingInY = word.endsWith(adjectiveEndingInYSuffix);\n // Checks if the word is an adjective longer than one syllable that can have suffixes -er/-est (e.g. 'shallow'), OR\n // if the word is an adjective ending in -y containing more than two syllables that can have suffixes -ier/-iest (e.g. 'unlikely').\n const isForcedStemmingException =\n forcedStemmingExceptions.includes(word.slice(0, -adjectiveEndingInYSuffix.length)) ||\n forcedStemmingExceptions.includes(word.slice(0, -endsWith.length));\n // Check if the word ending in -er/-est is not a comparative/superlative (e.g. 'banner').\n const isNonStemmingException = nonStemmingExceptions.includes(word);\n // The maximum syllable count for a word to be a comparative/superlative is 2, unless it ends in -y, then it's 3.\n const maxSyllables = isStemEndingInY ? 3 : 2;\n\n if (isForcedStemmingException || (countSyllables <= maxSyllables && !isNonStemmingException)) {\n return true;\n }\n }\n return false;\n};\n\n/**\n * Checks if the word ends with a specific form and is not in the exceptions list.\n *\n * @param {string} word\t\tThe word to check.\n * @param {string} endsWith\tThe ending of the form.\n * @param {string[]} nonStemmingExceptions \tThe list of words ending with the form that are not this form.\n * @returns {boolean} Whether the word ends with the form and is not in the exceptions list.\n */\nconst endsWithAndNoException = (word, endsWith, nonStemmingExceptions) =>\n word.endsWith(endsWith) && !nonStemmingExceptions.includes(word);\n\n/**\n * Constructs a function that checks if the input word can be a specific adjectival form.\n *\n * @param {string} endsWith How the form ends.\n * @param {int} minimumWordLength How long the word should be to classify for this form.\n * @param {string[]} [nonStemmingExceptions=[]]\t\tThe list of words with that ending (endsWith) which are not this form.\n * @param {string[]}\t[forcedStemmingExceptions=[]]\tThe list of words with that ending (endsWith) which are not caught by the regular rules.\n * @param {Function} [checkFunction=endsWithAndNoException]\tAn extra check to determine if the word is this form.\n *\n * @returns {Function} A function that checks if the input word can be a specific adjectival form.\n */\nconst constructCanBeFunction = function(\n endsWith,\n minimumWordLength,\n nonStemmingExceptions = [],\n forcedStemmingExceptions = [],\n checkFunction = endsWithAndNoException\n) {\n return word => {\n const wordLength = word.length;\n\n if (wordLength < minimumWordLength) {\n return false;\n }\n return checkFunction(word, endsWith, nonStemmingExceptions, forcedStemmingExceptions);\n };\n};\n\n/**\n * Forms the base form from an input word.\n *\n * @param {string} word The word to build the base form for.\n * @param {Object} regexAdjective The lists of regexes to apply to stem adjectives.\n * @param {Array} regexAdjective.comparativeToBaseRegex The Array of regex-based rules to bring comparatives to base.\n * @param {Array} regexAdjective.superlativeToBaseRegex The Array of regex-based rules to bring superlatives to base.\n * @param {Array} regexAdjective.adverbToBaseRegex The Array of regex-based rules to bring adverbs to base.\n * @param {Object} stopAdjectives The lists of words that are not adverbs.\n * @param {string[]} stopAdjectives.erExceptions The list of words that end with -er and are not comparatives.\n * @param {string[]} stopAdjectives.estExceptions The list of words that end with -est and are not superlatives.\n * @param {string[]} stopAdjectives.lyExceptions The list of words that end with -ly and are not adverbs.\n * @param {string[]} multiSyllableAdjWithSuffixes The list of adjectives containing more than 2 syllables that can have suffixes.\n *\n * @returns {Object} The base form of the input word.\n */\nexport default function(word, regexAdjective, stopAdjectives, multiSyllableAdjWithSuffixes) {\n /*\n * Check comparatives: Consider only words of four letters or more (otherwise, words like \"per\" are being treated\n * as comparatives).\n */\n const canBeComparative = constructCanBeFunction(\n 'er',\n 4,\n stopAdjectives.erExceptions,\n multiSyllableAdjWithSuffixes,\n refineAdjectiveCheck\n );\n if (canBeComparative(word)) {\n const comparativeToBaseRegex = createRulesFromArrays(regexAdjective.comparativeToBase);\n return {\n base: buildFormRule(word, comparativeToBaseRegex) || word,\n guessedForm: 'er'\n };\n }\n\n /*\n * Check superlatives: Consider only words of five letters or more (otherwise, words like \"test\" are being treated\n * as superlatives).\n */\n const canBeSuperlative = constructCanBeFunction(\n 'est',\n 5,\n stopAdjectives.estExceptions,\n multiSyllableAdjWithSuffixes,\n refineAdjectiveCheck\n );\n if (canBeSuperlative(word)) {\n const superlativeToBaseRegex = createRulesFromArrays(regexAdjective.superlativeToBase);\n return {\n base: buildFormRule(word, superlativeToBaseRegex) || word,\n guessedForm: 'est'\n };\n }\n\n /*\n * Check ly-adverbs: Consider only words of five letters or more (otherwise, words like \"lily\" are being treated\n * as ly-adverbs).\n */\n const canBeLyAdverb = constructCanBeFunction('ly', 5, stopAdjectives.lyExceptions);\n if (canBeLyAdverb(word)) {\n const adverbToBaseRegex = createRulesFromArrays(regexAdjective.adverbToBase);\n return {\n base: buildFormRule(word, adverbToBaseRegex),\n guessedForm: 'ly'\n };\n }\n\n return {\n base: word,\n guessedForm: 'base'\n };\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { forEach, includes } from 'lodash';
|
|
2
|
+
import { languageProcessing } from "../../../../../index.js";
|
|
3
|
+
const {
|
|
4
|
+
matchRegularParticiples,
|
|
5
|
+
getWords
|
|
6
|
+
} = languageProcessing;
|
|
7
|
+
import irregularParticiples from "../../config/internal/passiveVoiceIrregulars";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Creates participle array for the participles found in a clause.
|
|
11
|
+
*
|
|
12
|
+
* @param {string} clauseText The clause to find participles in
|
|
13
|
+
*
|
|
14
|
+
* @returns {Array} The list with participles.
|
|
15
|
+
*/
|
|
16
|
+
export default function getParticiples(clauseText) {
|
|
17
|
+
const words = getWords(clauseText);
|
|
18
|
+
const foundParticiples = [];
|
|
19
|
+
forEach(words, function (word) {
|
|
20
|
+
const regex = [/\w+ed($|[ \n\r\t.,'()"+\-;!?:/»«‹›<>])/gi];
|
|
21
|
+
if (matchRegularParticiples(word, regex).length !== 0 || includes(irregularParticiples, word)) {
|
|
22
|
+
foundParticiples.push(word);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
return foundParticiples;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=getParticiples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getParticiples.js","names":["forEach","includes","languageProcessing","matchRegularParticiples","getWords","irregularParticiples","getParticiples","clauseText","words","foundParticiples","word","regex","length","push"],"sources":["../../../../../../src/languageProcessing/languages/en/helpers/internal/getParticiples.js"],"sourcesContent":["import {forEach, includes} from 'lodash';\nimport {languageProcessing} from '@axyseo/index.js';\nconst {matchRegularParticiples, getWords} = languageProcessing;\n\nimport irregularParticiples from '../../config/internal/passiveVoiceIrregulars';\n\n/**\n * Creates participle array for the participles found in a clause.\n *\n * @param {string} clauseText The clause to find participles in\n *\n * @returns {Array} The list with participles.\n */\nexport default function getParticiples(clauseText) {\n const words = getWords(clauseText);\n const foundParticiples = [];\n\n forEach(words, function(word) {\n const regex = [/\\w+ed($|[ \\n\\r\\t.,'()\"+\\-;!?:/»«‹›<>])/gi];\n if (matchRegularParticiples(word, regex).length !== 0 || includes(irregularParticiples, word)) {\n foundParticiples.push(word);\n }\n });\n return foundParticiples;\n}\n"],"mappings":"AAAA,SAAQA,OAAO,EAAEC,QAAQ,QAAO,QAAQ;AACxC,SAAQC,kBAAkB;AAC1B,MAAM;EAACC,uBAAuB;EAAEC;AAAQ,CAAC,GAAGF,kBAAkB;AAE9D,OAAOG,oBAAoB;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,cAAcA,CAACC,UAAU,EAAE;EACjD,MAAMC,KAAK,GAAGJ,QAAQ,CAACG,UAAU,CAAC;EAClC,MAAME,gBAAgB,GAAG,EAAE;EAE3BT,OAAO,CAACQ,KAAK,EAAE,UAASE,IAAI,EAAE;IAC5B,MAAMC,KAAK,GAAG,CAAC,0CAA0C,CAAC;IAC1D,IAAIR,uBAAuB,CAACO,IAAI,EAAEC,KAAK,CAAC,CAACC,MAAM,KAAK,CAAC,IAAIX,QAAQ,CAACI,oBAAoB,EAAEK,IAAI,CAAC,EAAE;MAC7FD,gBAAgB,CAACI,IAAI,CAACH,IAAI,CAAC;IAC7B;EACF,CAAC,CAAC;EACF,OAAOD,gBAAgB;AACzB","ignoreList":[]}
|