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,96 @@
|
|
|
1
|
+
import { isEmpty } from "lodash";
|
|
2
|
+
import { findWordFormsInString } from "../../../helpers/match/findKeywordFormsInString";
|
|
3
|
+
import wordMatch from "../../../helpers/match/matchTextWithArray";
|
|
4
|
+
import processExactMatchRequest from "../../../helpers/match/processExactMatchRequest";
|
|
5
|
+
import getContentWords from "../helpers/getContentWords";
|
|
6
|
+
import japaneseWordMatchHelper from "../helpers/matchTextWithWord";
|
|
7
|
+
import functionWords from "../config/functionWords";
|
|
8
|
+
import getWords from "../helpers/getWords";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Checks the position of the keyphrase in the SEO title.
|
|
12
|
+
*
|
|
13
|
+
* @param {string} title The SEO title of the paper.
|
|
14
|
+
* @param {number} position The position of the keyphrase in the SEO title.
|
|
15
|
+
*
|
|
16
|
+
* @returns {number} Potentially adjusted position of the keyphrase in the SEO title.
|
|
17
|
+
*/
|
|
18
|
+
function adjustPosition(title, position) {
|
|
19
|
+
// Don't do anything if position if already 0.
|
|
20
|
+
if (position === 0) {
|
|
21
|
+
return position;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Retrieve the SEO title words before the keyphrase.
|
|
25
|
+
let titleBeforeKeyword = title.substring(0, position);
|
|
26
|
+
titleBeforeKeyword = getWords(titleBeforeKeyword);
|
|
27
|
+
// Retrieve the non-function words.
|
|
28
|
+
titleBeforeKeyword = titleBeforeKeyword.filter(word => !functionWords.includes(word));
|
|
29
|
+
if (isEmpty(titleBeforeKeyword)) {
|
|
30
|
+
/*
|
|
31
|
+
* Return position 0 if there are no words left in the SEO title before the keyword after filtering
|
|
32
|
+
* the function words (such that "楽しい旅行" in "その楽しい旅行" is still counted as position 0).
|
|
33
|
+
*/
|
|
34
|
+
return 0;
|
|
35
|
+
}
|
|
36
|
+
return position;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Checks the occurrences of the keyphrase in the SEO title. Returns a result that contains information on
|
|
41
|
+
* (1) whether all the keyphrase forms are found,
|
|
42
|
+
* (2) the lowest number of the positions of the matches, and
|
|
43
|
+
* (3) whether the exact match keyphrase is requested.
|
|
44
|
+
*
|
|
45
|
+
* @param {Object} paper The paper containing SEO title and keyword.
|
|
46
|
+
* @param {Researcher} researcher The researcher to use for analysis.
|
|
47
|
+
*
|
|
48
|
+
* @returns {Object} An object containing these info: (1) whether all the keyphrase forms are found,
|
|
49
|
+
* (2) the lowest number of the positions of the matches, and (3) whether the exact match keyphrase is requested.
|
|
50
|
+
*/
|
|
51
|
+
export default function (paper, researcher) {
|
|
52
|
+
const title = paper.getTitle();
|
|
53
|
+
let keyphrase = paper.getKeyword();
|
|
54
|
+
const result = {
|
|
55
|
+
allWordsFound: false,
|
|
56
|
+
position: -1,
|
|
57
|
+
exactMatchKeyphrase: false
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/*
|
|
61
|
+
* Check if the keyword is enclosed in quotation mark.
|
|
62
|
+
* If yes, remove the quotation marks and check if the exact match of the keyphrase is found in the SEO title.
|
|
63
|
+
*/
|
|
64
|
+
const exactMatchRequest = processExactMatchRequest(keyphrase);
|
|
65
|
+
if (exactMatchRequest.exactMatchRequested) {
|
|
66
|
+
result.exactMatchKeyphrase = true;
|
|
67
|
+
|
|
68
|
+
// Check if the exact match of the keyphrase is found in the SEO title and directly return the result if there is no match.
|
|
69
|
+
if (!title.includes(exactMatchRequest.keyphrase)) {
|
|
70
|
+
return result;
|
|
71
|
+
}
|
|
72
|
+
keyphrase = getContentWords(exactMatchRequest.keyphrase);
|
|
73
|
+
const keyphraseMatched = wordMatch(title, keyphrase, "ja", japaneseWordMatchHelper);
|
|
74
|
+
|
|
75
|
+
// It's an exact match if the length of the matched keyphrase is the same as the keyphrase length.
|
|
76
|
+
if (keyphraseMatched.matches.length === keyphrase.length) {
|
|
77
|
+
result.allWordsFound = true;
|
|
78
|
+
result.position = adjustPosition(title, keyphraseMatched.position);
|
|
79
|
+
}
|
|
80
|
+
/*
|
|
81
|
+
* When the exact match process is requested, we don't need to run the check for the different word forms,
|
|
82
|
+
* and return the result here.
|
|
83
|
+
*/
|
|
84
|
+
return result;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Get the forms of the keyphrase (using the morphology research).
|
|
88
|
+
const keyphraseForms = researcher.getResearch("morphology").keyphraseForms;
|
|
89
|
+
const separateWordFormsMatched = findWordFormsInString(keyphraseForms, title, "ja", japaneseWordMatchHelper);
|
|
90
|
+
if (separateWordFormsMatched.percentWordMatches === 100) {
|
|
91
|
+
result.allWordsFound = true;
|
|
92
|
+
result.position = adjustPosition(title, separateWordFormsMatched.position);
|
|
93
|
+
}
|
|
94
|
+
return result;
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=findKeyphraseInSEOTitle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findKeyphraseInSEOTitle.js","names":["isEmpty","findWordFormsInString","wordMatch","processExactMatchRequest","getContentWords","japaneseWordMatchHelper","functionWords","getWords","adjustPosition","title","position","titleBeforeKeyword","substring","filter","word","includes","paper","researcher","getTitle","keyphrase","getKeyword","result","allWordsFound","exactMatchKeyphrase","exactMatchRequest","exactMatchRequested","keyphraseMatched","matches","length","keyphraseForms","getResearch","separateWordFormsMatched","percentWordMatches"],"sources":["../../../../../src/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js"],"sourcesContent":["import { isEmpty } from \"lodash\";\nimport { findWordFormsInString } from \"../../../helpers/match/findKeywordFormsInString\";\nimport wordMatch from \"../../../helpers/match/matchTextWithArray\";\nimport processExactMatchRequest from \"../../../helpers/match/processExactMatchRequest\";\nimport getContentWords from \"../helpers/getContentWords\";\nimport japaneseWordMatchHelper from \"../helpers/matchTextWithWord\";\nimport functionWords from \"../config/functionWords\";\nimport getWords from \"../helpers/getWords\";\n\n/**\n * Checks the position of the keyphrase in the SEO title.\n *\n * @param {string} title The SEO title of the paper.\n * @param {number} position The position of the keyphrase in the SEO title.\n *\n * @returns {number} Potentially adjusted position of the keyphrase in the SEO title.\n */\nfunction adjustPosition( title, position ) {\n\t// Don't do anything if position if already 0.\n\tif ( position === 0 ) {\n\t\treturn position;\n\t}\n\n\t// Retrieve the SEO title words before the keyphrase.\n\tlet titleBeforeKeyword = title.substring( 0, position );\n\ttitleBeforeKeyword = getWords( titleBeforeKeyword );\n\t// Retrieve the non-function words.\n\ttitleBeforeKeyword = titleBeforeKeyword.filter( word => ! functionWords.includes( word ) );\n\n\tif ( isEmpty( titleBeforeKeyword ) ) {\n\t\t/*\n\t\t * Return position 0 if there are no words left in the SEO title before the keyword after filtering\n\t\t * the function words (such that \"楽しい旅行\" in \"その楽しい旅行\" is still counted as position 0).\n \t\t */\n\t\treturn 0;\n\t}\n\n\treturn position;\n}\n\n/**\n * Checks the occurrences of the keyphrase in the SEO title. Returns a result that contains information on\n * (1) whether all the keyphrase forms are found,\n * (2) the lowest number of the positions of the matches, and\n * (3) whether the exact match keyphrase is requested.\n *\n * @param {Object} paper \t\t\tThe paper containing SEO title and keyword.\n * @param {Researcher} researcher \tThe researcher to use for analysis.\n *\n * @returns {Object} An object containing these info: (1) whether all the keyphrase forms are found,\n * (2) the lowest number of the positions of the matches, and (3) whether the exact match keyphrase is requested.\n */\nexport default function( paper, researcher ) {\n\tconst title = paper.getTitle();\n\tlet keyphrase = paper.getKeyword();\n\n\tconst result = { allWordsFound: false, position: -1, exactMatchKeyphrase: false };\n\n\t/*\n\t * Check if the keyword is enclosed in quotation mark.\n\t * If yes, remove the quotation marks and check if the exact match of the keyphrase is found in the SEO title.\n\t */\n\tconst exactMatchRequest = processExactMatchRequest( keyphrase );\n\tif ( exactMatchRequest.exactMatchRequested ) {\n\t\tresult.exactMatchKeyphrase = true;\n\n\t\t// Check if the exact match of the keyphrase is found in the SEO title and directly return the result if there is no match.\n\t\tif ( ! title.includes( exactMatchRequest.keyphrase ) ) {\n\t\t\treturn result;\n\t\t}\n\n\t\tkeyphrase = getContentWords( exactMatchRequest.keyphrase );\n\n\t\tconst keyphraseMatched = wordMatch( title, keyphrase, \"ja\", japaneseWordMatchHelper );\n\n\t\t// It's an exact match if the length of the matched keyphrase is the same as the keyphrase length.\n\t\tif ( keyphraseMatched.matches.length === keyphrase.length ) {\n\t\t\tresult.allWordsFound = true;\n\t\t\tresult.position = adjustPosition( title, keyphraseMatched.position );\n\t\t}\n\t\t/*\n\t\t * When the exact match process is requested, we don't need to run the check for the different word forms,\n\t\t * and return the result here.\n\t\t */\n\t\treturn result;\n\t}\n\n\t// Get the forms of the keyphrase (using the morphology research).\n\tconst keyphraseForms = researcher.getResearch( \"morphology\" ).keyphraseForms;\n\tconst separateWordFormsMatched = findWordFormsInString( keyphraseForms, title, \"ja\", japaneseWordMatchHelper );\n\n\tif ( separateWordFormsMatched.percentWordMatches === 100 ) {\n\t\tresult.allWordsFound = true;\n\t\tresult.position = adjustPosition( title, separateWordFormsMatched.position );\n\t}\n\n\treturn result;\n}\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,QAAQ;AAChC,SAASC,qBAAqB;AAC9B,OAAOC,SAAS;AAChB,OAAOC,wBAAwB;AAC/B,OAAOC,eAAe;AACtB,OAAOC,uBAAuB;AAC9B,OAAOC,aAAa;AACpB,OAAOC,QAAQ;;AAEf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,cAAcA,CAAEC,KAAK,EAAEC,QAAQ,EAAG;EAC1C;EACA,IAAKA,QAAQ,KAAK,CAAC,EAAG;IACrB,OAAOA,QAAQ;EAChB;;EAEA;EACA,IAAIC,kBAAkB,GAAGF,KAAK,CAACG,SAAS,CAAE,CAAC,EAAEF,QAAS,CAAC;EACvDC,kBAAkB,GAAGJ,QAAQ,CAAEI,kBAAmB,CAAC;EACnD;EACAA,kBAAkB,GAAGA,kBAAkB,CAACE,MAAM,CAAEC,IAAI,IAAI,CAAER,aAAa,CAACS,QAAQ,CAAED,IAAK,CAAE,CAAC;EAE1F,IAAKd,OAAO,CAAEW,kBAAmB,CAAC,EAAG;IACpC;AACF;AACA;AACA;IACE,OAAO,CAAC;EACT;EAEA,OAAOD,QAAQ;AAChB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUM,KAAK,EAAEC,UAAU,EAAG;EAC5C,MAAMR,KAAK,GAAGO,KAAK,CAACE,QAAQ,CAAC,CAAC;EAC9B,IAAIC,SAAS,GAAGH,KAAK,CAACI,UAAU,CAAC,CAAC;EAElC,MAAMC,MAAM,GAAG;IAAEC,aAAa,EAAE,KAAK;IAAEZ,QAAQ,EAAE,CAAC,CAAC;IAAEa,mBAAmB,EAAE;EAAO,CAAC;;EAElF;AACD;AACA;AACA;EACC,MAAMC,iBAAiB,GAAGrB,wBAAwB,CAAEgB,SAAU,CAAC;EAC/D,IAAKK,iBAAiB,CAACC,mBAAmB,EAAG;IAC5CJ,MAAM,CAACE,mBAAmB,GAAG,IAAI;;IAEjC;IACA,IAAK,CAAEd,KAAK,CAACM,QAAQ,CAAES,iBAAiB,CAACL,SAAU,CAAC,EAAG;MACtD,OAAOE,MAAM;IACd;IAEAF,SAAS,GAAGf,eAAe,CAAEoB,iBAAiB,CAACL,SAAU,CAAC;IAE1D,MAAMO,gBAAgB,GAAGxB,SAAS,CAAEO,KAAK,EAAEU,SAAS,EAAE,IAAI,EAAEd,uBAAwB,CAAC;;IAErF;IACA,IAAKqB,gBAAgB,CAACC,OAAO,CAACC,MAAM,KAAKT,SAAS,CAACS,MAAM,EAAG;MAC3DP,MAAM,CAACC,aAAa,GAAG,IAAI;MAC3BD,MAAM,CAACX,QAAQ,GAAGF,cAAc,CAAEC,KAAK,EAAEiB,gBAAgB,CAAChB,QAAS,CAAC;IACrE;IACA;AACF;AACA;AACA;IACE,OAAOW,MAAM;EACd;;EAEA;EACA,MAAMQ,cAAc,GAAGZ,UAAU,CAACa,WAAW,CAAE,YAAa,CAAC,CAACD,cAAc;EAC5E,MAAME,wBAAwB,GAAG9B,qBAAqB,CAAE4B,cAAc,EAAEpB,KAAK,EAAE,IAAI,EAAEJ,uBAAwB,CAAC;EAE9G,IAAK0B,wBAAwB,CAACC,kBAAkB,KAAK,GAAG,EAAG;IAC1DX,MAAM,CAACC,aAAa,GAAG,IAAI;IAC3BD,MAAM,CAACX,QAAQ,GAAGF,cAAc,CAAEC,KAAK,EAAEsB,wBAAwB,CAACrB,QAAS,CAAC;EAC7E;EAEA,OAAOW,MAAM;AACd","ignoreList":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import getWords from "../helpers/getWords";
|
|
2
|
+
import characterCountHelper from "../helpers/wordsCharacterCount";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Calculates the character length of the keyphrase.
|
|
6
|
+
*
|
|
7
|
+
* @param {Paper} paper The paper to research
|
|
8
|
+
*
|
|
9
|
+
* @returns {Object} The length of the keyphrase and an empty array of function words.
|
|
10
|
+
*/
|
|
11
|
+
export default function (paper) {
|
|
12
|
+
const keyphrase = getWords(paper.getKeyword());
|
|
13
|
+
return {
|
|
14
|
+
keyphraseLength: characterCountHelper(keyphrase),
|
|
15
|
+
// Returns empty array because we don't take function words into account for Japanese keyphrase length calculations.
|
|
16
|
+
functionWords: []
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=getKeyphraseLength.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getKeyphraseLength.js","names":["getWords","characterCountHelper","paper","keyphrase","getKeyword","keyphraseLength","functionWords"],"sources":["../../../../../src/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js"],"sourcesContent":["import getWords from \"../helpers/getWords\";\nimport characterCountHelper from \"../helpers/wordsCharacterCount\";\n\n/**\n * Calculates the character length of the keyphrase.\n *\n * @param {Paper} paper The paper to research\n *\n * @returns {Object} The length of the keyphrase and an empty array of function words.\n */\nexport default function( paper ) {\n\tconst keyphrase = getWords( paper.getKeyword() );\n\n\treturn {\n\t\tkeyphraseLength: characterCountHelper( keyphrase ),\n\t\t// Returns empty array because we don't take function words into account for Japanese keyphrase length calculations.\n\t\tfunctionWords: [],\n\t};\n}\n"],"mappings":"AAAA,OAAOA,QAAQ;AACf,OAAOC,oBAAoB;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUC,KAAK,EAAG;EAChC,MAAMC,SAAS,GAAGH,QAAQ,CAAEE,KAAK,CAACE,UAAU,CAAC,CAAE,CAAC;EAEhD,OAAO;IACNC,eAAe,EAAEJ,oBAAoB,CAAEE,SAAU,CAAC;IAClD;IACAG,aAAa,EAAE;EAChB,CAAC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { get } from "lodash";
|
|
2
|
+
import parseSynonyms from "../../../helpers/sanitize/parseSynonyms";
|
|
3
|
+
import getContentWords from "../helpers/getContentWords";
|
|
4
|
+
import createWordForms from "../helpers/internal/createWordForms";
|
|
5
|
+
import doubleQuotes from "../../../helpers/sanitize/doubleQuotes";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Creates word forms for each word in the given keyphrase.
|
|
9
|
+
*
|
|
10
|
+
* @param {string} keyphrase The keyphrase to generate word forms for.
|
|
11
|
+
* @param {Researcher} researcher The researcher.
|
|
12
|
+
*
|
|
13
|
+
* @returns {Array<string[]>} The word forms for each word in the keyphrase.
|
|
14
|
+
*/
|
|
15
|
+
function getKeyphraseForms(keyphrase, researcher) {
|
|
16
|
+
// The keyphrase is in double quotes: use it as an exact match keyphrase.
|
|
17
|
+
if (doubleQuotes.includes(keyphrase[0]) && doubleQuotes.includes(keyphrase[keyphrase.length - 1])) {
|
|
18
|
+
return [[keyphrase]];
|
|
19
|
+
}
|
|
20
|
+
const keyphraseWords = getContentWords(keyphrase);
|
|
21
|
+
|
|
22
|
+
// If the keyphrase does not contain content words, return an empty list.
|
|
23
|
+
if (keyphraseWords.length === 0) {
|
|
24
|
+
return [[]];
|
|
25
|
+
}
|
|
26
|
+
const morphologyData = get(researcher.getData("morphology"), "ja", false);
|
|
27
|
+
return keyphraseWords.map(word => morphologyData ? createWordForms(word, morphologyData) : [word]);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Gets all matching word forms for the keyphrase and synonyms.
|
|
32
|
+
*
|
|
33
|
+
* @param {Paper} paper The paper.
|
|
34
|
+
* @param {Researcher} researcher The researcher.
|
|
35
|
+
*
|
|
36
|
+
* @returns {Object} Object with an array of keyphrase forms and an array of arrays of synonyms forms, based on the forms
|
|
37
|
+
* found in the text or created forms.
|
|
38
|
+
*/
|
|
39
|
+
export default function (paper, researcher) {
|
|
40
|
+
let keyphrase = paper.getKeyword().toLocaleLowerCase("ja").trim();
|
|
41
|
+
// Remove spaces from the keyphrase.
|
|
42
|
+
keyphrase = keyphrase.replace(/\s/g, "");
|
|
43
|
+
const synonyms = parseSynonyms(paper.getSynonyms().toLocaleLowerCase("ja").trim());
|
|
44
|
+
const keyphraseForms = getKeyphraseForms(keyphrase, researcher);
|
|
45
|
+
const synonymsForms = synonyms.map(synonym => getKeyphraseForms(synonym, researcher));
|
|
46
|
+
return {
|
|
47
|
+
keyphraseForms,
|
|
48
|
+
synonymsForms
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=getWordForms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWordForms.js","names":["get","parseSynonyms","getContentWords","createWordForms","doubleQuotes","getKeyphraseForms","keyphrase","researcher","includes","length","keyphraseWords","morphologyData","getData","map","word","paper","getKeyword","toLocaleLowerCase","trim","replace","synonyms","getSynonyms","keyphraseForms","synonymsForms","synonym"],"sources":["../../../../../src/languageProcessing/languages/ja/customResearches/getWordForms.js"],"sourcesContent":["import { get } from \"lodash\";\nimport parseSynonyms from \"../../../helpers/sanitize/parseSynonyms\";\nimport getContentWords from \"../helpers/getContentWords\";\nimport createWordForms from \"../helpers/internal/createWordForms\";\nimport doubleQuotes from \"../../../helpers/sanitize/doubleQuotes\";\n\n/**\n * Creates word forms for each word in the given keyphrase.\n *\n * @param {string} keyphrase The keyphrase to generate word forms for.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Array<string[]>} The word forms for each word in the keyphrase.\n */\nfunction getKeyphraseForms( keyphrase, researcher ) {\n\t// The keyphrase is in double quotes: use it as an exact match keyphrase.\n\tif ( doubleQuotes.includes( keyphrase[ 0 ] ) && doubleQuotes.includes( keyphrase[ keyphrase.length - 1 ] ) ) {\n\t\treturn [ [ keyphrase ] ];\n\t}\n\n\tconst keyphraseWords = getContentWords( keyphrase );\n\n\t// If the keyphrase does not contain content words, return an empty list.\n\tif ( keyphraseWords.length === 0 ) {\n\t\treturn [ [] ];\n\t}\n\n\tconst morphologyData = get( researcher.getData( \"morphology\" ), \"ja\", false );\n\treturn keyphraseWords.map( word => morphologyData ? createWordForms( word, morphologyData ) : [ word ] );\n}\n\n/**\n * Gets all matching word forms for the keyphrase and synonyms.\n *\n * @param {Paper} paper The paper.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Object} Object with an array of keyphrase forms and an array of arrays of synonyms forms, based on the forms\n * found in the text or created forms.\n */\nexport default function( paper, researcher ) {\n\tlet keyphrase = paper.getKeyword().toLocaleLowerCase( \"ja\" ).trim();\n\t// Remove spaces from the keyphrase.\n\tkeyphrase = keyphrase.replace( /\\s/g, \"\" );\n\tconst synonyms = parseSynonyms( paper.getSynonyms().toLocaleLowerCase( \"ja\" ).trim() );\n\tconst keyphraseForms = getKeyphraseForms( keyphrase, researcher );\n\tconst synonymsForms = synonyms.map( synonym => getKeyphraseForms( synonym, researcher ) );\n\n\treturn { keyphraseForms, synonymsForms };\n}\n"],"mappings":"AAAA,SAASA,GAAG,QAAQ,QAAQ;AAC5B,OAAOC,aAAa;AACpB,OAAOC,eAAe;AACtB,OAAOC,eAAe;AACtB,OAAOC,YAAY;;AAEnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,iBAAiBA,CAAEC,SAAS,EAAEC,UAAU,EAAG;EACnD;EACA,IAAKH,YAAY,CAACI,QAAQ,CAAEF,SAAS,CAAE,CAAC,CAAG,CAAC,IAAIF,YAAY,CAACI,QAAQ,CAAEF,SAAS,CAAEA,SAAS,CAACG,MAAM,GAAG,CAAC,CAAG,CAAC,EAAG;IAC5G,OAAO,CAAE,CAAEH,SAAS,CAAE,CAAE;EACzB;EAEA,MAAMI,cAAc,GAAGR,eAAe,CAAEI,SAAU,CAAC;;EAEnD;EACA,IAAKI,cAAc,CAACD,MAAM,KAAK,CAAC,EAAG;IAClC,OAAO,CAAE,EAAE,CAAE;EACd;EAEA,MAAME,cAAc,GAAGX,GAAG,CAAEO,UAAU,CAACK,OAAO,CAAE,YAAa,CAAC,EAAE,IAAI,EAAE,KAAM,CAAC;EAC7E,OAAOF,cAAc,CAACG,GAAG,CAAEC,IAAI,IAAIH,cAAc,GAAGR,eAAe,CAAEW,IAAI,EAAEH,cAAe,CAAC,GAAG,CAAEG,IAAI,CAAG,CAAC;AACzG;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUC,KAAK,EAAER,UAAU,EAAG;EAC5C,IAAID,SAAS,GAAGS,KAAK,CAACC,UAAU,CAAC,CAAC,CAACC,iBAAiB,CAAE,IAAK,CAAC,CAACC,IAAI,CAAC,CAAC;EACnE;EACAZ,SAAS,GAAGA,SAAS,CAACa,OAAO,CAAE,KAAK,EAAE,EAAG,CAAC;EAC1C,MAAMC,QAAQ,GAAGnB,aAAa,CAAEc,KAAK,CAACM,WAAW,CAAC,CAAC,CAACJ,iBAAiB,CAAE,IAAK,CAAC,CAACC,IAAI,CAAC,CAAE,CAAC;EACtF,MAAMI,cAAc,GAAGjB,iBAAiB,CAAEC,SAAS,EAAEC,UAAW,CAAC;EACjE,MAAMgB,aAAa,GAAGH,QAAQ,CAACP,GAAG,CAAEW,OAAO,IAAInB,iBAAiB,CAAEmB,OAAO,EAAEjB,UAAW,CAAE,CAAC;EAEzF,OAAO;IAAEe,cAAc;IAAEC;EAAc,CAAC;AACzC","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import countCharacters from "../helpers/countCharacters";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A result of the character count calculation.
|
|
5
|
+
*
|
|
6
|
+
* @typedef CharacterCountResult
|
|
7
|
+
* @param {number} count The number of characters found in the text.
|
|
8
|
+
* @param {string} unit The unit used in the text length calculations, always "character".
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Count the characters in the text.
|
|
13
|
+
*
|
|
14
|
+
* @param {Paper} paper The Paper object.
|
|
15
|
+
*
|
|
16
|
+
* @returns {CharacterCountResult} The number of characters found in the text, plus "character" as the unit used in calculating the text length.
|
|
17
|
+
*/
|
|
18
|
+
export default function (paper) {
|
|
19
|
+
return {
|
|
20
|
+
text: paper.getText(),
|
|
21
|
+
count: countCharacters(paper.getText()),
|
|
22
|
+
unit: "character"
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=textLength.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textLength.js","names":["countCharacters","paper","text","getText","count","unit"],"sources":["../../../../../src/languageProcessing/languages/ja/customResearches/textLength.js"],"sourcesContent":["import countCharacters from \"../helpers/countCharacters\";\n\n/**\n * A result of the character count calculation.\n *\n * @typedef CharacterCountResult\n * @param {number} count The number of characters found in the text.\n * @param {string} unit The unit used in the text length calculations, always \"character\".\n */\n\n/**\n * Count the characters in the text.\n *\n * @param {Paper} paper The Paper object.\n *\n * @returns {CharacterCountResult} The number of characters found in the text, plus \"character\" as the unit used in calculating the text length.\n */\nexport default function( paper ) {\n\treturn {\n\t\ttext: paper.getText(),\n\t\tcount: countCharacters( paper.getText() ),\n\t\tunit: \"character\",\n\t};\n}\n"],"mappings":"AAAA,OAAOA,eAAe;;AAEtB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUC,KAAK,EAAG;EAChC,OAAO;IACNC,IAAI,EAAED,KAAK,CAACE,OAAO,CAAC,CAAC;IACrBC,KAAK,EAAEJ,eAAe,CAAEC,KAAK,CAACE,OAAO,CAAC,CAAE,CAAC;IACzCE,IAAI,EAAE;EACP,CAAC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { languageProcessing } from "../../../../index.js";
|
|
2
|
+
const {
|
|
3
|
+
sanitizeString
|
|
4
|
+
} = languageProcessing;
|
|
5
|
+
import removeURLs from "../../../helpers/sanitize/removeURLs.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Calculates the character count which serves as a measure of text length.
|
|
9
|
+
* The character count includes letters, punctuation, and numbers. It doesn't include URLs, HTML tags, and spaces.
|
|
10
|
+
*
|
|
11
|
+
* @param {string} text The text to be counted.
|
|
12
|
+
*
|
|
13
|
+
* @returns {number} The character count of the given text.
|
|
14
|
+
*/
|
|
15
|
+
export default function (text) {
|
|
16
|
+
text = removeURLs(text);
|
|
17
|
+
text = sanitizeString(text);
|
|
18
|
+
text = text.replace(/\s/g, '');
|
|
19
|
+
return text.length;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=countCharacters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countCharacters.js","names":["languageProcessing","sanitizeString","removeURLs","text","replace","length"],"sources":["../../../../../src/languageProcessing/languages/ja/helpers/countCharacters.js"],"sourcesContent":["import {languageProcessing} from '@axyseo/index.js';\nconst {sanitizeString} = languageProcessing;\nimport removeURLs from '../../../helpers/sanitize/removeURLs.js';\n\n/**\n * Calculates the character count which serves as a measure of text length.\n * The character count includes letters, punctuation, and numbers. It doesn't include URLs, HTML tags, and spaces.\n *\n * @param {string} text The text to be counted.\n *\n * @returns {number} The character count of the given text.\n */\nexport default function(text) {\n text = removeURLs(text);\n text = sanitizeString(text);\n text = text.replace(/\\s/g, '');\n\n return text.length;\n}\n"],"mappings":"AAAA,SAAQA,kBAAkB;AAC1B,MAAM;EAACC;AAAc,CAAC,GAAGD,kBAAkB;AAC3C,OAAOE,UAAU;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAASC,IAAI,EAAE;EAC5BA,IAAI,GAAGD,UAAU,CAACC,IAAI,CAAC;EACvBA,IAAI,GAAGF,cAAc,CAACE,IAAI,CAAC;EAC3BA,IAAI,GAAGA,IAAI,CAACC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;EAE9B,OAAOD,IAAI,CAACE,MAAM;AACpB","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. This helper is currently only used for Prominent Words functionality.
|
|
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'), 'ja', false);
|
|
17
|
+
if (morphologyData) {
|
|
18
|
+
return word => determineStem(word, morphologyData);
|
|
19
|
+
}
|
|
20
|
+
return baseStemmer;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=customGetStemmer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customGetStemmer.js","names":["get","languageProcessing","baseStemmer","determineStem","getStemmer","researcher","morphologyData","getData","word"],"sources":["../../../../../src/languageProcessing/languages/ja/helpers/customGetStemmer.js"],"sourcesContent":["import {get} from 'lodash';\nimport {languageProcessing} from '@axyseo/index.js';\nconst {baseStemmer} = languageProcessing;\nimport determineStem from './internal/determineStem';\n\n/**\n * Returns the stemmer for a researcher. This helper is currently only used for Prominent Words functionality.\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'), 'ja', 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;AACxC,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,21 @@
|
|
|
1
|
+
import getWords from "./getWords";
|
|
2
|
+
import functionWords from "../config/functionWords";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Filters out function words and removes じゃ ending if a words ends in it.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} text The input text.
|
|
8
|
+
*
|
|
9
|
+
* @returns {Array} The array words with function words filtered out and じゃ removed.
|
|
10
|
+
*/
|
|
11
|
+
export default function (text) {
|
|
12
|
+
let words = getWords(text);
|
|
13
|
+
// Filter function words and morphemes.
|
|
14
|
+
words = words.filter(word => !functionWords.includes(word));
|
|
15
|
+
|
|
16
|
+
// Check if the segment ends in -じゃ, and remove the ending if it does.
|
|
17
|
+
const ending = "じゃ";
|
|
18
|
+
words = words.map(word => word.endsWith(ending) ? word.slice(0, -ending.length) : word);
|
|
19
|
+
return words;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=getContentWords.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getContentWords.js","names":["getWords","functionWords","text","words","filter","word","includes","ending","map","endsWith","slice","length"],"sources":["../../../../../src/languageProcessing/languages/ja/helpers/getContentWords.js"],"sourcesContent":["import getWords from \"./getWords\";\nimport functionWords from \"../config/functionWords\";\n\n/**\n * Filters out function words and removes じゃ ending if a words ends in it.\n *\n * @param {string} text The input text.\n *\n * @returns {Array} The array words with function words filtered out and じゃ removed.\n */\nexport default function( text ) {\n\tlet words = getWords( text );\n\t// Filter function words and morphemes.\n\twords = words.filter( word => ! functionWords.includes( word ) );\n\n\t// Check if the segment ends in -じゃ, and remove the ending if it does.\n\tconst ending = \"じゃ\";\n\twords = words.map( word => word.endsWith( ending ) ? word.slice( 0, -ending.length ) : word );\n\n\treturn words;\n}\n"],"mappings":"AAAA,OAAOA,QAAQ;AACf,OAAOC,aAAa;;AAEpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUC,IAAI,EAAG;EAC/B,IAAIC,KAAK,GAAGH,QAAQ,CAAEE,IAAK,CAAC;EAC5B;EACAC,KAAK,GAAGA,KAAK,CAACC,MAAM,CAAEC,IAAI,IAAI,CAAEJ,aAAa,CAACK,QAAQ,CAAED,IAAK,CAAE,CAAC;;EAEhE;EACA,MAAME,MAAM,GAAG,IAAI;EACnBJ,KAAK,GAAGA,KAAK,CAACK,GAAG,CAAEH,IAAI,IAAIA,IAAI,CAACI,QAAQ,CAAEF,MAAO,CAAC,GAAGF,IAAI,CAACK,KAAK,CAAE,CAAC,EAAE,CAACH,MAAM,CAACI,MAAO,CAAC,GAAGN,IAAK,CAAC;EAE7F,OAAOF,KAAK;AACb","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { filter, map } from 'lodash';
|
|
2
|
+
import { languageProcessing } from "../../../../index.js";
|
|
3
|
+
const {
|
|
4
|
+
sanitizeString,
|
|
5
|
+
removePunctuation
|
|
6
|
+
} = languageProcessing;
|
|
7
|
+
import TinySegmenter from 'tiny-segmenter';
|
|
8
|
+
const segmenter = new TinySegmenter();
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Returns an array with words used in the text.
|
|
12
|
+
*
|
|
13
|
+
* @param {string} text The text to be counted.
|
|
14
|
+
*
|
|
15
|
+
* @returns {Array} The array with all words.
|
|
16
|
+
*/
|
|
17
|
+
export default function (text) {
|
|
18
|
+
// Strips HTML tags.
|
|
19
|
+
text = sanitizeString(text);
|
|
20
|
+
if (text === '') {
|
|
21
|
+
return [];
|
|
22
|
+
}
|
|
23
|
+
let words = segmenter.segment(text);
|
|
24
|
+
words = map(words, function (word) {
|
|
25
|
+
return removePunctuation(word);
|
|
26
|
+
});
|
|
27
|
+
return filter(words, function (word) {
|
|
28
|
+
return word.trim() !== '';
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=getWords.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getWords.js","names":["filter","map","languageProcessing","sanitizeString","removePunctuation","TinySegmenter","segmenter","text","words","segment","word","trim"],"sources":["../../../../../src/languageProcessing/languages/ja/helpers/getWords.js"],"sourcesContent":["import {filter, map} from 'lodash';\nimport {languageProcessing} from '@axyseo/index.js';\nconst {sanitizeString, removePunctuation} = languageProcessing;\nimport TinySegmenter from 'tiny-segmenter';\n\nconst segmenter = new TinySegmenter();\n\n/**\n * Returns an array with words used in the text.\n *\n * @param {string} text The text to be counted.\n *\n * @returns {Array} The array with all words.\n */\nexport default function(text) {\n // Strips HTML tags.\n text = sanitizeString(text);\n if (text === '') {\n return [];\n }\n\n let words = segmenter.segment(text);\n\n words = map(words, function(word) {\n return removePunctuation(word);\n });\n\n return filter(words, function(word) {\n return word.trim() !== '';\n });\n}\n"],"mappings":"AAAA,SAAQA,MAAM,EAAEC,GAAG,QAAO,QAAQ;AAClC,SAAQC,kBAAkB;AAC1B,MAAM;EAACC,cAAc;EAAEC;AAAiB,CAAC,GAAGF,kBAAkB;AAC9D,OAAOG,aAAa,MAAM,gBAAgB;AAE1C,MAAMC,SAAS,GAAG,IAAID,aAAa,CAAC,CAAC;;AAErC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAASE,IAAI,EAAE;EAC5B;EACAA,IAAI,GAAGJ,cAAc,CAACI,IAAI,CAAC;EAC3B,IAAIA,IAAI,KAAK,EAAE,EAAE;IACf,OAAO,EAAE;EACX;EAEA,IAAIC,KAAK,GAAGF,SAAS,CAACG,OAAO,CAACF,IAAI,CAAC;EAEnCC,KAAK,GAAGP,GAAG,CAACO,KAAK,EAAE,UAASE,IAAI,EAAE;IAChC,OAAON,iBAAiB,CAACM,IAAI,CAAC;EAChC,CAAC,CAAC;EAEF,OAAOV,MAAM,CAACQ,KAAK,EAAE,UAASE,IAAI,EAAE;IAClC,OAAOA,IAAI,CAACC,IAAI,CAAC,CAAC,KAAK,EAAE;EAC3B,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { isNaN } from "lodash";
|
|
2
|
+
import { normalize as normalizeQuotes } from "../../../../helpers/sanitize/quotes.js";
|
|
3
|
+
import SentenceTokenizer from "../../../../helpers/sentence/SentenceTokenizer";
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* \u2026 - ellipsis.
|
|
7
|
+
* \u3002 - Japanese ideographic full stop.
|
|
8
|
+
* \uFF61 - Japanese half-width ideographic full stop.
|
|
9
|
+
* \uFF01 - Japanese full-width exclamation mark.
|
|
10
|
+
* \u203C - Japanese double exclamation mark.
|
|
11
|
+
* \uFF1F - Japanese fullwidth question mark.
|
|
12
|
+
* \u2047 - Japanese double question mark.
|
|
13
|
+
* \u2049 - Japanese exclamation question mark.
|
|
14
|
+
* \u2048 - Japanese question exclamation mark.
|
|
15
|
+
* \u2025 - Japanese two dot leader.
|
|
16
|
+
*/
|
|
17
|
+
const sentenceDelimiters = "?!\u2026\u3002\uFF61\uFF01\u203C\uFF1F\u2047\u2049\u2048\u2049\u2025";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Class for tokenizing a (html) text into sentences.
|
|
21
|
+
*/
|
|
22
|
+
export default class JapaneseSentenceTokenizer extends SentenceTokenizer {
|
|
23
|
+
/**
|
|
24
|
+
* Constructor
|
|
25
|
+
* @constructor
|
|
26
|
+
*/
|
|
27
|
+
constructor() {
|
|
28
|
+
super();
|
|
29
|
+
this.sentenceDelimiters = sentenceDelimiters;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Returns whether a certain character is a number.
|
|
34
|
+
*
|
|
35
|
+
* @param {string} character The character to check.
|
|
36
|
+
* @returns {boolean} Whether or not the character is a capital letter.
|
|
37
|
+
*/
|
|
38
|
+
isNumber(character) {
|
|
39
|
+
const japaneseNumbers = [
|
|
40
|
+
// Full-width.
|
|
41
|
+
/^[\uFF10-\uFF19]+$/i,
|
|
42
|
+
// Circled digit, parenthesized digit, and digit with full stop.
|
|
43
|
+
/^[\u2460-\u249B]+$/i,
|
|
44
|
+
// Parenthesized ideograph.
|
|
45
|
+
/^[\u3220-\u3229]+$/i,
|
|
46
|
+
// Circled ideograph.
|
|
47
|
+
/^[\u3280-\u3289]+$/i];
|
|
48
|
+
return !isNaN(parseInt(character, 10)) || japaneseNumbers.some(numberRange => numberRange.test(character));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Returns whether a given character is quotation mark.
|
|
53
|
+
*
|
|
54
|
+
* @param {string} character The character to check.
|
|
55
|
+
* @returns {boolean} Whether or not the given character is a quotation mark.
|
|
56
|
+
*/
|
|
57
|
+
isQuotation(character) {
|
|
58
|
+
character = normalizeQuotes(character);
|
|
59
|
+
const japaneseOpeningQuotationMark = /^[\u300C\u300E\u3008\u3014\u3010\uFF5B\uFF3B]+$/i;
|
|
60
|
+
return "'" === character || "\"" === character || japaneseOpeningQuotationMark.test(character);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Checks whether a character is from Japanese language that could be sentence beginning.
|
|
65
|
+
*
|
|
66
|
+
* @param {string} letter The letter to check.
|
|
67
|
+
*
|
|
68
|
+
* @returns {boolean} Whether the letter is from Japanese language that could be sentence beginning.
|
|
69
|
+
*/
|
|
70
|
+
isLetterFromSpecificLanguage(letter) {
|
|
71
|
+
const japaneseLetterRanges = [
|
|
72
|
+
// Hiragana.
|
|
73
|
+
/^[\u3040-\u3096]+$/i,
|
|
74
|
+
// Katakana full-width.
|
|
75
|
+
/^[\u30A1-\u30FA]+$/i, /^[\u31F0-\u31FF]+$/i,
|
|
76
|
+
// Katakana half-width.
|
|
77
|
+
/^[\uFF66-\uFF9D]+$/i,
|
|
78
|
+
// Kanji.
|
|
79
|
+
/^[\u4E00-\u9FFC]+$/i];
|
|
80
|
+
return japaneseLetterRanges.some(ltrLetterRange => ltrLetterRange.test(letter));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Always returns true as Japanese sentence beginning doesn't need to be preceded by a whitespace to be a valid one.
|
|
85
|
+
*
|
|
86
|
+
* @returns {true} Always true.
|
|
87
|
+
*/
|
|
88
|
+
isCharacterASpace() {
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=SentenceTokenizer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SentenceTokenizer.js","names":["isNaN","normalize","normalizeQuotes","SentenceTokenizer","sentenceDelimiters","JapaneseSentenceTokenizer","constructor","isNumber","character","japaneseNumbers","parseInt","some","numberRange","test","isQuotation","japaneseOpeningQuotationMark","isLetterFromSpecificLanguage","letter","japaneseLetterRanges","ltrLetterRange","isCharacterASpace"],"sources":["../../../../../../src/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js"],"sourcesContent":["import { isNaN } from \"lodash\";\n\nimport { normalize as normalizeQuotes } from \"../../../../helpers/sanitize/quotes.js\";\nimport SentenceTokenizer from \"../../../../helpers/sentence/SentenceTokenizer\";\n\n/*\n * \\u2026 - ellipsis.\n * \\u3002 - Japanese ideographic full stop.\n * \\uFF61 - Japanese half-width ideographic full stop.\n * \\uFF01 - Japanese full-width exclamation mark.\n * \\u203C - Japanese double exclamation mark.\n * \\uFF1F - Japanese fullwidth question mark.\n * \\u2047 - Japanese double question mark.\n * \\u2049 - Japanese exclamation question mark.\n * \\u2048 - Japanese question exclamation mark.\n * \\u2025 - Japanese two dot leader.\n */\nconst sentenceDelimiters = \"?!\\u2026\\u3002\\uFF61\\uFF01\\u203C\\uFF1F\\u2047\\u2049\\u2048\\u2049\\u2025\";\n\n/**\n * Class for tokenizing a (html) text into sentences.\n */\nexport default class JapaneseSentenceTokenizer extends SentenceTokenizer {\n\t/**\n\t * Constructor\n\t * @constructor\n\t */\n\tconstructor() {\n\t\tsuper();\n\t\tthis.sentenceDelimiters = sentenceDelimiters;\n\t}\n\n\t/**\n\t * Returns whether a certain character is a number.\n\t *\n\t * @param {string} character The character to check.\n\t * @returns {boolean} Whether or not the character is a capital letter.\n\t */\n\tisNumber( character ) {\n\t\tconst japaneseNumbers = [\n\t\t\t// Full-width.\n\t\t\t/^[\\uFF10-\\uFF19]+$/i,\n\t\t\t// Circled digit, parenthesized digit, and digit with full stop.\n\t\t\t/^[\\u2460-\\u249B]+$/i,\n\t\t\t// Parenthesized ideograph.\n\t\t\t/^[\\u3220-\\u3229]+$/i,\n\t\t\t// Circled ideograph.\n\t\t\t/^[\\u3280-\\u3289]+$/i,\n\t\t];\n\n\t\treturn ( ! isNaN( parseInt( character, 10 ) ) || japaneseNumbers.some( numberRange => numberRange.test( character ) ) );\n\t}\n\n\t/**\n\t * Returns whether a given character is quotation mark.\n\t *\n\t * @param {string} character The character to check.\n\t * @returns {boolean} Whether or not the given character is a quotation mark.\n\t */\n\tisQuotation( character ) {\n\t\tcharacter = normalizeQuotes( character );\n\n\t\tconst japaneseOpeningQuotationMark = /^[\\u300C\\u300E\\u3008\\u3014\\u3010\\uFF5B\\uFF3B]+$/i;\n\n\t\treturn \"'\" === character || \"\\\"\" === character || japaneseOpeningQuotationMark.test( character );\n\t}\n\n\t/**\n\t * Checks whether a character is from Japanese language that could be sentence beginning.\n\t *\n\t * @param {string} letter The letter to check.\n\t *\n\t * @returns {boolean} Whether the letter is from Japanese language that could be sentence beginning.\n\t */\n\tisLetterFromSpecificLanguage( letter ) {\n\t\tconst japaneseLetterRanges = [\n\t\t\t// Hiragana.\n\t\t\t/^[\\u3040-\\u3096]+$/i,\n\t\t\t// Katakana full-width.\n\t\t\t/^[\\u30A1-\\u30FA]+$/i,\n\t\t\t/^[\\u31F0-\\u31FF]+$/i,\n\t\t\t// Katakana half-width.\n\t\t\t/^[\\uFF66-\\uFF9D]+$/i,\n\t\t\t// Kanji.\n\t\t\t/^[\\u4E00-\\u9FFC]+$/i,\n\t\t];\n\n\t\treturn (\n\t\t\tjapaneseLetterRanges.some( ltrLetterRange => ltrLetterRange.test( letter ) )\n\t\t);\n\t}\n\n\t/**\n\t * Always returns true as Japanese sentence beginning doesn't need to be preceded by a whitespace to be a valid one.\n\t *\n\t * @returns {true} Always true.\n\t */\n\tisCharacterASpace() {\n\t\treturn true;\n\t}\n}\n\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,QAAQ;AAE9B,SAASC,SAAS,IAAIC,eAAe;AACrC,OAAOC,iBAAiB;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,GAAG,sEAAsE;;AAEjG;AACA;AACA;AACA,eAAe,MAAMC,yBAAyB,SAASF,iBAAiB,CAAC;EACxE;AACD;AACA;AACA;EACCG,WAAWA,CAAA,EAAG;IACb,KAAK,CAAC,CAAC;IACP,IAAI,CAACF,kBAAkB,GAAGA,kBAAkB;EAC7C;;EAEA;AACD;AACA;AACA;AACA;AACA;EACCG,QAAQA,CAAEC,SAAS,EAAG;IACrB,MAAMC,eAAe,GAAG;IACvB;IACA,qBAAqB;IACrB;IACA,qBAAqB;IACrB;IACA,qBAAqB;IACrB;IACA,qBAAqB,CACrB;IAED,OAAS,CAAET,KAAK,CAAEU,QAAQ,CAAEF,SAAS,EAAE,EAAG,CAAE,CAAC,IAAIC,eAAe,CAACE,IAAI,CAAEC,WAAW,IAAIA,WAAW,CAACC,IAAI,CAAEL,SAAU,CAAE,CAAC;EACtH;;EAEA;AACD;AACA;AACA;AACA;AACA;EACCM,WAAWA,CAAEN,SAAS,EAAG;IACxBA,SAAS,GAAGN,eAAe,CAAEM,SAAU,CAAC;IAExC,MAAMO,4BAA4B,GAAG,kDAAkD;IAEvF,OAAO,GAAG,KAAKP,SAAS,IAAI,IAAI,KAAKA,SAAS,IAAIO,4BAA4B,CAACF,IAAI,CAAEL,SAAU,CAAC;EACjG;;EAEA;AACD;AACA;AACA;AACA;AACA;AACA;EACCQ,4BAA4BA,CAAEC,MAAM,EAAG;IACtC,MAAMC,oBAAoB,GAAG;IAC5B;IACA,qBAAqB;IACrB;IACA,qBAAqB,EACrB,qBAAqB;IACrB;IACA,qBAAqB;IACrB;IACA,qBAAqB,CACrB;IAED,OACCA,oBAAoB,CAACP,IAAI,CAAEQ,cAAc,IAAIA,cAAc,CAACN,IAAI,CAAEI,MAAO,CAAE,CAAC;EAE9E;;EAEA;AACD;AACA;AACA;AACA;EACCG,iBAAiBA,CAAA,EAAG;IACnB,OAAO,IAAI;EACZ;AACD","ignoreList":[]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { flatten, uniq } from "lodash";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks if the word matches any paradigm and creates the forms from the matched paradigm(s).
|
|
5
|
+
* If no matches found, returns an array with the original word.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} word The word to check.
|
|
8
|
+
* @param {Object} morphologyData The morphology data.
|
|
9
|
+
*
|
|
10
|
+
* @returns {Array} The array of created forms.
|
|
11
|
+
*/
|
|
12
|
+
function createForms(word, morphologyData) {
|
|
13
|
+
const paradigmEndingsGroups = morphologyData.paradigmGroups;
|
|
14
|
+
|
|
15
|
+
// The endings in the array are sorted from the longest to the shortest.
|
|
16
|
+
// This way, if there are multiple matches, the first element in the matched array is always the longest one.
|
|
17
|
+
let allEndings = uniq(flatten(paradigmEndingsGroups));
|
|
18
|
+
allEndings = allEndings.sort((a, b) => b.length - a.length || a.localeCompare(b));
|
|
19
|
+
|
|
20
|
+
// Check if the word matches any ending(s) and save the ending(s).
|
|
21
|
+
const matchedEndings = allEndings.filter(ending => word.endsWith(ending));
|
|
22
|
+
const forms = [];
|
|
23
|
+
if (matchedEndings.length === 0) {
|
|
24
|
+
// If there is no match found, add the original word to the forms array.
|
|
25
|
+
forms.push(word);
|
|
26
|
+
} else {
|
|
27
|
+
// Pick the longest ending.
|
|
28
|
+
const matchedEnding = matchedEndings[0];
|
|
29
|
+
|
|
30
|
+
// Extract the stem.
|
|
31
|
+
const matchedStem = word.slice(0, -matchedEnding.length);
|
|
32
|
+
|
|
33
|
+
// Loop over each endings group in the endings group array.
|
|
34
|
+
for (const endingsGroup of paradigmEndingsGroups) {
|
|
35
|
+
// Check if the ending of the matched word can be found in the endings group and create all the forms with all the endings in the group.
|
|
36
|
+
if (endingsGroup.includes(matchedEnding)) {
|
|
37
|
+
forms.push(endingsGroup.map(ending => matchedStem + ending));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// If the final character of the input word ends in る, also create an extra form where the character is removed.
|
|
43
|
+
const ruEnding = "る";
|
|
44
|
+
if (word.endsWith(ruEnding)) {
|
|
45
|
+
forms.push(word.slice(0, -ruEnding.length));
|
|
46
|
+
}
|
|
47
|
+
return uniq(flatten(forms));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Creates forms for Japanese word.
|
|
52
|
+
*
|
|
53
|
+
* @param {string} word The word to check. Assume that the input word is a segment as outputted from `getContentWords` helper.
|
|
54
|
+
* @param {Object} morphologyData The morphology data.
|
|
55
|
+
*
|
|
56
|
+
* @returns {Array} The array of created forms.
|
|
57
|
+
*/
|
|
58
|
+
export default function (word, morphologyData) {
|
|
59
|
+
// Check if the word is longer than 1 character.
|
|
60
|
+
if (word.length <= 1) {
|
|
61
|
+
return [word];
|
|
62
|
+
}
|
|
63
|
+
return createForms(word, morphologyData);
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=createWordForms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createWordForms.js","names":["flatten","uniq","createForms","word","morphologyData","paradigmEndingsGroups","paradigmGroups","allEndings","sort","a","b","length","localeCompare","matchedEndings","filter","ending","endsWith","forms","push","matchedEnding","matchedStem","slice","endingsGroup","includes","map","ruEnding"],"sources":["../../../../../../src/languageProcessing/languages/ja/helpers/internal/createWordForms.js"],"sourcesContent":["import { flatten, uniq } from \"lodash\";\n\n/**\n * Checks if the word matches any paradigm and creates the forms from the matched paradigm(s).\n * If no matches found, returns an array with the original word.\n *\n * @param {string} word The word to check.\n * @param {Object} morphologyData The morphology data.\n *\n * @returns {Array} The array of created forms.\n */\nfunction createForms( word, morphologyData ) {\n\tconst paradigmEndingsGroups = morphologyData.paradigmGroups;\n\n\t// The endings in the array are sorted from the longest to the shortest.\n\t// This way, if there are multiple matches, the first element in the matched array is always the longest one.\n\tlet allEndings = uniq( flatten( paradigmEndingsGroups ) );\n\tallEndings = allEndings.sort( ( a, b ) => b.length - a.length || a.localeCompare( b ) );\n\n\t// Check if the word matches any ending(s) and save the ending(s).\n\tconst matchedEndings = allEndings.filter( ending => word.endsWith( ending ) );\n\n\tconst forms = [];\n\n\tif ( matchedEndings.length === 0 ) {\n\t\t// If there is no match found, add the original word to the forms array.\n\t\tforms.push( word );\n\t} else {\n\t\t// Pick the longest ending.\n\t\tconst matchedEnding = matchedEndings[ 0 ];\n\n\t\t// Extract the stem.\n\t\tconst matchedStem = word.slice( 0, -matchedEnding.length );\n\n\t\t// Loop over each endings group in the endings group array.\n\t\tfor ( const endingsGroup of paradigmEndingsGroups ) {\n\t\t\t// Check if the ending of the matched word can be found in the endings group and create all the forms with all the endings in the group.\n\t\t\tif ( endingsGroup.includes( matchedEnding ) ) {\n\t\t\t\tforms.push( endingsGroup.map( ending => matchedStem + ending ) );\n\t\t\t}\n\t\t}\n\t}\n\n\t// If the final character of the input word ends in る, also create an extra form where the character is removed.\n\tconst ruEnding = \"る\";\n\tif ( word.endsWith( ruEnding ) ) {\n\t\tforms.push( word.slice( 0, -ruEnding.length ) );\n\t}\n\n\treturn uniq( flatten( forms ) );\n}\n\n/**\n * Creates forms for Japanese word.\n *\n * @param {string} word The word to check. Assume that the input word is a segment as outputted from `getContentWords` helper.\n * @param {Object} morphologyData The morphology data.\n *\n * @returns {Array} The array of created forms.\n */\nexport default function( word, morphologyData ) {\n\t// Check if the word is longer than 1 character.\n\tif ( word.length <= 1 ) {\n\t\treturn [ word ];\n\t}\n\n\treturn createForms( word, morphologyData );\n}\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,IAAI,QAAQ,QAAQ;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,WAAWA,CAAEC,IAAI,EAAEC,cAAc,EAAG;EAC5C,MAAMC,qBAAqB,GAAGD,cAAc,CAACE,cAAc;;EAE3D;EACA;EACA,IAAIC,UAAU,GAAGN,IAAI,CAAED,OAAO,CAAEK,qBAAsB,CAAE,CAAC;EACzDE,UAAU,GAAGA,UAAU,CAACC,IAAI,CAAE,CAAEC,CAAC,EAAEC,CAAC,KAAMA,CAAC,CAACC,MAAM,GAAGF,CAAC,CAACE,MAAM,IAAIF,CAAC,CAACG,aAAa,CAAEF,CAAE,CAAE,CAAC;;EAEvF;EACA,MAAMG,cAAc,GAAGN,UAAU,CAACO,MAAM,CAAEC,MAAM,IAAIZ,IAAI,CAACa,QAAQ,CAAED,MAAO,CAAE,CAAC;EAE7E,MAAME,KAAK,GAAG,EAAE;EAEhB,IAAKJ,cAAc,CAACF,MAAM,KAAK,CAAC,EAAG;IAClC;IACAM,KAAK,CAACC,IAAI,CAAEf,IAAK,CAAC;EACnB,CAAC,MAAM;IACN;IACA,MAAMgB,aAAa,GAAGN,cAAc,CAAE,CAAC,CAAE;;IAEzC;IACA,MAAMO,WAAW,GAAGjB,IAAI,CAACkB,KAAK,CAAE,CAAC,EAAE,CAACF,aAAa,CAACR,MAAO,CAAC;;IAE1D;IACA,KAAM,MAAMW,YAAY,IAAIjB,qBAAqB,EAAG;MACnD;MACA,IAAKiB,YAAY,CAACC,QAAQ,CAAEJ,aAAc,CAAC,EAAG;QAC7CF,KAAK,CAACC,IAAI,CAAEI,YAAY,CAACE,GAAG,CAAET,MAAM,IAAIK,WAAW,GAAGL,MAAO,CAAE,CAAC;MACjE;IACD;EACD;;EAEA;EACA,MAAMU,QAAQ,GAAG,GAAG;EACpB,IAAKtB,IAAI,CAACa,QAAQ,CAAES,QAAS,CAAC,EAAG;IAChCR,KAAK,CAACC,IAAI,CAAEf,IAAI,CAACkB,KAAK,CAAE,CAAC,EAAE,CAACI,QAAQ,CAACd,MAAO,CAAE,CAAC;EAChD;EAEA,OAAOV,IAAI,CAAED,OAAO,CAAEiB,KAAM,CAAE,CAAC;AAChC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUd,IAAI,EAAEC,cAAc,EAAG;EAC/C;EACA,IAAKD,IAAI,CAACQ,MAAM,IAAI,CAAC,EAAG;IACvB,OAAO,CAAER,IAAI,CAAE;EAChB;EAEA,OAAOD,WAAW,CAAEC,IAAI,EAAEC,cAAe,CAAC;AAC3C","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import createWordForms from "./createWordForms";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Determines the canonical stem from the word forms.
|
|
5
|
+
*
|
|
6
|
+
* @param {string} word The word input.
|
|
7
|
+
* @param {object} morphologyData The morphology data file.
|
|
8
|
+
*
|
|
9
|
+
* @returns {string} The shortest form from the array as the canonical stem.
|
|
10
|
+
*/
|
|
11
|
+
export default function determineStem(word, morphologyData) {
|
|
12
|
+
let createdWordForms = createWordForms(word, morphologyData);
|
|
13
|
+
// Sort from the shortest to the longest form.
|
|
14
|
+
createdWordForms = createdWordForms.sort((a, b) => a.length - b.length || a.localeCompare(b));
|
|
15
|
+
return createdWordForms[0];
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=determineStem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"determineStem.js","names":["createWordForms","determineStem","word","morphologyData","createdWordForms","sort","a","b","length","localeCompare"],"sources":["../../../../../../src/languageProcessing/languages/ja/helpers/internal/determineStem.js"],"sourcesContent":["import createWordForms from \"./createWordForms\";\n\n/**\n * Determines the canonical stem from the word forms.\n *\n * @param {string} word The word input.\n * @param {object} morphologyData The morphology data file.\n *\n * @returns {string} The shortest form from the array as the canonical stem.\n */\nexport default function determineStem( word, morphologyData ) {\n\tlet createdWordForms = createWordForms( word, morphologyData );\n\t// Sort from the shortest to the longest form.\n\tcreatedWordForms = createdWordForms.sort( ( a, b ) => a.length - b.length || a.localeCompare( b ) );\n\n\treturn createdWordForms[ 0 ];\n}\n"],"mappings":"AAAA,OAAOA,eAAe;;AAEtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,aAAaA,CAAEC,IAAI,EAAEC,cAAc,EAAG;EAC7D,IAAIC,gBAAgB,GAAGJ,eAAe,CAAEE,IAAI,EAAEC,cAAe,CAAC;EAC9D;EACAC,gBAAgB,GAAGA,gBAAgB,CAACC,IAAI,CAAE,CAAEC,CAAC,EAAEC,CAAC,KAAMD,CAAC,CAACE,MAAM,GAAGD,CAAC,CAACC,MAAM,IAAIF,CAAC,CAACG,aAAa,CAAEF,CAAE,CAAE,CAAC;EAEnG,OAAOH,gBAAgB,CAAE,CAAC,CAAE;AAC7B","ignoreList":[]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import getContentWords from "./getContentWords";
|
|
2
|
+
import processExactMatchRequest from "../../../helpers/match/processExactMatchRequest";
|
|
3
|
+
import { normalizeSingle } from "../../../helpers/sanitize/quotes";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Checks for word matches in a text and returns an array containing the matched word(s).
|
|
7
|
+
*
|
|
8
|
+
* @param {string} text The text to find the word to match.
|
|
9
|
+
* @param {string} wordToMatch The word to match.
|
|
10
|
+
*
|
|
11
|
+
* @returns {Array} An array of the matched word(s).
|
|
12
|
+
*/
|
|
13
|
+
export default function (text, wordToMatch) {
|
|
14
|
+
/*
|
|
15
|
+
* Lowercase the text so that it matches the wordToMatch which is already lowercased.
|
|
16
|
+
* Note that Japanese doesn't differentiate between upper and lower case, so this is only needed in case
|
|
17
|
+
* the text contains non-Japanese characters.
|
|
18
|
+
*/
|
|
19
|
+
text = text.toLowerCase();
|
|
20
|
+
|
|
21
|
+
// Check if the exact match is requested.
|
|
22
|
+
const isExactMatchRequested = processExactMatchRequest(wordToMatch);
|
|
23
|
+
if (isExactMatchRequested.exactMatchRequested) {
|
|
24
|
+
/*
|
|
25
|
+
* Normalize single quotes in case they differ between the text and the word to match.
|
|
26
|
+
* Normalizing is only needed for exact matching, because with non-exact matching single quotes are considered
|
|
27
|
+
* word boundaries.
|
|
28
|
+
* Quotes in wordToMatch are already normalized at an earlier point.
|
|
29
|
+
*/
|
|
30
|
+
text = normalizeSingle(text);
|
|
31
|
+
const keyphrase = isExactMatchRequested.keyphrase;
|
|
32
|
+
const matches = [];
|
|
33
|
+
|
|
34
|
+
// Return the index of the match. It returns -1 if there is no match.
|
|
35
|
+
let index = text.indexOf(keyphrase);
|
|
36
|
+
while (index !== -1) {
|
|
37
|
+
// Push the match to the array.
|
|
38
|
+
matches.push(keyphrase);
|
|
39
|
+
// Look for the next match after the previous one and adjust the index.
|
|
40
|
+
index = text.indexOf(keyphrase, index + keyphrase.length);
|
|
41
|
+
}
|
|
42
|
+
return matches;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/*
|
|
46
|
+
* `getContentWords` is used here to retrieve the words from the text instead of `getWords` because it has an additional step
|
|
47
|
+
* to remove this ending -じゃ from the segmented words which means that using this method will improve matching possibility.
|
|
48
|
+
*/
|
|
49
|
+
const words = getContentWords(text);
|
|
50
|
+
return words.filter(word => wordToMatch === word);
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=matchTextWithWord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matchTextWithWord.js","names":["getContentWords","processExactMatchRequest","normalizeSingle","text","wordToMatch","toLowerCase","isExactMatchRequested","exactMatchRequested","keyphrase","matches","index","indexOf","push","length","words","filter","word"],"sources":["../../../../../src/languageProcessing/languages/ja/helpers/matchTextWithWord.js"],"sourcesContent":["import getContentWords from \"./getContentWords\";\nimport processExactMatchRequest from \"../../../helpers/match/processExactMatchRequest\";\nimport { normalizeSingle } from \"../../../helpers/sanitize/quotes\";\n\n/**\n * Checks for word matches in a text and returns an array containing the matched word(s).\n *\n * @param {string} text The text to find the word to match.\n * @param {string} wordToMatch The word to match.\n *\n * @returns {Array} An array of the matched word(s).\n */\nexport default function( text, wordToMatch ) {\n\t/*\n * Lowercase the text so that it matches the wordToMatch which is already lowercased.\n * Note that Japanese doesn't differentiate between upper and lower case, so this is only needed in case\n * the text contains non-Japanese characters.\n */\n\ttext = text.toLowerCase();\n\n\t// Check if the exact match is requested.\n\tconst isExactMatchRequested = processExactMatchRequest( wordToMatch );\n\tif ( isExactMatchRequested.exactMatchRequested ) {\n\t\t/*\n\t\t * Normalize single quotes in case they differ between the text and the word to match.\n\t\t * Normalizing is only needed for exact matching, because with non-exact matching single quotes are considered\n\t\t * word boundaries.\n\t\t * Quotes in wordToMatch are already normalized at an earlier point.\n\t\t*/\n\t\ttext = normalizeSingle( text );\n\n\t\tconst keyphrase = isExactMatchRequested.keyphrase;\n\t\tconst matches = [];\n\n\t\t// Return the index of the match. It returns -1 if there is no match.\n\t\tlet index = text.indexOf( keyphrase );\n\t\twhile ( index !== -1 ) {\n\t\t\t// Push the match to the array.\n\t\t\tmatches.push( keyphrase );\n\t\t\t// Look for the next match after the previous one and adjust the index.\n\t\t\tindex = text.indexOf( keyphrase, index + keyphrase.length );\n\t\t}\n\t\treturn matches;\n\t}\n\n\t/*\n\t * `getContentWords` is used here to retrieve the words from the text instead of `getWords` because it has an additional step\n\t * to remove this ending -じゃ from the segmented words which means that using this method will improve matching possibility.\n\t */\n\tconst words = getContentWords( text );\n\n\treturn words.filter( word => wordToMatch === word );\n}\n"],"mappings":"AAAA,OAAOA,eAAe;AACtB,OAAOC,wBAAwB;AAC/B,SAASC,eAAe;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUC,IAAI,EAAEC,WAAW,EAAG;EAC5C;AACD;AACA;AACA;AACA;EACCD,IAAI,GAAGA,IAAI,CAACE,WAAW,CAAC,CAAC;;EAEzB;EACA,MAAMC,qBAAqB,GAAGL,wBAAwB,CAAEG,WAAY,CAAC;EACrE,IAAKE,qBAAqB,CAACC,mBAAmB,EAAG;IAChD;AACF;AACA;AACA;AACA;AACA;IACEJ,IAAI,GAAGD,eAAe,CAAEC,IAAK,CAAC;IAE9B,MAAMK,SAAS,GAAGF,qBAAqB,CAACE,SAAS;IACjD,MAAMC,OAAO,GAAG,EAAE;;IAElB;IACA,IAAIC,KAAK,GAAGP,IAAI,CAACQ,OAAO,CAAEH,SAAU,CAAC;IACrC,OAAQE,KAAK,KAAK,CAAC,CAAC,EAAG;MACtB;MACAD,OAAO,CAACG,IAAI,CAAEJ,SAAU,CAAC;MACzB;MACAE,KAAK,GAAGP,IAAI,CAACQ,OAAO,CAAEH,SAAS,EAAEE,KAAK,GAAGF,SAAS,CAACK,MAAO,CAAC;IAC5D;IACA,OAAOJ,OAAO;EACf;;EAEA;AACD;AACA;AACA;EACC,MAAMK,KAAK,GAAGd,eAAe,CAAEG,IAAK,CAAC;EAErC,OAAOW,KAAK,CAACC,MAAM,CAAEC,IAAI,IAAIZ,WAAW,KAAKY,IAAK,CAAC;AACpD","ignoreList":[]}
|