axyseo 2.0.0-alpha.0.0.38 → 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.
Files changed (1251) hide show
  1. package/build/components/RelatedKeywordsDescription.js +14 -22
  2. package/build/components/RelatedKeywordsDescription.js.map +1 -1
  3. package/build/config/diacritics.js +1 -7
  4. package/build/config/diacritics.js.map +1 -1
  5. package/build/config/getTransliterations.js +6 -14
  6. package/build/config/getTransliterations.js.map +1 -1
  7. package/build/config/transliterationsWPstyle.js +5 -12
  8. package/build/config/transliterationsWPstyle.js.map +1 -1
  9. package/build/config/wordBoundaries.js +1 -7
  10. package/build/config/wordBoundaries.js.map +1 -1
  11. package/build/config/wordBoundariesWithoutPunctuation.js +2 -8
  12. package/build/config/wordBoundariesWithoutPunctuation.js.map +1 -1
  13. package/build/const/analysis.js +5 -11
  14. package/build/const/analysis.js.map +1 -1
  15. package/build/errors/invalidType.js +1 -8
  16. package/build/errors/invalidType.js.map +1 -1
  17. package/build/errors/missingArgument.js +1 -8
  18. package/build/errors/missingArgument.js.map +1 -1
  19. package/build/helpers/createMeasurementElement.js +1 -8
  20. package/build/helpers/createMeasurementElement.js.map +1 -1
  21. package/build/helpers/domManipulation.js +3 -8
  22. package/build/helpers/domManipulation.js.map +1 -1
  23. package/build/helpers/errors.js +5 -10
  24. package/build/helpers/errors.js.map +1 -1
  25. package/build/helpers/factory.js +7 -13
  26. package/build/helpers/factory.js.map +1 -1
  27. package/build/helpers/formatNumber.js +1 -7
  28. package/build/helpers/formatNumber.js.map +1 -1
  29. package/build/helpers/formatString.js +4 -9
  30. package/build/helpers/formatString.js.map +1 -1
  31. package/build/helpers/getLanguagesWithWordComplexity.js +1 -7
  32. package/build/helpers/getLanguagesWithWordComplexity.js.map +1 -1
  33. package/build/helpers/getLanguagesWithWordFormSupport.js +1 -7
  34. package/build/helpers/getLanguagesWithWordFormSupport.js.map +1 -1
  35. package/build/helpers/getWordComplexityConfig.js +9 -15
  36. package/build/helpers/getWordComplexityConfig.js.map +1 -1
  37. package/build/helpers/getWordComplexityHelper.js +9 -15
  38. package/build/helpers/getWordComplexityHelper.js.map +1 -1
  39. package/build/helpers/htmlEntities.js +6 -11
  40. package/build/helpers/htmlEntities.js.map +1 -1
  41. package/build/helpers/includesAny.js +3 -8
  42. package/build/helpers/includesAny.js.map +1 -1
  43. package/build/helpers/index.js +15 -72
  44. package/build/helpers/index.js.map +1 -1
  45. package/build/helpers/shortlinker/Shortlinker.js +1 -8
  46. package/build/helpers/shortlinker/Shortlinker.js.map +1 -1
  47. package/build/helpers/shortlinker/index.js +1 -16
  48. package/build/helpers/shortlinker/index.js.map +1 -1
  49. package/build/helpers/shortlinker/singleton.js +5 -13
  50. package/build/helpers/shortlinker/singleton.js.map +1 -1
  51. package/build/helpers/types.js +2 -9
  52. package/build/helpers/types.js.map +1 -1
  53. package/build/index.js +25 -92
  54. package/build/index.js.map +1 -1
  55. package/build/languageProcessing/AbstractResearcher.js +88 -97
  56. package/build/languageProcessing/AbstractResearcher.js.map +1 -1
  57. package/build/languageProcessing/helpers/highlighting/getMarkingsInSentence.js +3 -10
  58. package/build/languageProcessing/helpers/highlighting/getMarkingsInSentence.js.map +1 -1
  59. package/build/languageProcessing/helpers/html/getFieldsToMark.js +6 -11
  60. package/build/languageProcessing/helpers/html/getFieldsToMark.js.map +1 -1
  61. package/build/languageProcessing/helpers/html/getSubheadingTexts.js +3 -8
  62. package/build/languageProcessing/helpers/html/getSubheadingTexts.js.map +1 -1
  63. package/build/languageProcessing/helpers/html/getSubheadings.js +2 -12
  64. package/build/languageProcessing/helpers/html/getSubheadings.js.map +1 -1
  65. package/build/languageProcessing/helpers/html/html.js +9 -17
  66. package/build/languageProcessing/helpers/html/html.js.map +1 -1
  67. package/build/languageProcessing/helpers/html/htmlParser.js +3 -10
  68. package/build/languageProcessing/helpers/html/htmlParser.js.map +1 -1
  69. package/build/languageProcessing/helpers/html/matchParagraphs.js +7 -12
  70. package/build/languageProcessing/helpers/html/matchParagraphs.js.map +1 -1
  71. package/build/languageProcessing/helpers/html/normalizeHTML.js +1 -7
  72. package/build/languageProcessing/helpers/html/normalizeHTML.js.map +1 -1
  73. package/build/languageProcessing/helpers/image/getAltAttribute.js +3 -9
  74. package/build/languageProcessing/helpers/image/getAltAttribute.js.map +1 -1
  75. package/build/languageProcessing/helpers/image/getImagesInTree.js +1 -7
  76. package/build/languageProcessing/helpers/image/getImagesInTree.js.map +1 -1
  77. package/build/languageProcessing/helpers/image/imageInText.js +5 -12
  78. package/build/languageProcessing/helpers/image/imageInText.js.map +1 -1
  79. package/build/languageProcessing/helpers/index.js +5 -40
  80. package/build/languageProcessing/helpers/index.js.map +1 -1
  81. package/build/languageProcessing/helpers/language/getLanguage.js +1 -7
  82. package/build/languageProcessing/helpers/language/getLanguage.js.map +1 -1
  83. package/build/languageProcessing/helpers/link/checkNofollow.js +3 -10
  84. package/build/languageProcessing/helpers/link/checkNofollow.js.map +1 -1
  85. package/build/languageProcessing/helpers/link/getAnchorsFromText.js +1 -7
  86. package/build/languageProcessing/helpers/link/getAnchorsFromText.js.map +1 -1
  87. package/build/languageProcessing/helpers/link/getLinkType.js +7 -13
  88. package/build/languageProcessing/helpers/link/getLinkType.js.map +1 -1
  89. package/build/languageProcessing/helpers/match/findKeywordFormsInString.js +6 -13
  90. package/build/languageProcessing/helpers/match/findKeywordFormsInString.js.map +1 -1
  91. package/build/languageProcessing/helpers/match/isDoubleQuoted.js +4 -10
  92. package/build/languageProcessing/helpers/match/isDoubleQuoted.js.map +1 -1
  93. package/build/languageProcessing/helpers/match/matchTextWithArray.js +6 -12
  94. package/build/languageProcessing/helpers/match/matchTextWithArray.js.map +1 -1
  95. package/build/languageProcessing/helpers/match/matchTextWithTransliteration.js +16 -22
  96. package/build/languageProcessing/helpers/match/matchTextWithTransliteration.js.map +1 -1
  97. package/build/languageProcessing/helpers/match/matchTextWithWord.js +17 -23
  98. package/build/languageProcessing/helpers/match/matchTextWithWord.js.map +1 -1
  99. package/build/languageProcessing/helpers/match/matchWordFormsWithSentence.js +7 -14
  100. package/build/languageProcessing/helpers/match/matchWordFormsWithSentence.js.map +1 -1
  101. package/build/languageProcessing/helpers/match/processExactMatchRequest.js +3 -9
  102. package/build/languageProcessing/helpers/match/processExactMatchRequest.js.map +1 -1
  103. package/build/languageProcessing/helpers/morphology/baseStemmer.js +1 -7
  104. package/build/languageProcessing/helpers/morphology/baseStemmer.js.map +1 -1
  105. package/build/languageProcessing/helpers/morphology/buildFormRule.js +1 -7
  106. package/build/languageProcessing/helpers/morphology/buildFormRule.js.map +1 -1
  107. package/build/languageProcessing/helpers/morphology/buildTopicStems.js +13 -23
  108. package/build/languageProcessing/helpers/morphology/buildTopicStems.js.map +1 -1
  109. package/build/languageProcessing/helpers/morphology/createRulesFromArrays.js +2 -9
  110. package/build/languageProcessing/helpers/morphology/createRulesFromArrays.js.map +1 -1
  111. package/build/languageProcessing/helpers/morphology/exceptionListHelpers.js +5 -13
  112. package/build/languageProcessing/helpers/morphology/exceptionListHelpers.js.map +1 -1
  113. package/build/languageProcessing/helpers/morphology/findMatchingEndingInArray.js +1 -7
  114. package/build/languageProcessing/helpers/morphology/findMatchingEndingInArray.js.map +1 -1
  115. package/build/languageProcessing/helpers/morphology/flattenSortLength.js +3 -8
  116. package/build/languageProcessing/helpers/morphology/flattenSortLength.js.map +1 -1
  117. package/build/languageProcessing/helpers/morphology/getAllWordsFromPaper.js +12 -18
  118. package/build/languageProcessing/helpers/morphology/getAllWordsFromPaper.js.map +1 -1
  119. package/build/languageProcessing/helpers/morphology/regexHelpers.js +3 -11
  120. package/build/languageProcessing/helpers/morphology/regexHelpers.js.map +1 -1
  121. package/build/languageProcessing/helpers/morphology/stemHelpers.js +2 -9
  122. package/build/languageProcessing/helpers/morphology/stemHelpers.js.map +1 -1
  123. package/build/languageProcessing/helpers/morphology/stemPrefixedFunctionWords.js +1 -7
  124. package/build/languageProcessing/helpers/morphology/stemPrefixedFunctionWords.js.map +1 -1
  125. package/build/languageProcessing/helpers/passiveVoice/periphrastic/directPrecedenceException.js +5 -11
  126. package/build/languageProcessing/helpers/passiveVoice/periphrastic/directPrecedenceException.js.map +1 -1
  127. package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/getClausesSplitOnStopWords.js +9 -15
  128. package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/getClausesSplitOnStopWords.js.map +1 -1
  129. package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/nonDirectParticiplePrecedenceException.js +9 -15
  130. package/build/languageProcessing/helpers/passiveVoice/periphrastic/freeAuxiliaryParticipleOrder/nonDirectParticiplePrecedenceException.js.map +1 -1
  131. package/build/languageProcessing/helpers/passiveVoice/periphrastic/getClauses.js +28 -34
  132. package/build/languageProcessing/helpers/passiveVoice/periphrastic/getClauses.js.map +1 -1
  133. package/build/languageProcessing/helpers/passiveVoice/periphrastic/getIndicesWithRegex.js +1 -7
  134. package/build/languageProcessing/helpers/passiveVoice/periphrastic/getIndicesWithRegex.js.map +1 -1
  135. package/build/languageProcessing/helpers/passiveVoice/periphrastic/matchRegularParticiples.js +3 -8
  136. package/build/languageProcessing/helpers/passiveVoice/periphrastic/matchRegularParticiples.js.map +1 -1
  137. package/build/languageProcessing/helpers/passiveVoice/periphrastic/precedenceException.js +5 -11
  138. package/build/languageProcessing/helpers/passiveVoice/periphrastic/precedenceException.js.map +1 -1
  139. package/build/languageProcessing/helpers/prominentWords/determineProminentWords.js +16 -28
  140. package/build/languageProcessing/helpers/prominentWords/determineProminentWords.js.map +1 -1
  141. package/build/languageProcessing/helpers/regex/createRegexFromArray.js +10 -16
  142. package/build/languageProcessing/helpers/regex/createRegexFromArray.js.map +1 -1
  143. package/build/languageProcessing/helpers/regex/createRegexFromDoubleArray.js +4 -10
  144. package/build/languageProcessing/helpers/regex/createRegexFromDoubleArray.js.map +1 -1
  145. package/build/languageProcessing/helpers/regex/createWordRegex.js +12 -18
  146. package/build/languageProcessing/helpers/regex/createWordRegex.js.map +1 -1
  147. package/build/languageProcessing/helpers/regex/matchStringWithRegex.js +1 -7
  148. package/build/languageProcessing/helpers/regex/matchStringWithRegex.js.map +1 -1
  149. package/build/languageProcessing/helpers/regex/searchAndReplaceWithOneRegex.js +1 -7
  150. package/build/languageProcessing/helpers/regex/searchAndReplaceWithOneRegex.js.map +1 -1
  151. package/build/languageProcessing/helpers/sanitize/doubleQuotes.js +1 -7
  152. package/build/languageProcessing/helpers/sanitize/doubleQuotes.js.map +1 -1
  153. package/build/languageProcessing/helpers/sanitize/filterShortcodesFromTree.js +3 -11
  154. package/build/languageProcessing/helpers/sanitize/filterShortcodesFromTree.js.map +1 -1
  155. package/build/languageProcessing/helpers/sanitize/mergeListItems.js +1 -7
  156. package/build/languageProcessing/helpers/sanitize/mergeListItems.js.map +1 -1
  157. package/build/languageProcessing/helpers/sanitize/parseSynonyms.js +5 -11
  158. package/build/languageProcessing/helpers/sanitize/parseSynonyms.js.map +1 -1
  159. package/build/languageProcessing/helpers/sanitize/quotes.js +4 -12
  160. package/build/languageProcessing/helpers/sanitize/quotes.js.map +1 -1
  161. package/build/languageProcessing/helpers/sanitize/removeEmailAddresses.js +1 -7
  162. package/build/languageProcessing/helpers/sanitize/removeEmailAddresses.js.map +1 -1
  163. package/build/languageProcessing/helpers/sanitize/removePunctuation.js +7 -13
  164. package/build/languageProcessing/helpers/sanitize/removePunctuation.js.map +1 -1
  165. package/build/languageProcessing/helpers/sanitize/removePunctuationExceptQuotes.js +1 -7
  166. package/build/languageProcessing/helpers/sanitize/removePunctuationExceptQuotes.js.map +1 -1
  167. package/build/languageProcessing/helpers/sanitize/removeSentenceTerminators.js +1 -7
  168. package/build/languageProcessing/helpers/sanitize/removeSentenceTerminators.js.map +1 -1
  169. package/build/languageProcessing/helpers/sanitize/removeURLs.js +1 -7
  170. package/build/languageProcessing/helpers/sanitize/removeURLs.js.map +1 -1
  171. package/build/languageProcessing/helpers/sanitize/sanitizeLineBreakTag.js +1 -7
  172. package/build/languageProcessing/helpers/sanitize/sanitizeLineBreakTag.js.map +1 -1
  173. package/build/languageProcessing/helpers/sanitize/sanitizeString.js +5 -10
  174. package/build/languageProcessing/helpers/sanitize/sanitizeString.js.map +1 -1
  175. package/build/languageProcessing/helpers/sanitize/stripHTMLTags.js +7 -16
  176. package/build/languageProcessing/helpers/sanitize/stripHTMLTags.js.map +1 -1
  177. package/build/languageProcessing/helpers/sanitize/stripNonTextTags.js +4 -10
  178. package/build/languageProcessing/helpers/sanitize/stripNonTextTags.js.map +1 -1
  179. package/build/languageProcessing/helpers/sanitize/stripNumbers.js +4 -10
  180. package/build/languageProcessing/helpers/sanitize/stripNumbers.js.map +1 -1
  181. package/build/languageProcessing/helpers/sanitize/stripSpaces.js +1 -7
  182. package/build/languageProcessing/helpers/sanitize/stripSpaces.js.map +1 -1
  183. package/build/languageProcessing/helpers/sanitize/stripWordBoundaries.js +2 -10
  184. package/build/languageProcessing/helpers/sanitize/stripWordBoundaries.js.map +1 -1
  185. package/build/languageProcessing/helpers/sanitize/unifyWhitespace.js +2 -11
  186. package/build/languageProcessing/helpers/sanitize/unifyWhitespace.js.map +1 -1
  187. package/build/languageProcessing/helpers/sentence/SentenceTokenizer.js +22 -29
  188. package/build/languageProcessing/helpers/sentence/SentenceTokenizer.js.map +1 -1
  189. package/build/languageProcessing/helpers/sentence/countSentences.js +4 -10
  190. package/build/languageProcessing/helpers/sentence/countSentences.js.map +1 -1
  191. package/build/languageProcessing/helpers/sentence/getSentences.js +13 -20
  192. package/build/languageProcessing/helpers/sentence/getSentences.js.map +1 -1
  193. package/build/languageProcessing/helpers/sentence/getSentencesFromTree.js +2 -9
  194. package/build/languageProcessing/helpers/sentence/getSentencesFromTree.js.map +1 -1
  195. package/build/languageProcessing/helpers/sentence/memoizedSentenceTokenizer.js +4 -10
  196. package/build/languageProcessing/helpers/sentence/memoizedSentenceTokenizer.js.map +1 -1
  197. package/build/languageProcessing/helpers/sentence/sentencesLength.js +7 -13
  198. package/build/languageProcessing/helpers/sentence/sentencesLength.js.map +1 -1
  199. package/build/languageProcessing/helpers/syllables/DeviationFragment.js +5 -11
  200. package/build/languageProcessing/helpers/syllables/DeviationFragment.js.map +1 -1
  201. package/build/languageProcessing/helpers/syllables/countSyllables.js +23 -30
  202. package/build/languageProcessing/helpers/syllables/countSyllables.js.map +1 -1
  203. package/build/languageProcessing/helpers/syllables/syllableCountIterator.js +7 -14
  204. package/build/languageProcessing/helpers/syllables/syllableCountIterator.js.map +1 -1
  205. package/build/languageProcessing/helpers/syllables/syllableCountStep.js +5 -12
  206. package/build/languageProcessing/helpers/syllables/syllableCountStep.js.map +1 -1
  207. package/build/languageProcessing/helpers/transform/transformWordsWithHyphens.js +1 -7
  208. package/build/languageProcessing/helpers/transform/transformWordsWithHyphens.js.map +1 -1
  209. package/build/languageProcessing/helpers/transliterate/replaceDiacritics.js +4 -10
  210. package/build/languageProcessing/helpers/transliterate/replaceDiacritics.js.map +1 -1
  211. package/build/languageProcessing/helpers/transliterate/specialCharacterMappings.js +12 -23
  212. package/build/languageProcessing/helpers/transliterate/specialCharacterMappings.js.map +1 -1
  213. package/build/languageProcessing/helpers/transliterate/transliterate.js +3 -9
  214. package/build/languageProcessing/helpers/transliterate/transliterate.js.map +1 -1
  215. package/build/languageProcessing/helpers/transliterate/transliterateWPstyle.js +3 -9
  216. package/build/languageProcessing/helpers/transliterate/transliterateWPstyle.js.map +1 -1
  217. package/build/languageProcessing/helpers/url/parseSlug.js +1 -7
  218. package/build/languageProcessing/helpers/url/parseSlug.js.map +1 -1
  219. package/build/languageProcessing/helpers/url/url.js +7 -13
  220. package/build/languageProcessing/helpers/url/url.js.map +1 -1
  221. package/build/languageProcessing/helpers/word/addWordboundary.js +1 -7
  222. package/build/languageProcessing/helpers/word/addWordboundary.js.map +1 -1
  223. package/build/languageProcessing/helpers/word/areWordsInSentence.js +4 -10
  224. package/build/languageProcessing/helpers/word/areWordsInSentence.js.map +1 -1
  225. package/build/languageProcessing/helpers/word/countMetaDescriptionLength.js +1 -7
  226. package/build/languageProcessing/helpers/word/countMetaDescriptionLength.js.map +1 -1
  227. package/build/languageProcessing/helpers/word/countWords.js +4 -10
  228. package/build/languageProcessing/helpers/word/countWords.js.map +1 -1
  229. package/build/languageProcessing/helpers/word/createPunctuationTokens.js +5 -10
  230. package/build/languageProcessing/helpers/word/createPunctuationTokens.js.map +1 -1
  231. package/build/languageProcessing/helpers/word/filterWordsFromArray.js +4 -9
  232. package/build/languageProcessing/helpers/word/filterWordsFromArray.js.map +1 -1
  233. package/build/languageProcessing/helpers/word/followsIndex.js +5 -10
  234. package/build/languageProcessing/helpers/word/followsIndex.js.map +1 -1
  235. package/build/languageProcessing/helpers/word/getAllWordsFromTree.js +7 -13
  236. package/build/languageProcessing/helpers/word/getAllWordsFromTree.js.map +1 -1
  237. package/build/languageProcessing/helpers/word/getWords.js +9 -19
  238. package/build/languageProcessing/helpers/word/getWords.js.map +1 -1
  239. package/build/languageProcessing/helpers/word/includesIndex.js +5 -10
  240. package/build/languageProcessing/helpers/word/includesIndex.js.map +1 -1
  241. package/build/languageProcessing/helpers/word/indices.js +14 -25
  242. package/build/languageProcessing/helpers/word/indices.js.map +1 -1
  243. package/build/languageProcessing/helpers/word/markWordsInSentences.js +23 -35
  244. package/build/languageProcessing/helpers/word/markWordsInSentences.js.map +1 -1
  245. package/build/languageProcessing/helpers/word/matchWordInSentence.js +8 -15
  246. package/build/languageProcessing/helpers/word/matchWordInSentence.js.map +1 -1
  247. package/build/languageProcessing/helpers/word/splitIntoTokens.js +3 -9
  248. package/build/languageProcessing/helpers/word/splitIntoTokens.js.map +1 -1
  249. package/build/languageProcessing/index.js +41 -282
  250. package/build/languageProcessing/index.js.map +1 -1
  251. package/build/languageProcessing/languages/_default/Researcher.js +5 -13
  252. package/build/languageProcessing/languages/_default/Researcher.js.map +1 -1
  253. package/build/languageProcessing/languages/_default/helpers/getStemmer.js +3 -9
  254. package/build/languageProcessing/languages/_default/helpers/getStemmer.js.map +1 -1
  255. package/build/languageProcessing/languages/ar/Researcher.js +19 -27
  256. package/build/languageProcessing/languages/ar/Researcher.js.map +1 -1
  257. package/build/languageProcessing/languages/ar/config/firstWordExceptions.js +1 -7
  258. package/build/languageProcessing/languages/ar/config/firstWordExceptions.js.map +1 -1
  259. package/build/languageProcessing/languages/ar/config/functionWords.js +7 -13
  260. package/build/languageProcessing/languages/ar/config/functionWords.js.map +1 -1
  261. package/build/languageProcessing/languages/ar/config/internal/passiveVerbsWithLongVowel.js +1 -7
  262. package/build/languageProcessing/languages/ar/config/internal/passiveVerbsWithLongVowel.js.map +1 -1
  263. package/build/languageProcessing/languages/ar/config/prefixedFunctionWords.js +2 -8
  264. package/build/languageProcessing/languages/ar/config/prefixedFunctionWords.js.map +1 -1
  265. package/build/languageProcessing/languages/ar/config/transitionWords.js +4 -10
  266. package/build/languageProcessing/languages/ar/config/transitionWords.js.map +1 -1
  267. package/build/languageProcessing/languages/ar/config/twoPartTransitionWords.js +2 -7
  268. package/build/languageProcessing/languages/ar/config/twoPartTransitionWords.js.map +1 -1
  269. package/build/languageProcessing/languages/ar/helpers/createBasicWordForms.js +6 -11
  270. package/build/languageProcessing/languages/ar/helpers/createBasicWordForms.js.map +1 -1
  271. package/build/languageProcessing/languages/ar/helpers/getStemmer.js +8 -14
  272. package/build/languageProcessing/languages/ar/helpers/getStemmer.js.map +1 -1
  273. package/build/languageProcessing/languages/ar/helpers/internal/stem.js +1 -7
  274. package/build/languageProcessing/languages/ar/helpers/internal/stem.js.map +1 -1
  275. package/build/languageProcessing/languages/ar/helpers/isPassiveSentence.js +5 -12
  276. package/build/languageProcessing/languages/ar/helpers/isPassiveSentence.js.map +1 -1
  277. package/build/languageProcessing/languages/ca/Researcher.js +11 -19
  278. package/build/languageProcessing/languages/ca/Researcher.js.map +1 -1
  279. package/build/languageProcessing/languages/ca/config/sentenceLength.js +1 -7
  280. package/build/languageProcessing/languages/ca/config/sentenceLength.js.map +1 -1
  281. package/build/languageProcessing/languages/ca/config/transitionWords.js +4 -10
  282. package/build/languageProcessing/languages/ca/config/transitionWords.js.map +1 -1
  283. package/build/languageProcessing/languages/ca/config/twoPartTransitionWords.js +2 -7
  284. package/build/languageProcessing/languages/ca/config/twoPartTransitionWords.js.map +1 -1
  285. package/build/languageProcessing/languages/ca/helpers/getStemmer.js +3 -9
  286. package/build/languageProcessing/languages/ca/helpers/getStemmer.js.map +1 -1
  287. package/build/languageProcessing/languages/cs/Researcher.js +17 -25
  288. package/build/languageProcessing/languages/cs/Researcher.js.map +1 -1
  289. package/build/languageProcessing/languages/cs/config/firstWordExceptions.js +1 -7
  290. package/build/languageProcessing/languages/cs/config/firstWordExceptions.js.map +1 -1
  291. package/build/languageProcessing/languages/cs/config/functionWords.js +4 -10
  292. package/build/languageProcessing/languages/cs/config/functionWords.js.map +1 -1
  293. package/build/languageProcessing/languages/cs/config/internal/passiveVoiceAuxiliaries.js +2 -8
  294. package/build/languageProcessing/languages/cs/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
  295. package/build/languageProcessing/languages/cs/config/internal/passiveVoiceEndings.js +2 -8
  296. package/build/languageProcessing/languages/cs/config/internal/passiveVoiceEndings.js.map +1 -1
  297. package/build/languageProcessing/languages/cs/config/stopWords.js +1 -7
  298. package/build/languageProcessing/languages/cs/config/stopWords.js.map +1 -1
  299. package/build/languageProcessing/languages/cs/config/transitionWords.js +4 -10
  300. package/build/languageProcessing/languages/cs/config/transitionWords.js.map +1 -1
  301. package/build/languageProcessing/languages/cs/config/twoPartTransitionWords.js +2 -7
  302. package/build/languageProcessing/languages/cs/config/twoPartTransitionWords.js.map +1 -1
  303. package/build/languageProcessing/languages/cs/helpers/getClauses.js +9 -16
  304. package/build/languageProcessing/languages/cs/helpers/getClauses.js.map +1 -1
  305. package/build/languageProcessing/languages/cs/helpers/getStemmer.js +8 -14
  306. package/build/languageProcessing/languages/cs/helpers/getStemmer.js.map +1 -1
  307. package/build/languageProcessing/languages/cs/helpers/internal/getParticiples.js +6 -12
  308. package/build/languageProcessing/languages/cs/helpers/internal/getParticiples.js.map +1 -1
  309. package/build/languageProcessing/languages/cs/helpers/internal/stem.js +1 -7
  310. package/build/languageProcessing/languages/cs/helpers/internal/stem.js.map +1 -1
  311. package/build/languageProcessing/languages/cs/values/Clause.js +5 -12
  312. package/build/languageProcessing/languages/cs/values/Clause.js.map +1 -1
  313. package/build/languageProcessing/languages/de/Researcher.js +27 -35
  314. package/build/languageProcessing/languages/de/Researcher.js.map +1 -1
  315. package/build/languageProcessing/languages/de/config/firstWordExceptions.js +1 -7
  316. package/build/languageProcessing/languages/de/config/firstWordExceptions.js.map +1 -1
  317. package/build/languageProcessing/languages/de/config/functionWords.js +11 -19
  318. package/build/languageProcessing/languages/de/config/functionWords.js.map +1 -1
  319. package/build/languageProcessing/languages/de/config/internal/exceptionsParticiplesActive.js +1 -7
  320. package/build/languageProcessing/languages/de/config/internal/exceptionsParticiplesActive.js.map +1 -1
  321. package/build/languageProcessing/languages/de/config/internal/passiveVoiceAuxiliaries.js +4 -10
  322. package/build/languageProcessing/languages/de/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
  323. package/build/languageProcessing/languages/de/config/internal/passiveVoiceIrregulars.js +1 -7
  324. package/build/languageProcessing/languages/de/config/internal/passiveVoiceIrregulars.js.map +1 -1
  325. package/build/languageProcessing/languages/de/config/internal/passiveVoiceRegex.js +1 -7
  326. package/build/languageProcessing/languages/de/config/internal/passiveVoiceRegex.js.map +1 -1
  327. package/build/languageProcessing/languages/de/config/keyphraseLength.js +1 -7
  328. package/build/languageProcessing/languages/de/config/keyphraseLength.js.map +1 -1
  329. package/build/languageProcessing/languages/de/config/stopWords.js +1 -7
  330. package/build/languageProcessing/languages/de/config/stopWords.js.map +1 -1
  331. package/build/languageProcessing/languages/de/config/transitionWords.js +4 -10
  332. package/build/languageProcessing/languages/de/config/transitionWords.js.map +1 -1
  333. package/build/languageProcessing/languages/de/config/twoPartTransitionWords.js +2 -7
  334. package/build/languageProcessing/languages/de/config/twoPartTransitionWords.js.map +1 -1
  335. package/build/languageProcessing/languages/de/config/wordComplexity.js +1 -7
  336. package/build/languageProcessing/languages/de/config/wordComplexity.js.map +1 -1
  337. package/build/languageProcessing/languages/de/helpers/calculateFleschReadingScore.js +3 -9
  338. package/build/languageProcessing/languages/de/helpers/calculateFleschReadingScore.js.map +1 -1
  339. package/build/languageProcessing/languages/de/helpers/checkIfWordIsComplex.js +1 -7
  340. package/build/languageProcessing/languages/de/helpers/checkIfWordIsComplex.js.map +1 -1
  341. package/build/languageProcessing/languages/de/helpers/checkIfWordIsFunction.js +3 -8
  342. package/build/languageProcessing/languages/de/helpers/checkIfWordIsFunction.js.map +1 -1
  343. package/build/languageProcessing/languages/de/helpers/getClauses.js +9 -16
  344. package/build/languageProcessing/languages/de/helpers/getClauses.js.map +1 -1
  345. package/build/languageProcessing/languages/de/helpers/getStemmer.js +8 -14
  346. package/build/languageProcessing/languages/de/helpers/getStemmer.js.map +1 -1
  347. package/build/languageProcessing/languages/de/helpers/internal/SentenceTokenizer.js +4 -11
  348. package/build/languageProcessing/languages/de/helpers/internal/SentenceTokenizer.js.map +1 -1
  349. package/build/languageProcessing/languages/de/helpers/internal/detectAndStemRegularParticiple.js +4 -10
  350. package/build/languageProcessing/languages/de/helpers/internal/detectAndStemRegularParticiple.js.map +1 -1
  351. package/build/languageProcessing/languages/de/helpers/internal/determineStem.js +10 -16
  352. package/build/languageProcessing/languages/de/helpers/internal/determineStem.js.map +1 -1
  353. package/build/languageProcessing/languages/de/helpers/internal/getParticiples.js +9 -16
  354. package/build/languageProcessing/languages/de/helpers/internal/getParticiples.js.map +1 -1
  355. package/build/languageProcessing/languages/de/helpers/internal/stem.js +1 -7
  356. package/build/languageProcessing/languages/de/helpers/internal/stem.js.map +1 -1
  357. package/build/languageProcessing/languages/de/helpers/memoizedSentenceTokenizer.js +4 -10
  358. package/build/languageProcessing/languages/de/helpers/memoizedSentenceTokenizer.js.map +1 -1
  359. package/build/languageProcessing/languages/de/values/Clause.js +11 -18
  360. package/build/languageProcessing/languages/de/values/Clause.js.map +1 -1
  361. package/build/languageProcessing/languages/el/Researcher.js +18 -26
  362. package/build/languageProcessing/languages/el/Researcher.js.map +1 -1
  363. package/build/languageProcessing/languages/el/config/firstWordExceptions.js +1 -7
  364. package/build/languageProcessing/languages/el/config/firstWordExceptions.js.map +1 -1
  365. package/build/languageProcessing/languages/el/config/functionWords.js +4 -10
  366. package/build/languageProcessing/languages/el/config/functionWords.js.map +1 -1
  367. package/build/languageProcessing/languages/el/config/internal/auxiliaries.js +1 -7
  368. package/build/languageProcessing/languages/el/config/internal/auxiliaries.js.map +1 -1
  369. package/build/languageProcessing/languages/el/config/internal/morphologicalPassiveSuffixes.js +1 -7
  370. package/build/languageProcessing/languages/el/config/internal/morphologicalPassiveSuffixes.js.map +1 -1
  371. package/build/languageProcessing/languages/el/config/internal/nonPassiveVerbStems.js +1 -7
  372. package/build/languageProcessing/languages/el/config/internal/nonPassiveVerbStems.js.map +1 -1
  373. package/build/languageProcessing/languages/el/config/stopWords.js +1 -7
  374. package/build/languageProcessing/languages/el/config/stopWords.js.map +1 -1
  375. package/build/languageProcessing/languages/el/config/transitionWords.js +4 -10
  376. package/build/languageProcessing/languages/el/config/transitionWords.js.map +1 -1
  377. package/build/languageProcessing/languages/el/config/twoPartTransitionWords.js +2 -7
  378. package/build/languageProcessing/languages/el/config/twoPartTransitionWords.js.map +1 -1
  379. package/build/languageProcessing/languages/el/helpers/getClauses.js +9 -16
  380. package/build/languageProcessing/languages/el/helpers/getClauses.js.map +1 -1
  381. package/build/languageProcessing/languages/el/helpers/getStemmer.js +7 -14
  382. package/build/languageProcessing/languages/el/helpers/getStemmer.js.map +1 -1
  383. package/build/languageProcessing/languages/el/helpers/internal/getParticiples.js +3 -9
  384. package/build/languageProcessing/languages/el/helpers/internal/getParticiples.js.map +1 -1
  385. package/build/languageProcessing/languages/el/helpers/internal/stem.js +4 -13
  386. package/build/languageProcessing/languages/el/helpers/internal/stem.js.map +1 -1
  387. package/build/languageProcessing/languages/el/helpers/isPassiveSentence.js +7 -14
  388. package/build/languageProcessing/languages/el/helpers/isPassiveSentence.js.map +1 -1
  389. package/build/languageProcessing/languages/el/values/Clause.js +6 -12
  390. package/build/languageProcessing/languages/el/values/Clause.js.map +1 -1
  391. package/build/languageProcessing/languages/en/Researcher.js +21 -29
  392. package/build/languageProcessing/languages/en/Researcher.js.map +1 -1
  393. package/build/languageProcessing/languages/en/config/abbreviations.js +1 -7
  394. package/build/languageProcessing/languages/en/config/abbreviations.js.map +1 -1
  395. package/build/languageProcessing/languages/en/config/firstWordExceptions.js +1 -7
  396. package/build/languageProcessing/languages/en/config/firstWordExceptions.js.map +1 -1
  397. package/build/languageProcessing/languages/en/config/functionWords.js +11 -18
  398. package/build/languageProcessing/languages/en/config/functionWords.js.map +1 -1
  399. package/build/languageProcessing/languages/en/config/internal/passiveVoiceAuxiliaries.js +6 -12
  400. package/build/languageProcessing/languages/en/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
  401. package/build/languageProcessing/languages/en/config/internal/passiveVoiceIrregulars.js +1 -7
  402. package/build/languageProcessing/languages/en/config/internal/passiveVoiceIrregulars.js.map +1 -1
  403. package/build/languageProcessing/languages/en/config/internal/passiveVoiceNonVerbEndingEd.js +1 -7
  404. package/build/languageProcessing/languages/en/config/internal/passiveVoiceNonVerbEndingEd.js.map +1 -1
  405. package/build/languageProcessing/languages/en/config/regularParticiplesRegex.js +1 -7
  406. package/build/languageProcessing/languages/en/config/regularParticiplesRegex.js.map +1 -1
  407. package/build/languageProcessing/languages/en/config/stopWords.js +1 -7
  408. package/build/languageProcessing/languages/en/config/stopWords.js.map +1 -1
  409. package/build/languageProcessing/languages/en/config/transitionWords.js +4 -10
  410. package/build/languageProcessing/languages/en/config/transitionWords.js.map +1 -1
  411. package/build/languageProcessing/languages/en/config/twoPartTransitionWords.js +2 -7
  412. package/build/languageProcessing/languages/en/config/twoPartTransitionWords.js.map +1 -1
  413. package/build/languageProcessing/languages/en/config/wordComplexity.js +1 -7
  414. package/build/languageProcessing/languages/en/config/wordComplexity.js.map +1 -1
  415. package/build/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js +3 -9
  416. package/build/languageProcessing/languages/en/helpers/calculateFleschReadingScore.js.map +1 -1
  417. package/build/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js +4 -10
  418. package/build/languageProcessing/languages/en/helpers/checkIfWordIsComplex.js.map +1 -1
  419. package/build/languageProcessing/languages/en/helpers/getClauses.js +15 -22
  420. package/build/languageProcessing/languages/en/helpers/getClauses.js.map +1 -1
  421. package/build/languageProcessing/languages/en/helpers/getStemmer.js +8 -14
  422. package/build/languageProcessing/languages/en/helpers/getStemmer.js.map +1 -1
  423. package/build/languageProcessing/languages/en/helpers/internal/determineStem.js +21 -32
  424. package/build/languageProcessing/languages/en/helpers/internal/determineStem.js.map +1 -1
  425. package/build/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js +6 -13
  426. package/build/languageProcessing/languages/en/helpers/internal/getAdjectiveStem.js.map +1 -1
  427. package/build/languageProcessing/languages/en/helpers/internal/getParticiples.js +8 -14
  428. package/build/languageProcessing/languages/en/helpers/internal/getParticiples.js.map +1 -1
  429. package/build/languageProcessing/languages/en/helpers/internal/getVerbStem.js +6 -16
  430. package/build/languageProcessing/languages/en/helpers/internal/getVerbStem.js.map +1 -1
  431. package/build/languageProcessing/languages/en/values/Clause.js +10 -17
  432. package/build/languageProcessing/languages/en/values/Clause.js.map +1 -1
  433. package/build/languageProcessing/languages/es/Researcher.js +23 -31
  434. package/build/languageProcessing/languages/es/Researcher.js.map +1 -1
  435. package/build/languageProcessing/languages/es/config/firstWordExceptions.js +1 -7
  436. package/build/languageProcessing/languages/es/config/firstWordExceptions.js.map +1 -1
  437. package/build/languageProcessing/languages/es/config/functionWords.js +11 -17
  438. package/build/languageProcessing/languages/es/config/functionWords.js.map +1 -1
  439. package/build/languageProcessing/languages/es/config/internal/passiveVoiceAuxiliaries.js +1 -7
  440. package/build/languageProcessing/languages/es/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
  441. package/build/languageProcessing/languages/es/config/internal/passiveVoiceParticiples.js +1 -7
  442. package/build/languageProcessing/languages/es/config/internal/passiveVoiceParticiples.js.map +1 -1
  443. package/build/languageProcessing/languages/es/config/sentenceLength.js +1 -7
  444. package/build/languageProcessing/languages/es/config/sentenceLength.js.map +1 -1
  445. package/build/languageProcessing/languages/es/config/stopWords.js +1 -7
  446. package/build/languageProcessing/languages/es/config/stopWords.js.map +1 -1
  447. package/build/languageProcessing/languages/es/config/transitionWords.js +4 -10
  448. package/build/languageProcessing/languages/es/config/transitionWords.js.map +1 -1
  449. package/build/languageProcessing/languages/es/config/twoPartTransitionWords.js +2 -7
  450. package/build/languageProcessing/languages/es/config/twoPartTransitionWords.js.map +1 -1
  451. package/build/languageProcessing/languages/es/config/wordComplexity.js +1 -7
  452. package/build/languageProcessing/languages/es/config/wordComplexity.js.map +1 -1
  453. package/build/languageProcessing/languages/es/helpers/calculateFleschReadingScore.js +3 -9
  454. package/build/languageProcessing/languages/es/helpers/calculateFleschReadingScore.js.map +1 -1
  455. package/build/languageProcessing/languages/es/helpers/checkIfWordIsComplex.js +1 -7
  456. package/build/languageProcessing/languages/es/helpers/checkIfWordIsComplex.js.map +1 -1
  457. package/build/languageProcessing/languages/es/helpers/getClauses.js +10 -17
  458. package/build/languageProcessing/languages/es/helpers/getClauses.js.map +1 -1
  459. package/build/languageProcessing/languages/es/helpers/getStemmer.js +8 -14
  460. package/build/languageProcessing/languages/es/helpers/getStemmer.js.map +1 -1
  461. package/build/languageProcessing/languages/es/helpers/internal/checkVerbStemModifications.js +7 -13
  462. package/build/languageProcessing/languages/es/helpers/internal/checkVerbStemModifications.js.map +1 -1
  463. package/build/languageProcessing/languages/es/helpers/internal/getParticiples.js +6 -12
  464. package/build/languageProcessing/languages/es/helpers/internal/getParticiples.js.map +1 -1
  465. package/build/languageProcessing/languages/es/helpers/internal/stem.js +5 -13
  466. package/build/languageProcessing/languages/es/helpers/internal/stem.js.map +1 -1
  467. package/build/languageProcessing/languages/es/values/Clause.js +7 -14
  468. package/build/languageProcessing/languages/es/values/Clause.js.map +1 -1
  469. package/build/languageProcessing/languages/fa/Researcher.js +19 -27
  470. package/build/languageProcessing/languages/fa/Researcher.js.map +1 -1
  471. package/build/languageProcessing/languages/fa/config/firstWordExceptions.js +1 -7
  472. package/build/languageProcessing/languages/fa/config/firstWordExceptions.js.map +1 -1
  473. package/build/languageProcessing/languages/fa/config/functionWords.js +4 -10
  474. package/build/languageProcessing/languages/fa/config/functionWords.js.map +1 -1
  475. package/build/languageProcessing/languages/fa/config/internal/participles.js +1 -7
  476. package/build/languageProcessing/languages/fa/config/internal/participles.js.map +1 -1
  477. package/build/languageProcessing/languages/fa/config/sentenceLength.js +1 -7
  478. package/build/languageProcessing/languages/fa/config/sentenceLength.js.map +1 -1
  479. package/build/languageProcessing/languages/fa/config/transitionWords.js +4 -10
  480. package/build/languageProcessing/languages/fa/config/transitionWords.js.map +1 -1
  481. package/build/languageProcessing/languages/fa/config/twoPartTransitionWords.js +2 -7
  482. package/build/languageProcessing/languages/fa/config/twoPartTransitionWords.js.map +1 -1
  483. package/build/languageProcessing/languages/fa/helpers/createBasicWordForms.js +3 -9
  484. package/build/languageProcessing/languages/fa/helpers/createBasicWordForms.js.map +1 -1
  485. package/build/languageProcessing/languages/fa/helpers/getStemmer.js +3 -9
  486. package/build/languageProcessing/languages/fa/helpers/getStemmer.js.map +1 -1
  487. package/build/languageProcessing/languages/fa/helpers/isPassiveSentence.js +6 -12
  488. package/build/languageProcessing/languages/fa/helpers/isPassiveSentence.js.map +1 -1
  489. package/build/languageProcessing/languages/fr/Researcher.js +21 -29
  490. package/build/languageProcessing/languages/fr/Researcher.js.map +1 -1
  491. package/build/languageProcessing/languages/fr/config/firstWordExceptions.js +1 -7
  492. package/build/languageProcessing/languages/fr/config/firstWordExceptions.js.map +1 -1
  493. package/build/languageProcessing/languages/fr/config/functionWords.js +11 -17
  494. package/build/languageProcessing/languages/fr/config/functionWords.js.map +1 -1
  495. package/build/languageProcessing/languages/fr/config/internal/exceptionsParticiplesActive.js +4 -9
  496. package/build/languageProcessing/languages/fr/config/internal/exceptionsParticiplesActive.js.map +1 -1
  497. package/build/languageProcessing/languages/fr/config/internal/passiveVoiceAuxiliaries.js +1 -7
  498. package/build/languageProcessing/languages/fr/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
  499. package/build/languageProcessing/languages/fr/config/internal/passiveVoiceIrregulars.js +4 -9
  500. package/build/languageProcessing/languages/fr/config/internal/passiveVoiceIrregulars.js.map +1 -1
  501. package/build/languageProcessing/languages/fr/config/stopWords.js +1 -7
  502. package/build/languageProcessing/languages/fr/config/stopWords.js.map +1 -1
  503. package/build/languageProcessing/languages/fr/config/transitionWords.js +4 -10
  504. package/build/languageProcessing/languages/fr/config/transitionWords.js.map +1 -1
  505. package/build/languageProcessing/languages/fr/config/twoPartTransitionWords.js +2 -7
  506. package/build/languageProcessing/languages/fr/config/twoPartTransitionWords.js.map +1 -1
  507. package/build/languageProcessing/languages/fr/config/wordComplexity.js +1 -7
  508. package/build/languageProcessing/languages/fr/config/wordComplexity.js.map +1 -1
  509. package/build/languageProcessing/languages/fr/helpers/calculateFleschReadingScore.js +3 -9
  510. package/build/languageProcessing/languages/fr/helpers/calculateFleschReadingScore.js.map +1 -1
  511. package/build/languageProcessing/languages/fr/helpers/checkIfWordIsComplex.js +3 -9
  512. package/build/languageProcessing/languages/fr/helpers/checkIfWordIsComplex.js.map +1 -1
  513. package/build/languageProcessing/languages/fr/helpers/getClauses.js +10 -17
  514. package/build/languageProcessing/languages/fr/helpers/getClauses.js.map +1 -1
  515. package/build/languageProcessing/languages/fr/helpers/getStemmer.js +8 -14
  516. package/build/languageProcessing/languages/fr/helpers/getStemmer.js.map +1 -1
  517. package/build/languageProcessing/languages/fr/helpers/internal/getParticiples.js +11 -16
  518. package/build/languageProcessing/languages/fr/helpers/internal/getParticiples.js.map +1 -1
  519. package/build/languageProcessing/languages/fr/helpers/internal/stem.js +3 -10
  520. package/build/languageProcessing/languages/fr/helpers/internal/stem.js.map +1 -1
  521. package/build/languageProcessing/languages/fr/values/Clause.js +14 -20
  522. package/build/languageProcessing/languages/fr/values/Clause.js.map +1 -1
  523. package/build/languageProcessing/languages/he/Researcher.js +21 -29
  524. package/build/languageProcessing/languages/he/Researcher.js.map +1 -1
  525. package/build/languageProcessing/languages/he/config/firstWordExceptions.js +1 -7
  526. package/build/languageProcessing/languages/he/config/firstWordExceptions.js.map +1 -1
  527. package/build/languageProcessing/languages/he/config/functionWords.js +4 -11
  528. package/build/languageProcessing/languages/he/config/functionWords.js.map +1 -1
  529. package/build/languageProcessing/languages/he/config/internal/regularRootsHufal.js +1 -7
  530. package/build/languageProcessing/languages/he/config/internal/regularRootsHufal.js.map +1 -1
  531. package/build/languageProcessing/languages/he/config/internal/regularRootsNifal.js +1 -7
  532. package/build/languageProcessing/languages/he/config/internal/regularRootsNifal.js.map +1 -1
  533. package/build/languageProcessing/languages/he/config/internal/regularRootsPual.js +1 -7
  534. package/build/languageProcessing/languages/he/config/internal/regularRootsPual.js.map +1 -1
  535. package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsHufal.js +1 -7
  536. package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsHufal.js.map +1 -1
  537. package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsNifal.js +1 -7
  538. package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsNifal.js.map +1 -1
  539. package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsPual.js +1 -7
  540. package/build/languageProcessing/languages/he/config/passiveVoice/regularRootsPual.js.map +1 -1
  541. package/build/languageProcessing/languages/he/config/prefixedFunctionWords.js +2 -8
  542. package/build/languageProcessing/languages/he/config/prefixedFunctionWords.js.map +1 -1
  543. package/build/languageProcessing/languages/he/config/sentenceLength.js +1 -7
  544. package/build/languageProcessing/languages/he/config/sentenceLength.js.map +1 -1
  545. package/build/languageProcessing/languages/he/config/transitionWords.js +4 -10
  546. package/build/languageProcessing/languages/he/config/transitionWords.js.map +1 -1
  547. package/build/languageProcessing/languages/he/config/twoPartTransitionWords.js +2 -7
  548. package/build/languageProcessing/languages/he/config/twoPartTransitionWords.js.map +1 -1
  549. package/build/languageProcessing/languages/he/helpers/createBasicWordForms.js +6 -11
  550. package/build/languageProcessing/languages/he/helpers/createBasicWordForms.js.map +1 -1
  551. package/build/languageProcessing/languages/he/helpers/getStemmer.js +8 -14
  552. package/build/languageProcessing/languages/he/helpers/getStemmer.js.map +1 -1
  553. package/build/languageProcessing/languages/he/helpers/internal/stem.js +1 -7
  554. package/build/languageProcessing/languages/he/helpers/internal/stem.js.map +1 -1
  555. package/build/languageProcessing/languages/he/helpers/isPassiveSentence.js +10 -16
  556. package/build/languageProcessing/languages/he/helpers/isPassiveSentence.js.map +1 -1
  557. package/build/languageProcessing/languages/he/helpers/stem.js +1 -7
  558. package/build/languageProcessing/languages/he/helpers/stem.js.map +1 -1
  559. package/build/languageProcessing/languages/hu/Researcher.js +19 -27
  560. package/build/languageProcessing/languages/hu/Researcher.js.map +1 -1
  561. package/build/languageProcessing/languages/hu/config/firstWordExceptions.js +1 -7
  562. package/build/languageProcessing/languages/hu/config/firstWordExceptions.js.map +1 -1
  563. package/build/languageProcessing/languages/hu/config/functionWords.js +4 -10
  564. package/build/languageProcessing/languages/hu/config/functionWords.js.map +1 -1
  565. package/build/languageProcessing/languages/hu/config/internal/auxiliaries.js +1 -7
  566. package/build/languageProcessing/languages/hu/config/internal/auxiliaries.js.map +1 -1
  567. package/build/languageProcessing/languages/hu/config/internal/morphologicalPassiveAffixes.js +3 -9
  568. package/build/languageProcessing/languages/hu/config/internal/morphologicalPassiveAffixes.js.map +1 -1
  569. package/build/languageProcessing/languages/hu/config/internal/nonPassivesInVaAndVe.js +2 -7
  570. package/build/languageProcessing/languages/hu/config/internal/nonPassivesInVaAndVe.js.map +1 -1
  571. package/build/languageProcessing/languages/hu/config/internal/odikVerbs.js +1 -7
  572. package/build/languageProcessing/languages/hu/config/internal/odikVerbs.js.map +1 -1
  573. package/build/languageProcessing/languages/hu/config/internal/participles.js +2 -7
  574. package/build/languageProcessing/languages/hu/config/internal/participles.js.map +1 -1
  575. package/build/languageProcessing/languages/hu/config/stopWords.js +2 -7
  576. package/build/languageProcessing/languages/hu/config/stopWords.js.map +1 -1
  577. package/build/languageProcessing/languages/hu/config/transitionWords.js +4 -10
  578. package/build/languageProcessing/languages/hu/config/transitionWords.js.map +1 -1
  579. package/build/languageProcessing/languages/hu/config/twoPartTransitionWords.js +2 -7
  580. package/build/languageProcessing/languages/hu/config/twoPartTransitionWords.js.map +1 -1
  581. package/build/languageProcessing/languages/hu/helpers/getClauses.js +9 -16
  582. package/build/languageProcessing/languages/hu/helpers/getClauses.js.map +1 -1
  583. package/build/languageProcessing/languages/hu/helpers/getStemmer.js +8 -14
  584. package/build/languageProcessing/languages/hu/helpers/getStemmer.js.map +1 -1
  585. package/build/languageProcessing/languages/hu/helpers/internal/getParticiples.js +6 -12
  586. package/build/languageProcessing/languages/hu/helpers/internal/getParticiples.js.map +1 -1
  587. package/build/languageProcessing/languages/hu/helpers/internal/stem.js +1 -7
  588. package/build/languageProcessing/languages/hu/helpers/internal/stem.js.map +1 -1
  589. package/build/languageProcessing/languages/hu/helpers/isPassiveSentence.js +9 -15
  590. package/build/languageProcessing/languages/hu/helpers/isPassiveSentence.js.map +1 -1
  591. package/build/languageProcessing/languages/hu/values/Clause.js +8 -14
  592. package/build/languageProcessing/languages/hu/values/Clause.js.map +1 -1
  593. package/build/languageProcessing/languages/id/Researcher.js +17 -25
  594. package/build/languageProcessing/languages/id/Researcher.js.map +1 -1
  595. package/build/languageProcessing/languages/id/config/firstWordExceptions.js +1 -7
  596. package/build/languageProcessing/languages/id/config/firstWordExceptions.js.map +1 -1
  597. package/build/languageProcessing/languages/id/config/functionWords.js +8 -16
  598. package/build/languageProcessing/languages/id/config/functionWords.js.map +1 -1
  599. package/build/languageProcessing/languages/id/config/internal/nonPassiveVerbsStartingDi.js +1 -7
  600. package/build/languageProcessing/languages/id/config/internal/nonPassiveVerbsStartingDi.js.map +1 -1
  601. package/build/languageProcessing/languages/id/config/transitionWords.js +4 -10
  602. package/build/languageProcessing/languages/id/config/transitionWords.js.map +1 -1
  603. package/build/languageProcessing/languages/id/config/twoPartTransitionWords.js +2 -7
  604. package/build/languageProcessing/languages/id/config/twoPartTransitionWords.js.map +1 -1
  605. package/build/languageProcessing/languages/id/helpers/getStemmer.js +8 -14
  606. package/build/languageProcessing/languages/id/helpers/getStemmer.js.map +1 -1
  607. package/build/languageProcessing/languages/id/helpers/internal/stem.js +29 -34
  608. package/build/languageProcessing/languages/id/helpers/internal/stem.js.map +1 -1
  609. package/build/languageProcessing/languages/id/helpers/internal/stemHelpers.js +5 -13
  610. package/build/languageProcessing/languages/id/helpers/internal/stemHelpers.js.map +1 -1
  611. package/build/languageProcessing/languages/id/helpers/isPassiveSentence.js +5 -12
  612. package/build/languageProcessing/languages/id/helpers/isPassiveSentence.js.map +1 -1
  613. package/build/languageProcessing/languages/id/helpers/splitIntoTokensCustom.js +3 -9
  614. package/build/languageProcessing/languages/id/helpers/splitIntoTokensCustom.js.map +1 -1
  615. package/build/languageProcessing/languages/it/Researcher.js +23 -31
  616. package/build/languageProcessing/languages/it/Researcher.js.map +1 -1
  617. package/build/languageProcessing/languages/it/config/firstWordExceptions.js +1 -7
  618. package/build/languageProcessing/languages/it/config/firstWordExceptions.js.map +1 -1
  619. package/build/languageProcessing/languages/it/config/functionWords.js +11 -17
  620. package/build/languageProcessing/languages/it/config/functionWords.js.map +1 -1
  621. package/build/languageProcessing/languages/it/config/internal/passiveVoiceAuxiliaries.js +1 -7
  622. package/build/languageProcessing/languages/it/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
  623. package/build/languageProcessing/languages/it/config/internal/passiveVoiceParticiples.js +1 -7
  624. package/build/languageProcessing/languages/it/config/internal/passiveVoiceParticiples.js.map +1 -1
  625. package/build/languageProcessing/languages/it/config/sentenceLength.js +1 -7
  626. package/build/languageProcessing/languages/it/config/sentenceLength.js.map +1 -1
  627. package/build/languageProcessing/languages/it/config/stopWords.js +1 -7
  628. package/build/languageProcessing/languages/it/config/stopWords.js.map +1 -1
  629. package/build/languageProcessing/languages/it/config/transitionWords.js +4 -10
  630. package/build/languageProcessing/languages/it/config/transitionWords.js.map +1 -1
  631. package/build/languageProcessing/languages/it/config/twoPartTransitionWords.js +1 -7
  632. package/build/languageProcessing/languages/it/config/twoPartTransitionWords.js.map +1 -1
  633. package/build/languageProcessing/languages/it/helpers/calculateFleschReadingScore.js +3 -9
  634. package/build/languageProcessing/languages/it/helpers/calculateFleschReadingScore.js.map +1 -1
  635. package/build/languageProcessing/languages/it/helpers/getClauses.js +10 -17
  636. package/build/languageProcessing/languages/it/helpers/getClauses.js.map +1 -1
  637. package/build/languageProcessing/languages/it/helpers/getStemmer.js +8 -14
  638. package/build/languageProcessing/languages/it/helpers/getStemmer.js.map +1 -1
  639. package/build/languageProcessing/languages/it/helpers/internal/getParticiples.js +6 -12
  640. package/build/languageProcessing/languages/it/helpers/internal/getParticiples.js.map +1 -1
  641. package/build/languageProcessing/languages/it/helpers/internal/stem.js +3 -9
  642. package/build/languageProcessing/languages/it/helpers/internal/stem.js.map +1 -1
  643. package/build/languageProcessing/languages/it/values/Clause.js +7 -14
  644. package/build/languageProcessing/languages/it/values/Clause.js.map +1 -1
  645. package/build/languageProcessing/languages/ja/Researcher.js +51 -59
  646. package/build/languageProcessing/languages/ja/Researcher.js.map +1 -1
  647. package/build/languageProcessing/languages/ja/config/assessmentApplicabilityCharacterCount.js +1 -7
  648. package/build/languageProcessing/languages/ja/config/assessmentApplicabilityCharacterCount.js.map +1 -1
  649. package/build/languageProcessing/languages/ja/config/firstWordExceptions.js +1 -7
  650. package/build/languageProcessing/languages/ja/config/firstWordExceptions.js.map +1 -1
  651. package/build/languageProcessing/languages/ja/config/functionWords.js +1 -7
  652. package/build/languageProcessing/languages/ja/config/functionWords.js.map +1 -1
  653. package/build/languageProcessing/languages/ja/config/keyphraseLength.js +1 -7
  654. package/build/languageProcessing/languages/ja/config/keyphraseLength.js.map +1 -1
  655. package/build/languageProcessing/languages/ja/config/metaDescriptionLength.js +1 -7
  656. package/build/languageProcessing/languages/ja/config/metaDescriptionLength.js.map +1 -1
  657. package/build/languageProcessing/languages/ja/config/paragraphLength.js +1 -7
  658. package/build/languageProcessing/languages/ja/config/paragraphLength.js.map +1 -1
  659. package/build/languageProcessing/languages/ja/config/sentenceLength.js +1 -7
  660. package/build/languageProcessing/languages/ja/config/sentenceLength.js.map +1 -1
  661. package/build/languageProcessing/languages/ja/config/subheadingsTooLong.js +1 -7
  662. package/build/languageProcessing/languages/ja/config/subheadingsTooLong.js.map +1 -1
  663. package/build/languageProcessing/languages/ja/config/textLength.js +1 -7
  664. package/build/languageProcessing/languages/ja/config/textLength.js.map +1 -1
  665. package/build/languageProcessing/languages/ja/config/topicLength.js +1 -7
  666. package/build/languageProcessing/languages/ja/config/topicLength.js.map +1 -1
  667. package/build/languageProcessing/languages/ja/config/transitionWords.js +2 -7
  668. package/build/languageProcessing/languages/ja/config/transitionWords.js.map +1 -1
  669. package/build/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js +16 -22
  670. package/build/languageProcessing/languages/ja/customResearches/findKeyphraseInSEOTitle.js.map +1 -1
  671. package/build/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js +5 -11
  672. package/build/languageProcessing/languages/ja/customResearches/getKeyphraseLength.js.map +1 -1
  673. package/build/languageProcessing/languages/ja/customResearches/getWordForms.js +11 -17
  674. package/build/languageProcessing/languages/ja/customResearches/getWordForms.js.map +1 -1
  675. package/build/languageProcessing/languages/ja/customResearches/textLength.js +3 -9
  676. package/build/languageProcessing/languages/ja/customResearches/textLength.js.map +1 -1
  677. package/build/languageProcessing/languages/ja/helpers/countCharacters.js +6 -12
  678. package/build/languageProcessing/languages/ja/helpers/countCharacters.js.map +1 -1
  679. package/build/languageProcessing/languages/ja/helpers/customGetStemmer.js +8 -14
  680. package/build/languageProcessing/languages/ja/helpers/customGetStemmer.js.map +1 -1
  681. package/build/languageProcessing/languages/ja/helpers/getContentWords.js +5 -11
  682. package/build/languageProcessing/languages/ja/helpers/getContentWords.js.map +1 -1
  683. package/build/languageProcessing/languages/ja/helpers/getWords.js +8 -15
  684. package/build/languageProcessing/languages/ja/helpers/getWords.js.map +1 -1
  685. package/build/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js +6 -13
  686. package/build/languageProcessing/languages/ja/helpers/internal/SentenceTokenizer.js.map +1 -1
  687. package/build/languageProcessing/languages/ja/helpers/internal/createWordForms.js +4 -9
  688. package/build/languageProcessing/languages/ja/helpers/internal/createWordForms.js.map +1 -1
  689. package/build/languageProcessing/languages/ja/helpers/internal/determineStem.js +3 -9
  690. package/build/languageProcessing/languages/ja/helpers/internal/determineStem.js.map +1 -1
  691. package/build/languageProcessing/languages/ja/helpers/matchTextWithWord.js +7 -13
  692. package/build/languageProcessing/languages/ja/helpers/matchTextWithWord.js.map +1 -1
  693. package/build/languageProcessing/languages/ja/helpers/matchTransitionWords.js +3 -9
  694. package/build/languageProcessing/languages/ja/helpers/matchTransitionWords.js.map +1 -1
  695. package/build/languageProcessing/languages/ja/helpers/memoizedSentenceTokenizer.js +4 -10
  696. package/build/languageProcessing/languages/ja/helpers/memoizedSentenceTokenizer.js.map +1 -1
  697. package/build/languageProcessing/languages/ja/helpers/splitIntoTokensCustom.js +5 -11
  698. package/build/languageProcessing/languages/ja/helpers/splitIntoTokensCustom.js.map +1 -1
  699. package/build/languageProcessing/languages/ja/helpers/wordsCharacterCount.js +1 -7
  700. package/build/languageProcessing/languages/ja/helpers/wordsCharacterCount.js.map +1 -1
  701. package/build/languageProcessing/languages/nb/Researcher.js +17 -25
  702. package/build/languageProcessing/languages/nb/Researcher.js.map +1 -1
  703. package/build/languageProcessing/languages/nb/config/firstWordExceptions.js +1 -7
  704. package/build/languageProcessing/languages/nb/config/firstWordExceptions.js.map +1 -1
  705. package/build/languageProcessing/languages/nb/config/functionWords.js +5 -11
  706. package/build/languageProcessing/languages/nb/config/functionWords.js.map +1 -1
  707. package/build/languageProcessing/languages/nb/config/internal/participles.js +2 -7
  708. package/build/languageProcessing/languages/nb/config/internal/participles.js.map +1 -1
  709. package/build/languageProcessing/languages/nb/config/internal/passiveVoiceAuxiliaries.js +1 -7
  710. package/build/languageProcessing/languages/nb/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
  711. package/build/languageProcessing/languages/nb/config/stopWords.js +1 -7
  712. package/build/languageProcessing/languages/nb/config/stopWords.js.map +1 -1
  713. package/build/languageProcessing/languages/nb/config/transitionWords.js +4 -10
  714. package/build/languageProcessing/languages/nb/config/transitionWords.js.map +1 -1
  715. package/build/languageProcessing/languages/nb/config/twoPartTransitionWords.js +2 -7
  716. package/build/languageProcessing/languages/nb/config/twoPartTransitionWords.js.map +1 -1
  717. package/build/languageProcessing/languages/nb/helpers/getClauses.js +11 -18
  718. package/build/languageProcessing/languages/nb/helpers/getClauses.js.map +1 -1
  719. package/build/languageProcessing/languages/nb/helpers/getStemmer.js +8 -14
  720. package/build/languageProcessing/languages/nb/helpers/getStemmer.js.map +1 -1
  721. package/build/languageProcessing/languages/nb/helpers/internal/getParticiples.js +8 -14
  722. package/build/languageProcessing/languages/nb/helpers/internal/getParticiples.js.map +1 -1
  723. package/build/languageProcessing/languages/nb/helpers/internal/stem.js +1 -7
  724. package/build/languageProcessing/languages/nb/helpers/internal/stem.js.map +1 -1
  725. package/build/languageProcessing/languages/nb/values/Clause.js +8 -14
  726. package/build/languageProcessing/languages/nb/values/Clause.js.map +1 -1
  727. package/build/languageProcessing/languages/nl/Researcher.js +23 -31
  728. package/build/languageProcessing/languages/nl/Researcher.js.map +1 -1
  729. package/build/languageProcessing/languages/nl/config/firstWordExceptions.js +1 -7
  730. package/build/languageProcessing/languages/nl/config/firstWordExceptions.js.map +1 -1
  731. package/build/languageProcessing/languages/nl/config/functionWords.js +10 -16
  732. package/build/languageProcessing/languages/nl/config/functionWords.js.map +1 -1
  733. package/build/languageProcessing/languages/nl/config/internal/nonParticiples.js +1 -7
  734. package/build/languageProcessing/languages/nl/config/internal/nonParticiples.js.map +1 -1
  735. package/build/languageProcessing/languages/nl/config/internal/passiveVoiceAuxiliaries.js +1 -7
  736. package/build/languageProcessing/languages/nl/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
  737. package/build/languageProcessing/languages/nl/config/internal/passiveVoiceIrregulars.js +1 -7
  738. package/build/languageProcessing/languages/nl/config/internal/passiveVoiceIrregulars.js.map +1 -1
  739. package/build/languageProcessing/languages/nl/config/keyphraseLength.js +1 -7
  740. package/build/languageProcessing/languages/nl/config/keyphraseLength.js.map +1 -1
  741. package/build/languageProcessing/languages/nl/config/stopWords.js +1 -7
  742. package/build/languageProcessing/languages/nl/config/stopWords.js.map +1 -1
  743. package/build/languageProcessing/languages/nl/config/transitionWords.js +4 -10
  744. package/build/languageProcessing/languages/nl/config/transitionWords.js.map +1 -1
  745. package/build/languageProcessing/languages/nl/config/twoPartTransitionWords.js +1 -7
  746. package/build/languageProcessing/languages/nl/config/twoPartTransitionWords.js.map +1 -1
  747. package/build/languageProcessing/languages/nl/helpers/calculateFleschReadingScore.js +3 -9
  748. package/build/languageProcessing/languages/nl/helpers/calculateFleschReadingScore.js.map +1 -1
  749. package/build/languageProcessing/languages/nl/helpers/getClauses.js +9 -16
  750. package/build/languageProcessing/languages/nl/helpers/getClauses.js.map +1 -1
  751. package/build/languageProcessing/languages/nl/helpers/getStemmer.js +8 -14
  752. package/build/languageProcessing/languages/nl/helpers/getStemmer.js.map +1 -1
  753. package/build/languageProcessing/languages/nl/helpers/internal/checkExceptionsWithFullForms.js +7 -13
  754. package/build/languageProcessing/languages/nl/helpers/internal/checkExceptionsWithFullForms.js.map +1 -1
  755. package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemRegularParticiple.js +8 -14
  756. package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemRegularParticiple.js.map +1 -1
  757. package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemSuffixes.js +10 -15
  758. package/build/languageProcessing/languages/nl/helpers/internal/detectAndStemSuffixes.js.map +1 -1
  759. package/build/languageProcessing/languages/nl/helpers/internal/determineStem.js +10 -16
  760. package/build/languageProcessing/languages/nl/helpers/internal/determineStem.js.map +1 -1
  761. package/build/languageProcessing/languages/nl/helpers/internal/getParticiples.js +7 -13
  762. package/build/languageProcessing/languages/nl/helpers/internal/getParticiples.js.map +1 -1
  763. package/build/languageProcessing/languages/nl/helpers/internal/getStemWordsWithTAndDEnding.js +7 -12
  764. package/build/languageProcessing/languages/nl/helpers/internal/getStemWordsWithTAndDEnding.js.map +1 -1
  765. package/build/languageProcessing/languages/nl/helpers/internal/stem.js +17 -23
  766. package/build/languageProcessing/languages/nl/helpers/internal/stem.js.map +1 -1
  767. package/build/languageProcessing/languages/nl/helpers/internal/stemModificationHelpers.js +4 -11
  768. package/build/languageProcessing/languages/nl/helpers/internal/stemModificationHelpers.js.map +1 -1
  769. package/build/languageProcessing/languages/nl/helpers/internal/stemTOrDFromEndOfWord.js +8 -14
  770. package/build/languageProcessing/languages/nl/helpers/internal/stemTOrDFromEndOfWord.js.map +1 -1
  771. package/build/languageProcessing/languages/nl/values/Clause.js +10 -16
  772. package/build/languageProcessing/languages/nl/values/Clause.js.map +1 -1
  773. package/build/languageProcessing/languages/pl/Researcher.js +19 -27
  774. package/build/languageProcessing/languages/pl/Researcher.js.map +1 -1
  775. package/build/languageProcessing/languages/pl/config/firstWordExceptions.js +1 -7
  776. package/build/languageProcessing/languages/pl/config/firstWordExceptions.js.map +1 -1
  777. package/build/languageProcessing/languages/pl/config/functionWords.js +9 -16
  778. package/build/languageProcessing/languages/pl/config/functionWords.js.map +1 -1
  779. package/build/languageProcessing/languages/pl/config/internal/auxiliaries.js +1 -7
  780. package/build/languageProcessing/languages/pl/config/internal/auxiliaries.js.map +1 -1
  781. package/build/languageProcessing/languages/pl/config/internal/participles.js +1 -7
  782. package/build/languageProcessing/languages/pl/config/internal/participles.js.map +1 -1
  783. package/build/languageProcessing/languages/pl/config/sentenceLength.js +1 -7
  784. package/build/languageProcessing/languages/pl/config/sentenceLength.js.map +1 -1
  785. package/build/languageProcessing/languages/pl/config/stopWords.js +1 -7
  786. package/build/languageProcessing/languages/pl/config/stopWords.js.map +1 -1
  787. package/build/languageProcessing/languages/pl/config/transitionWords.js +4 -10
  788. package/build/languageProcessing/languages/pl/config/transitionWords.js.map +1 -1
  789. package/build/languageProcessing/languages/pl/config/twoPartTransitionWords.js +2 -7
  790. package/build/languageProcessing/languages/pl/config/twoPartTransitionWords.js.map +1 -1
  791. package/build/languageProcessing/languages/pl/helpers/getClauses.js +9 -16
  792. package/build/languageProcessing/languages/pl/helpers/getClauses.js.map +1 -1
  793. package/build/languageProcessing/languages/pl/helpers/getStemmer.js +8 -14
  794. package/build/languageProcessing/languages/pl/helpers/getStemmer.js.map +1 -1
  795. package/build/languageProcessing/languages/pl/helpers/internal/getParticiples.js +7 -13
  796. package/build/languageProcessing/languages/pl/helpers/internal/getParticiples.js.map +1 -1
  797. package/build/languageProcessing/languages/pl/helpers/internal/stem.js +1 -7
  798. package/build/languageProcessing/languages/pl/helpers/internal/stem.js.map +1 -1
  799. package/build/languageProcessing/languages/pl/values/Clause.js +8 -14
  800. package/build/languageProcessing/languages/pl/values/Clause.js.map +1 -1
  801. package/build/languageProcessing/languages/pt/Researcher.js +23 -31
  802. package/build/languageProcessing/languages/pt/Researcher.js.map +1 -1
  803. package/build/languageProcessing/languages/pt/config/firstWordExceptions.js +1 -7
  804. package/build/languageProcessing/languages/pt/config/firstWordExceptions.js.map +1 -1
  805. package/build/languageProcessing/languages/pt/config/functionWords.js +10 -16
  806. package/build/languageProcessing/languages/pt/config/functionWords.js.map +1 -1
  807. package/build/languageProcessing/languages/pt/config/internal/passiveVoiceAuxiliaries.js +1 -7
  808. package/build/languageProcessing/languages/pt/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
  809. package/build/languageProcessing/languages/pt/config/internal/passiveVoiceParticiples.js +1 -7
  810. package/build/languageProcessing/languages/pt/config/internal/passiveVoiceParticiples.js.map +1 -1
  811. package/build/languageProcessing/languages/pt/config/sentenceLength.js +1 -7
  812. package/build/languageProcessing/languages/pt/config/sentenceLength.js.map +1 -1
  813. package/build/languageProcessing/languages/pt/config/stopWords.js +1 -7
  814. package/build/languageProcessing/languages/pt/config/stopWords.js.map +1 -1
  815. package/build/languageProcessing/languages/pt/config/transitionWords.js +4 -10
  816. package/build/languageProcessing/languages/pt/config/transitionWords.js.map +1 -1
  817. package/build/languageProcessing/languages/pt/config/twoPartTransitionWords.js +1 -7
  818. package/build/languageProcessing/languages/pt/config/twoPartTransitionWords.js.map +1 -1
  819. package/build/languageProcessing/languages/pt/helpers/calculateFleschReadingScore.js +3 -9
  820. package/build/languageProcessing/languages/pt/helpers/calculateFleschReadingScore.js.map +1 -1
  821. package/build/languageProcessing/languages/pt/helpers/getClauses.js +10 -17
  822. package/build/languageProcessing/languages/pt/helpers/getClauses.js.map +1 -1
  823. package/build/languageProcessing/languages/pt/helpers/getStemmer.js +8 -14
  824. package/build/languageProcessing/languages/pt/helpers/getStemmer.js.map +1 -1
  825. package/build/languageProcessing/languages/pt/helpers/internal/getParticiples.js +6 -12
  826. package/build/languageProcessing/languages/pt/helpers/internal/getParticiples.js.map +1 -1
  827. package/build/languageProcessing/languages/pt/helpers/internal/stem.js +3 -9
  828. package/build/languageProcessing/languages/pt/helpers/internal/stem.js.map +1 -1
  829. package/build/languageProcessing/languages/pt/values/Clause.js +7 -14
  830. package/build/languageProcessing/languages/pt/values/Clause.js.map +1 -1
  831. package/build/languageProcessing/languages/ru/Researcher.js +23 -31
  832. package/build/languageProcessing/languages/ru/Researcher.js.map +1 -1
  833. package/build/languageProcessing/languages/ru/config/firstWordExceptions.js +1 -7
  834. package/build/languageProcessing/languages/ru/config/firstWordExceptions.js.map +1 -1
  835. package/build/languageProcessing/languages/ru/config/fleschReadingEaseScores.js +1 -7
  836. package/build/languageProcessing/languages/ru/config/fleschReadingEaseScores.js.map +1 -1
  837. package/build/languageProcessing/languages/ru/config/functionWords.js +8 -14
  838. package/build/languageProcessing/languages/ru/config/functionWords.js.map +1 -1
  839. package/build/languageProcessing/languages/ru/config/internal/participlesShortenedList.js +2 -8
  840. package/build/languageProcessing/languages/ru/config/internal/participlesShortenedList.js.map +1 -1
  841. package/build/languageProcessing/languages/ru/config/internal/passiveVoiceParticiples.js +1 -7
  842. package/build/languageProcessing/languages/ru/config/internal/passiveVoiceParticiples.js.map +1 -1
  843. package/build/languageProcessing/languages/ru/config/sentenceLength.js +1 -7
  844. package/build/languageProcessing/languages/ru/config/sentenceLength.js.map +1 -1
  845. package/build/languageProcessing/languages/ru/config/transitionWords.js +4 -10
  846. package/build/languageProcessing/languages/ru/config/transitionWords.js.map +1 -1
  847. package/build/languageProcessing/languages/ru/config/twoPartTransitionWords.js +2 -7
  848. package/build/languageProcessing/languages/ru/config/twoPartTransitionWords.js.map +1 -1
  849. package/build/languageProcessing/languages/ru/helpers/calculateFleschReadingScore.js +3 -9
  850. package/build/languageProcessing/languages/ru/helpers/calculateFleschReadingScore.js.map +1 -1
  851. package/build/languageProcessing/languages/ru/helpers/getStemmer.js +8 -14
  852. package/build/languageProcessing/languages/ru/helpers/getStemmer.js.map +1 -1
  853. package/build/languageProcessing/languages/ru/helpers/internal/stem.js +1 -7
  854. package/build/languageProcessing/languages/ru/helpers/internal/stem.js.map +1 -1
  855. package/build/languageProcessing/languages/ru/helpers/isPassiveSentence.js +6 -12
  856. package/build/languageProcessing/languages/ru/helpers/isPassiveSentence.js.map +1 -1
  857. package/build/languageProcessing/languages/sk/Researcher.js +17 -25
  858. package/build/languageProcessing/languages/sk/Researcher.js.map +1 -1
  859. package/build/languageProcessing/languages/sk/config/firstWordExceptions.js +1 -7
  860. package/build/languageProcessing/languages/sk/config/firstWordExceptions.js.map +1 -1
  861. package/build/languageProcessing/languages/sk/config/functionWords.js +5 -11
  862. package/build/languageProcessing/languages/sk/config/functionWords.js.map +1 -1
  863. package/build/languageProcessing/languages/sk/config/internal/nonPassives.js +1 -7
  864. package/build/languageProcessing/languages/sk/config/internal/nonPassives.js.map +1 -1
  865. package/build/languageProcessing/languages/sk/config/internal/passiveVoiceAuxiliaries.js +2 -8
  866. package/build/languageProcessing/languages/sk/config/internal/passiveVoiceAuxiliaries.js.map +1 -1
  867. package/build/languageProcessing/languages/sk/config/stopWords.js +1 -7
  868. package/build/languageProcessing/languages/sk/config/stopWords.js.map +1 -1
  869. package/build/languageProcessing/languages/sk/config/transitionWords.js +4 -10
  870. package/build/languageProcessing/languages/sk/config/transitionWords.js.map +1 -1
  871. package/build/languageProcessing/languages/sk/config/twoPartTransitionWords.js +2 -7
  872. package/build/languageProcessing/languages/sk/config/twoPartTransitionWords.js.map +1 -1
  873. package/build/languageProcessing/languages/sk/helpers/getClauses.js +9 -16
  874. package/build/languageProcessing/languages/sk/helpers/getClauses.js.map +1 -1
  875. package/build/languageProcessing/languages/sk/helpers/getStemmer.js +8 -14
  876. package/build/languageProcessing/languages/sk/helpers/getStemmer.js.map +1 -1
  877. package/build/languageProcessing/languages/sk/helpers/internal/getParticiples.js +3 -9
  878. package/build/languageProcessing/languages/sk/helpers/internal/getParticiples.js.map +1 -1
  879. package/build/languageProcessing/languages/sk/helpers/internal/stem.js +1 -7
  880. package/build/languageProcessing/languages/sk/helpers/internal/stem.js.map +1 -1
  881. package/build/languageProcessing/languages/sk/values/Clause.js +8 -14
  882. package/build/languageProcessing/languages/sk/values/Clause.js.map +1 -1
  883. package/build/languageProcessing/languages/sv/Researcher.js +17 -25
  884. package/build/languageProcessing/languages/sv/Researcher.js.map +1 -1
  885. package/build/languageProcessing/languages/sv/config/firstWordExceptions.js +1 -7
  886. package/build/languageProcessing/languages/sv/config/firstWordExceptions.js.map +1 -1
  887. package/build/languageProcessing/languages/sv/config/functionWords.js +7 -13
  888. package/build/languageProcessing/languages/sv/config/functionWords.js.map +1 -1
  889. package/build/languageProcessing/languages/sv/config/internal/passiveVerbs.js +2 -7
  890. package/build/languageProcessing/languages/sv/config/internal/passiveVerbs.js.map +1 -1
  891. package/build/languageProcessing/languages/sv/config/keyphraseLength.js +1 -7
  892. package/build/languageProcessing/languages/sv/config/keyphraseLength.js.map +1 -1
  893. package/build/languageProcessing/languages/sv/config/transitionWords.js +4 -10
  894. package/build/languageProcessing/languages/sv/config/transitionWords.js.map +1 -1
  895. package/build/languageProcessing/languages/sv/config/twoPartTransitionWords.js +2 -7
  896. package/build/languageProcessing/languages/sv/config/twoPartTransitionWords.js.map +1 -1
  897. package/build/languageProcessing/languages/sv/helpers/getStemmer.js +8 -14
  898. package/build/languageProcessing/languages/sv/helpers/getStemmer.js.map +1 -1
  899. package/build/languageProcessing/languages/sv/helpers/internal/stem.js +1 -7
  900. package/build/languageProcessing/languages/sv/helpers/internal/stem.js.map +1 -1
  901. package/build/languageProcessing/languages/sv/helpers/isPassiveSentence.js +6 -12
  902. package/build/languageProcessing/languages/sv/helpers/isPassiveSentence.js.map +1 -1
  903. package/build/languageProcessing/languages/tr/Researcher.js +17 -25
  904. package/build/languageProcessing/languages/tr/Researcher.js.map +1 -1
  905. package/build/languageProcessing/languages/tr/config/firstWordExceptions.js +1 -7
  906. package/build/languageProcessing/languages/tr/config/firstWordExceptions.js.map +1 -1
  907. package/build/languageProcessing/languages/tr/config/functionWords.js +4 -10
  908. package/build/languageProcessing/languages/tr/config/functionWords.js.map +1 -1
  909. package/build/languageProcessing/languages/tr/config/internal/nonPassiveExceptions.js +3 -8
  910. package/build/languageProcessing/languages/tr/config/internal/nonPassiveExceptions.js.map +1 -1
  911. package/build/languageProcessing/languages/tr/config/internal/passiveEndings.js +1 -7
  912. package/build/languageProcessing/languages/tr/config/internal/passiveEndings.js.map +1 -1
  913. package/build/languageProcessing/languages/tr/config/sentenceLength.js +1 -7
  914. package/build/languageProcessing/languages/tr/config/sentenceLength.js.map +1 -1
  915. package/build/languageProcessing/languages/tr/config/transitionWords.js +4 -10
  916. package/build/languageProcessing/languages/tr/config/transitionWords.js.map +1 -1
  917. package/build/languageProcessing/languages/tr/config/twoPartTransitionWords.js +2 -7
  918. package/build/languageProcessing/languages/tr/config/twoPartTransitionWords.js.map +1 -1
  919. package/build/languageProcessing/languages/tr/helpers/getStemmer.js +8 -14
  920. package/build/languageProcessing/languages/tr/helpers/getStemmer.js.map +1 -1
  921. package/build/languageProcessing/languages/tr/helpers/internal/stem.js +3 -9
  922. package/build/languageProcessing/languages/tr/helpers/internal/stem.js.map +1 -1
  923. package/build/languageProcessing/languages/tr/helpers/isPassiveSentence.js +9 -15
  924. package/build/languageProcessing/languages/tr/helpers/isPassiveSentence.js.map +1 -1
  925. package/build/languageProcessing/researches/altTagCount.js +10 -16
  926. package/build/languageProcessing/researches/altTagCount.js.map +1 -1
  927. package/build/languageProcessing/researches/checkRelatedKeywords.js +2 -10
  928. package/build/languageProcessing/researches/checkRelatedKeywords.js.map +1 -1
  929. package/build/languageProcessing/researches/countSentencesFromText.js +9 -15
  930. package/build/languageProcessing/researches/countSentencesFromText.js.map +1 -1
  931. package/build/languageProcessing/researches/findKeyphraseInSEOTitle.js +19 -26
  932. package/build/languageProcessing/researches/findKeyphraseInSEOTitle.js.map +1 -1
  933. package/build/languageProcessing/researches/findKeywordInFirstParagraph.js +12 -18
  934. package/build/languageProcessing/researches/findKeywordInFirstParagraph.js.map +1 -1
  935. package/build/languageProcessing/researches/findTransitionWords.js +16 -23
  936. package/build/languageProcessing/researches/findTransitionWords.js.map +1 -1
  937. package/build/languageProcessing/researches/functionWordsInKeyphrase.js +10 -16
  938. package/build/languageProcessing/researches/functionWordsInKeyphrase.js.map +1 -1
  939. package/build/languageProcessing/researches/getAnchorsWithKeyphrase.js +21 -28
  940. package/build/languageProcessing/researches/getAnchorsWithKeyphrase.js.map +1 -1
  941. package/build/languageProcessing/researches/getFleschReadingScore.js +18 -25
  942. package/build/languageProcessing/researches/getFleschReadingScore.js.map +1 -1
  943. package/build/languageProcessing/researches/getKeywordDensity.js +4 -11
  944. package/build/languageProcessing/researches/getKeywordDensity.js.map +1 -1
  945. package/build/languageProcessing/researches/getLinkStatistics.js +7 -13
  946. package/build/languageProcessing/researches/getLinkStatistics.js.map +1 -1
  947. package/build/languageProcessing/researches/getLinks.js +7 -13
  948. package/build/languageProcessing/researches/getLinks.js.map +1 -1
  949. package/build/languageProcessing/researches/getLongCenterAlignedTexts.js +1 -7
  950. package/build/languageProcessing/researches/getLongCenterAlignedTexts.js.map +1 -1
  951. package/build/languageProcessing/researches/getParagraphLength.js +15 -21
  952. package/build/languageProcessing/researches/getParagraphLength.js.map +1 -1
  953. package/build/languageProcessing/researches/getParagraphs.js +4 -9
  954. package/build/languageProcessing/researches/getParagraphs.js.map +1 -1
  955. package/build/languageProcessing/researches/getPassiveVoiceResult.js +21 -30
  956. package/build/languageProcessing/researches/getPassiveVoiceResult.js.map +1 -1
  957. package/build/languageProcessing/researches/getProminentWordsForInsights.js +12 -18
  958. package/build/languageProcessing/researches/getProminentWordsForInsights.js.map +1 -1
  959. package/build/languageProcessing/researches/getProminentWordsForInternalLinking.js +20 -26
  960. package/build/languageProcessing/researches/getProminentWordsForInternalLinking.js.map +1 -1
  961. package/build/languageProcessing/researches/getSentenceBeginnings.js +18 -24
  962. package/build/languageProcessing/researches/getSentenceBeginnings.js.map +1 -1
  963. package/build/languageProcessing/researches/getSubheadingTextLengths.js +12 -18
  964. package/build/languageProcessing/researches/getSubheadingTextLengths.js.map +1 -1
  965. package/build/languageProcessing/researches/getWordForms.js +13 -19
  966. package/build/languageProcessing/researches/getWordForms.js.map +1 -1
  967. package/build/languageProcessing/researches/h1s.js +1 -7
  968. package/build/languageProcessing/researches/h1s.js.map +1 -1
  969. package/build/languageProcessing/researches/imageCount.js +4 -10
  970. package/build/languageProcessing/researches/imageCount.js.map +1 -1
  971. package/build/languageProcessing/researches/index.js +4 -27
  972. package/build/languageProcessing/researches/index.js.map +1 -1
  973. package/build/languageProcessing/researches/keyphraseDistribution.js +22 -32
  974. package/build/languageProcessing/researches/keyphraseDistribution.js.map +1 -1
  975. package/build/languageProcessing/researches/keyphraseLength.js +1 -7
  976. package/build/languageProcessing/researches/keyphraseLength.js.map +1 -1
  977. package/build/languageProcessing/researches/keywordCount.js +21 -29
  978. package/build/languageProcessing/researches/keywordCount.js.map +1 -1
  979. package/build/languageProcessing/researches/keywordCountInUrl.js +8 -16
  980. package/build/languageProcessing/researches/keywordCountInUrl.js.map +1 -1
  981. package/build/languageProcessing/researches/matchKeywordInSubheadings.js +11 -17
  982. package/build/languageProcessing/researches/matchKeywordInSubheadings.js.map +1 -1
  983. package/build/languageProcessing/researches/metaDescriptionKeyword.js +6 -12
  984. package/build/languageProcessing/researches/metaDescriptionKeyword.js.map +1 -1
  985. package/build/languageProcessing/researches/metaDescriptionLength.js +3 -9
  986. package/build/languageProcessing/researches/metaDescriptionLength.js.map +1 -1
  987. package/build/languageProcessing/researches/pageTitleWidth.js +1 -7
  988. package/build/languageProcessing/researches/pageTitleWidth.js.map +1 -1
  989. package/build/languageProcessing/researches/readingTime.js +7 -13
  990. package/build/languageProcessing/researches/readingTime.js.map +1 -1
  991. package/build/languageProcessing/researches/sentences.js +7 -13
  992. package/build/languageProcessing/researches/sentences.js.map +1 -1
  993. package/build/languageProcessing/researches/videoCount.js +1 -7
  994. package/build/languageProcessing/researches/videoCount.js.map +1 -1
  995. package/build/languageProcessing/researches/wordComplexity.js +15 -21
  996. package/build/languageProcessing/researches/wordComplexity.js.map +1 -1
  997. package/build/languageProcessing/researches/wordCountInText.js +7 -13
  998. package/build/languageProcessing/researches/wordCountInText.js.map +1 -1
  999. package/build/languageProcessing/values/Clause.js +1 -7
  1000. package/build/languageProcessing/values/Clause.js.map +1 -1
  1001. package/build/languageProcessing/values/ProminentWord.js +1 -7
  1002. package/build/languageProcessing/values/ProminentWord.js.map +1 -1
  1003. package/build/languageProcessing/values/Sentence.js +1 -7
  1004. package/build/languageProcessing/values/Sentence.js.map +1 -1
  1005. package/build/languageProcessing/values/index.js +4 -27
  1006. package/build/languageProcessing/values/index.js.map +1 -1
  1007. package/build/markers/addMark.js +1 -7
  1008. package/build/markers/addMark.js.map +1 -1
  1009. package/build/markers/addMarkSingleWord.js +7 -12
  1010. package/build/markers/addMarkSingleWord.js.map +1 -1
  1011. package/build/markers/index.js +3 -20
  1012. package/build/markers/index.js.map +1 -1
  1013. package/build/markers/removeDuplicateMarks.js +3 -8
  1014. package/build/markers/removeDuplicateMarks.js.map +1 -1
  1015. package/build/markers/removeMarks.js +1 -7
  1016. package/build/markers/removeMarks.js.map +1 -1
  1017. package/build/parse/build/build.js +17 -25
  1018. package/build/parse/build/build.js.map +1 -1
  1019. package/build/parse/build/index.js +7 -12
  1020. package/build/parse/build/index.js.map +1 -1
  1021. package/build/parse/build/private/adapt.js +15 -21
  1022. package/build/parse/build/private/adapt.js.map +1 -1
  1023. package/build/parse/build/private/adaptAttributes.js +3 -9
  1024. package/build/parse/build/private/adaptAttributes.js.map +1 -1
  1025. package/build/parse/build/private/alwaysFilterElements.js +9 -14
  1026. package/build/parse/build/private/alwaysFilterElements.js.map +1 -1
  1027. package/build/parse/build/private/combineIntoImplicitParagraphs.js +12 -18
  1028. package/build/parse/build/private/combineIntoImplicitParagraphs.js.map +1 -1
  1029. package/build/parse/build/private/filterBeforeTokenizing.js +5 -10
  1030. package/build/parse/build/private/filterBeforeTokenizing.js.map +1 -1
  1031. package/build/parse/build/private/filterHelpers.js +3 -11
  1032. package/build/parse/build/private/filterHelpers.js.map +1 -1
  1033. package/build/parse/build/private/filterTree.js +3 -8
  1034. package/build/parse/build/private/filterTree.js.map +1 -1
  1035. package/build/parse/build/private/getTextElementPositions.js +5 -10
  1036. package/build/parse/build/private/getTextElementPositions.js.map +1 -1
  1037. package/build/parse/build/private/helpers/parseClassAttribute.js +1 -7
  1038. package/build/parse/build/private/helpers/parseClassAttribute.js.map +1 -1
  1039. package/build/parse/build/private/isPhrasingContent.js +1 -7
  1040. package/build/parse/build/private/isPhrasingContent.js.map +1 -1
  1041. package/build/parse/build/private/parseBlocks.js +4 -11
  1042. package/build/parse/build/private/parseBlocks.js.map +1 -1
  1043. package/build/parse/build/private/tokenize.js +8 -14
  1044. package/build/parse/build/private/tokenize.js.map +1 -1
  1045. package/build/parse/language/LanguageProcessor.js +8 -15
  1046. package/build/parse/language/LanguageProcessor.js.map +1 -1
  1047. package/build/parse/structure/Heading.js +3 -9
  1048. package/build/parse/structure/Heading.js.map +1 -1
  1049. package/build/parse/structure/Node.js +8 -14
  1050. package/build/parse/structure/Node.js.map +1 -1
  1051. package/build/parse/structure/Paragraph.js +3 -9
  1052. package/build/parse/structure/Paragraph.js.map +1 -1
  1053. package/build/parse/structure/Sentence.js +1 -7
  1054. package/build/parse/structure/Sentence.js.map +1 -1
  1055. package/build/parse/structure/SourceCodeLocation.js +1 -7
  1056. package/build/parse/structure/SourceCodeLocation.js.map +1 -1
  1057. package/build/parse/structure/Text.js +3 -10
  1058. package/build/parse/structure/Text.js.map +1 -1
  1059. package/build/parse/structure/Token.js +3 -8
  1060. package/build/parse/structure/Token.js.map +1 -1
  1061. package/build/parse/structure/index.js +10 -33
  1062. package/build/parse/structure/index.js.map +1 -1
  1063. package/build/parse/traverse/findAllInTree.js +1 -7
  1064. package/build/parse/traverse/findAllInTree.js.map +1 -1
  1065. package/build/parse/traverse/index.js +8 -19
  1066. package/build/parse/traverse/index.js.map +1 -1
  1067. package/build/parse/traverse/innerText.js +3 -8
  1068. package/build/parse/traverse/innerText.js.map +1 -1
  1069. package/build/parsedPaper/ParsedPaper.js +1 -8
  1070. package/build/parsedPaper/ParsedPaper.js.map +1 -1
  1071. package/build/parsedPaper/assess/TreeAssessor.js +6 -12
  1072. package/build/parsedPaper/assess/TreeAssessor.js.map +1 -1
  1073. package/build/parsedPaper/assess/assessmentListFactories.js +1 -11
  1074. package/build/parsedPaper/assess/assessmentListFactories.js.map +1 -1
  1075. package/build/parsedPaper/assess/assessments/Assessment.js +1 -7
  1076. package/build/parsedPaper/assess/assessments/Assessment.js.map +1 -1
  1077. package/build/parsedPaper/assess/assessments/index.js +6 -13
  1078. package/build/parsedPaper/assess/assessments/index.js.map +1 -1
  1079. package/build/parsedPaper/assess/assessorFactories.js +16 -24
  1080. package/build/parsedPaper/assess/assessorFactories.js.map +1 -1
  1081. package/build/parsedPaper/assess/cornerstone/assessmentListFactories.js +1 -9
  1082. package/build/parsedPaper/assess/cornerstone/assessmentListFactories.js.map +1 -1
  1083. package/build/parsedPaper/assess/cornerstone/index.js +2 -10
  1084. package/build/parsedPaper/assess/cornerstone/index.js.map +1 -1
  1085. package/build/parsedPaper/assess/index.js +13 -29
  1086. package/build/parsedPaper/assess/index.js.map +1 -1
  1087. package/build/parsedPaper/build/PaperParser.js +5 -11
  1088. package/build/parsedPaper/build/PaperParser.js.map +1 -1
  1089. package/build/parsedPaper/build/linguisticParsing/Sentence.js +1 -7
  1090. package/build/parsedPaper/build/linguisticParsing/Sentence.js.map +1 -1
  1091. package/build/parsedPaper/build/linguisticParsing/SentenceTokenizer.js +16 -23
  1092. package/build/parsedPaper/build/linguisticParsing/SentenceTokenizer.js.map +1 -1
  1093. package/build/parsedPaper/build/linguisticParsing/parseText.js +3 -9
  1094. package/build/parsedPaper/build/linguisticParsing/parseText.js.map +1 -1
  1095. package/build/parsedPaper/build/tree/TreeBuilder.js +3 -9
  1096. package/build/parsedPaper/build/tree/TreeBuilder.js.map +1 -1
  1097. package/build/parsedPaper/build/tree/cleanup/calculateTextIndices.js +5 -10
  1098. package/build/parsedPaper/build/tree/cleanup/calculateTextIndices.js.map +1 -1
  1099. package/build/parsedPaper/build/tree/cleanup/getElementContent.js +1 -7
  1100. package/build/parsedPaper/build/tree/cleanup/getElementContent.js.map +1 -1
  1101. package/build/parsedPaper/build/tree/cleanup/postParsing.js +5 -11
  1102. package/build/parsedPaper/build/tree/cleanup/postParsing.js.map +1 -1
  1103. package/build/parsedPaper/build/tree/html/HTMLTreeConverter.js +21 -27
  1104. package/build/parsedPaper/build/tree/html/HTMLTreeConverter.js.map +1 -1
  1105. package/build/parsedPaper/build/tree/html/buildTree.js +7 -13
  1106. package/build/parsedPaper/build/tree/html/buildTree.js.map +1 -1
  1107. package/build/parsedPaper/build/tree/html/htmlConstants.js +4 -9
  1108. package/build/parsedPaper/build/tree/html/htmlConstants.js.map +1 -1
  1109. package/build/parsedPaper/build/tree/index.js +3 -8
  1110. package/build/parsedPaper/build/tree/index.js.map +1 -1
  1111. package/build/parsedPaper/build/tree/metadata/buildTree.js +12 -18
  1112. package/build/parsedPaper/build/tree/metadata/buildTree.js.map +1 -1
  1113. package/build/parsedPaper/research/TreeResearcher.js +4 -9
  1114. package/build/parsedPaper/research/TreeResearcher.js.map +1 -1
  1115. package/build/parsedPaper/research/index.js +10 -12
  1116. package/build/parsedPaper/research/index.js.map +1 -1
  1117. package/build/parsedPaper/research/researches/Headings.js +5 -11
  1118. package/build/parsedPaper/research/researches/Headings.js.map +1 -1
  1119. package/build/parsedPaper/research/researches/LinkStatistics.js +6 -12
  1120. package/build/parsedPaper/research/researches/LinkStatistics.js.map +1 -1
  1121. package/build/parsedPaper/research/researches/Research.js +5 -10
  1122. package/build/parsedPaper/research/researches/Research.js.map +1 -1
  1123. package/build/parsedPaper/research/researches/index.js +1 -13
  1124. package/build/parsedPaper/research/researches/index.js.map +1 -1
  1125. package/build/parsedPaper/structure/tree/FormattingElement.js +3 -9
  1126. package/build/parsedPaper/structure/tree/FormattingElement.js.map +1 -1
  1127. package/build/parsedPaper/structure/tree/SourceCodeLocation.js +1 -7
  1128. package/build/parsedPaper/structure/tree/SourceCodeLocation.js.map +1 -1
  1129. package/build/parsedPaper/structure/tree/TextContainer.js +5 -10
  1130. package/build/parsedPaper/structure/tree/TextContainer.js.map +1 -1
  1131. package/build/parsedPaper/structure/tree/index.js +9 -74
  1132. package/build/parsedPaper/structure/tree/index.js.map +1 -1
  1133. package/build/parsedPaper/structure/tree/nodes/Heading.js +3 -9
  1134. package/build/parsedPaper/structure/tree/nodes/Heading.js.map +1 -1
  1135. package/build/parsedPaper/structure/tree/nodes/LeafNode.js +5 -12
  1136. package/build/parsedPaper/structure/tree/nodes/LeafNode.js.map +1 -1
  1137. package/build/parsedPaper/structure/tree/nodes/List.js +5 -11
  1138. package/build/parsedPaper/structure/tree/nodes/List.js.map +1 -1
  1139. package/build/parsedPaper/structure/tree/nodes/ListItem.js +3 -10
  1140. package/build/parsedPaper/structure/tree/nodes/ListItem.js.map +1 -1
  1141. package/build/parsedPaper/structure/tree/nodes/MetadataMiscellaneous.js +3 -9
  1142. package/build/parsedPaper/structure/tree/nodes/MetadataMiscellaneous.js.map +1 -1
  1143. package/build/parsedPaper/structure/tree/nodes/MetadataText.js +3 -9
  1144. package/build/parsedPaper/structure/tree/nodes/MetadataText.js.map +1 -1
  1145. package/build/parsedPaper/structure/tree/nodes/Node.js +6 -12
  1146. package/build/parsedPaper/structure/tree/nodes/Node.js.map +1 -1
  1147. package/build/parsedPaper/structure/tree/nodes/Paragraph.js +3 -9
  1148. package/build/parsedPaper/structure/tree/nodes/Paragraph.js.map +1 -1
  1149. package/build/parsedPaper/structure/tree/nodes/StructuredNode.js +3 -10
  1150. package/build/parsedPaper/structure/tree/nodes/StructuredNode.js.map +1 -1
  1151. package/build/parsedPaper/structure/tree/nodes/index.js +10 -69
  1152. package/build/parsedPaper/structure/tree/nodes/index.js.map +1 -1
  1153. package/build/scoring/assessments/assessment.js +9 -14
  1154. package/build/scoring/assessments/assessment.js.map +1 -1
  1155. package/build/scoring/assessments/index.js +53 -60
  1156. package/build/scoring/assessments/index.js.map +1 -1
  1157. package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js +12 -19
  1158. package/build/scoring/assessments/readability/ParagraphTooLongAssessment.js.map +1 -1
  1159. package/build/scoring/assessments/readability/RelatedKeywordsAssessment.js +13 -20
  1160. package/build/scoring/assessments/readability/RelatedKeywordsAssessment.js.map +1 -1
  1161. package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js +14 -22
  1162. package/build/scoring/assessments/readability/SentenceBeginningsAssessment.js.map +1 -1
  1163. package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js +17 -23
  1164. package/build/scoring/assessments/readability/SentenceLengthInTextAssessment.js.map +1 -1
  1165. package/build/scoring/assessments/readability/TransitionWordsAssessment.js +20 -27
  1166. package/build/scoring/assessments/readability/TransitionWordsAssessment.js.map +1 -1
  1167. package/build/scoring/assessments/seo/ImageCountAssessment.js +10 -17
  1168. package/build/scoring/assessments/seo/ImageCountAssessment.js.map +1 -1
  1169. package/build/scoring/assessments/seo/InternalLinksAssessment.js +13 -19
  1170. package/build/scoring/assessments/seo/InternalLinksAssessment.js.map +1 -1
  1171. package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js +13 -19
  1172. package/build/scoring/assessments/seo/IntroductionKeywordAssessment.js.map +1 -1
  1173. package/build/scoring/assessments/seo/KeyphraseAssessment.js +11 -17
  1174. package/build/scoring/assessments/seo/KeyphraseAssessment.js.map +1 -1
  1175. package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js +15 -21
  1176. package/build/scoring/assessments/seo/KeyphraseLengthAssessment.js.map +1 -1
  1177. package/build/scoring/assessments/seo/KeywordDensityAssessment.js +14 -20
  1178. package/build/scoring/assessments/seo/KeywordDensityAssessment.js.map +1 -1
  1179. package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js +16 -22
  1180. package/build/scoring/assessments/seo/MetaDescriptionKeywordAssessment.js.map +1 -1
  1181. package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js +10 -17
  1182. package/build/scoring/assessments/seo/MetaDescriptionLengthAssessment.js.map +1 -1
  1183. package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js +13 -20
  1184. package/build/scoring/assessments/seo/MetaTitleKeywordAssessment.js.map +1 -1
  1185. package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js +10 -17
  1186. package/build/scoring/assessments/seo/NumberInMetaTitleAssessment.js.map +1 -1
  1187. package/build/scoring/assessments/seo/OutboundLinksAssessment.js +13 -20
  1188. package/build/scoring/assessments/seo/OutboundLinksAssessment.js.map +1 -1
  1189. package/build/scoring/assessments/seo/PageTitleWidthAssessment.js +10 -17
  1190. package/build/scoring/assessments/seo/PageTitleWidthAssessment.js.map +1 -1
  1191. package/build/scoring/assessments/seo/SchemaAssessment.js +10 -17
  1192. package/build/scoring/assessments/seo/SchemaAssessment.js.map +1 -1
  1193. package/build/scoring/assessments/seo/SingleH1Assessment.js +12 -18
  1194. package/build/scoring/assessments/seo/SingleH1Assessment.js.map +1 -1
  1195. package/build/scoring/assessments/seo/SingleTitleAssessment.js +12 -18
  1196. package/build/scoring/assessments/seo/SingleTitleAssessment.js.map +1 -1
  1197. package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js +10 -17
  1198. package/build/scoring/assessments/seo/SubHeadingsKeywordAssessment.js.map +1 -1
  1199. package/build/scoring/assessments/seo/TextImagesAssessment.js +13 -20
  1200. package/build/scoring/assessments/seo/TextImagesAssessment.js.map +1 -1
  1201. package/build/scoring/assessments/seo/TextLengthAssessment.js +12 -19
  1202. package/build/scoring/assessments/seo/TextLengthAssessment.js.map +1 -1
  1203. package/build/scoring/assessments/seo/UrlKeywordAssessment.js +11 -17
  1204. package/build/scoring/assessments/seo/UrlKeywordAssessment.js.map +1 -1
  1205. package/build/scoring/assessments/seo/UrlLengthAssessment.js +10 -17
  1206. package/build/scoring/assessments/seo/UrlLengthAssessment.js.map +1 -1
  1207. package/build/scoring/assessors/assessor.js +25 -32
  1208. package/build/scoring/assessors/assessor.js.map +1 -1
  1209. package/build/scoring/assessors/avadaAssessor.js +8 -14
  1210. package/build/scoring/assessors/avadaAssessor.js.map +1 -1
  1211. package/build/scoring/assessors/contentAssessor.js +13 -20
  1212. package/build/scoring/assessors/contentAssessor.js.map +1 -1
  1213. package/build/scoring/assessors/index.js +4 -34
  1214. package/build/scoring/assessors/index.js.map +1 -1
  1215. package/build/scoring/assessors/seoAssessor.js +23 -30
  1216. package/build/scoring/assessors/seoAssessor.js.map +1 -1
  1217. package/build/scoring/helpers/assessments/checkForTooLongSentences.js +3 -8
  1218. package/build/scoring/helpers/assessments/checkForTooLongSentences.js.map +1 -1
  1219. package/build/scoring/helpers/assessments/inRange.js +2 -10
  1220. package/build/scoring/helpers/assessments/inRange.js.map +1 -1
  1221. package/build/scoring/helpers/assessments/keyphraseLengthFactor.js +1 -7
  1222. package/build/scoring/helpers/assessments/keyphraseLengthFactor.js.map +1 -1
  1223. package/build/scoring/helpers/assessments/recommendedKeywordCount.js +5 -11
  1224. package/build/scoring/helpers/assessments/recommendedKeywordCount.js.map +1 -1
  1225. package/build/scoring/helpers/index.js +7 -15
  1226. package/build/scoring/helpers/index.js.map +1 -1
  1227. package/build/scoring/interpreters/index.js +2 -13
  1228. package/build/scoring/interpreters/index.js.map +1 -1
  1229. package/build/scoring/interpreters/scoreToRating.js +1 -7
  1230. package/build/scoring/interpreters/scoreToRating.js.map +1 -1
  1231. package/build/scoring/renderers/AssessorPresenter.js +12 -18
  1232. package/build/scoring/renderers/AssessorPresenter.js.map +1 -1
  1233. package/build/scoring/scoreAggregators/ReadabilityScoreAggregator.js +8 -14
  1234. package/build/scoring/scoreAggregators/ReadabilityScoreAggregator.js.map +1 -1
  1235. package/build/scoring/scoreAggregators/SEOScoreAggregator.js +3 -9
  1236. package/build/scoring/scoreAggregators/SEOScoreAggregator.js.map +1 -1
  1237. package/build/scoring/scoreAggregators/ScoreAggregator.js +1 -7
  1238. package/build/scoring/scoreAggregators/ScoreAggregator.js.map +1 -1
  1239. package/build/scoring/scoreAggregators/index.js +3 -27
  1240. package/build/scoring/scoreAggregators/index.js.map +1 -1
  1241. package/build/values/AssessmentResult.js +22 -28
  1242. package/build/values/AssessmentResult.js.map +1 -1
  1243. package/build/values/Mark.js +9 -15
  1244. package/build/values/Mark.js.map +1 -1
  1245. package/build/values/Paper.js +11 -17
  1246. package/build/values/Paper.js.map +1 -1
  1247. package/build/values/index.js +4 -27
  1248. package/build/values/index.js.map +1 -1
  1249. package/build/vendor/turkishStemmer.js +1 -7
  1250. package/build/vendor/turkishStemmer.js.map +1 -1
  1251. package/package.json +1 -1
@@ -1,23 +1,17 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = _default;
7
- var _getAnchorsFromText = _interopRequireDefault(require("../helpers/link/getAnchorsFromText.js"));
8
- var _lodash = require("lodash");
9
- var _url = _interopRequireDefault(require("../helpers/url/url.js"));
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
1
  /** @module analyses/getLinkStatistics */
12
2
 
3
+ import getAnchors from "../helpers/link/getAnchorsFromText.js";
4
+ import { map } from "lodash";
5
+ import url from "../helpers/url/url.js";
6
+
13
7
  /**
14
8
  * Checks a text for anchors and returns the number found.
15
9
  *
16
10
  * @param {Object} paper The paper to get the text from.
17
11
  * @returns {Array} An array with the anchors
18
12
  */
19
- function _default(paper) {
20
- const anchors = (0, _getAnchorsFromText.default)(paper.getText());
21
- return (0, _lodash.map)(anchors, _url.default.getFromAnchorTag);
13
+ export default function (paper) {
14
+ const anchors = getAnchors(paper.getText());
15
+ return map(anchors, url.getFromAnchorTag);
22
16
  }
23
17
  //# sourceMappingURL=getLinks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLinks.js","names":["_getAnchorsFromText","_interopRequireDefault","require","_lodash","_url","e","__esModule","default","_default","paper","anchors","getAnchors","getText","map","url","getFromAnchorTag"],"sources":["../../../src/languageProcessing/researches/getLinks.js"],"sourcesContent":["/** @module analyses/getLinkStatistics */\n\nimport getAnchors from \"../helpers/link/getAnchorsFromText.js\";\n\nimport { map } from \"lodash\";\nimport url from \"../helpers/url/url.js\";\n\n/**\n * Checks a text for anchors and returns the number found.\n *\n * @param {Object} paper The paper to get the text from.\n * @returns {Array} An array with the anchors\n */\nexport default function( paper ) {\n\tconst anchors = getAnchors( paper.getText() );\n\n\treturn map( anchors, url.getFromAnchorTag );\n}\n"],"mappings":";;;;;;AAEA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAwC,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AALxC;;AAOA;AACA;AACA;AACA;AACA;AACA;AACe,SAAAG,SAAUC,KAAK,EAAG;EAChC,MAAMC,OAAO,GAAG,IAAAC,2BAAU,EAAEF,KAAK,CAACG,OAAO,CAAC,CAAE,CAAC;EAE7C,OAAO,IAAAC,WAAG,EAAEH,OAAO,EAAEI,YAAG,CAACC,gBAAiB,CAAC;AAC5C","ignoreList":[]}
1
+ {"version":3,"file":"getLinks.js","names":["getAnchors","map","url","paper","anchors","getText","getFromAnchorTag"],"sources":["../../../src/languageProcessing/researches/getLinks.js"],"sourcesContent":["/** @module analyses/getLinkStatistics */\n\nimport getAnchors from \"../helpers/link/getAnchorsFromText.js\";\n\nimport { map } from \"lodash\";\nimport url from \"../helpers/url/url.js\";\n\n/**\n * Checks a text for anchors and returns the number found.\n *\n * @param {Object} paper The paper to get the text from.\n * @returns {Array} An array with the anchors\n */\nexport default function( paper ) {\n\tconst anchors = getAnchors( paper.getText() );\n\n\treturn map( anchors, url.getFromAnchorTag );\n}\n"],"mappings":"AAAA;;AAEA,OAAOA,UAAU;AAEjB,SAASC,GAAG,QAAQ,QAAQ;AAC5B,OAAOC,GAAG;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUC,KAAK,EAAG;EAChC,MAAMC,OAAO,GAAGJ,UAAU,CAAEG,KAAK,CAACE,OAAO,CAAC,CAAE,CAAC;EAE7C,OAAOJ,GAAG,CAAEG,OAAO,EAAEF,GAAG,CAACI,gBAAiB,CAAC;AAC5C","ignoreList":[]}
@@ -1,9 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = _default;
7
1
  /**
8
2
  * The maximum allowed length of a center-aligned paragraph or heading in characters.
9
3
  * @type {number}
@@ -33,7 +27,7 @@ function getLongCenterAlignedElements(nodes) {
33
27
  * @param {Paper} paper The paper to analyze.
34
28
  * @returns {Node[]} An array of nodes containing too long center-aligned paragraphs/headings.
35
29
  */
36
- function _default(paper) {
30
+ export default function (paper) {
37
31
  const tree = paper.getTree();
38
32
  const paragraphs = tree.findAll(node => node.name === "p");
39
33
  const headings = tree.findAll(node => HEADING_TAGS_REGEX.test(node.name));
@@ -1 +1 @@
1
- {"version":3,"file":"getLongCenterAlignedTexts.js","names":["MAX_CENTER_ALIGNED_LENGTH","HEADING_TAGS_REGEX","getLongCenterAlignedElements","nodes","filter","node","isCenterAligned","attributes","class","Set","has","innerText","length","_default","paper","tree","getTree","paragraphs","findAll","name","headings","test","concat"],"sources":["../../../src/languageProcessing/researches/getLongCenterAlignedTexts.js"],"sourcesContent":["/**\n * The maximum allowed length of a center-aligned paragraph or heading in characters.\n * @type {number}\n */\nconst MAX_CENTER_ALIGNED_LENGTH = 50;\n\n/**\n * A regular expression to match heading tags.\n * @type {RegExp}\n */\nconst HEADING_TAGS_REGEX = /^h[1-6]$/;\n\n/**\n * Filters out all nodes that are center-aligned and longer than 50 characters (as defined in `MAX_CENTER_ALIGNED_LENGTH`).\n * @param {Node[]} nodes An array of nodes.\n * @returns {Node[]} An array containing all center-aligned nodes that are longer than 50 characters.\n */\nfunction getLongCenterAlignedElements( nodes ) {\n\treturn nodes.filter( node => {\n\t\tconst isCenterAligned = node.attributes.class instanceof Set && node.attributes.class.has( \"has-text-align-center\" );\n\t\treturn isCenterAligned && node.innerText().length > MAX_CENTER_ALIGNED_LENGTH;\n\t} );\n}\n\n/**\n * Finds all paragraphs and headings that are center-aligned and longer than 50 characters (after stripping HTML tags).\n * @param {Paper} paper The paper to analyze.\n * @returns {Node[]} An array of nodes containing too long center-aligned paragraphs/headings.\n */\nexport default function( paper ) {\n\tconst tree = paper.getTree();\n\n\tconst paragraphs = tree.findAll( node => node.name === \"p\" );\n\tconst headings = tree.findAll( node => HEADING_TAGS_REGEX.test( node.name ) );\n\n\treturn getLongCenterAlignedElements( paragraphs.concat( headings ) );\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA,MAAMA,yBAAyB,GAAG,EAAE;;AAEpC;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,GAAG,UAAU;;AAErC;AACA;AACA;AACA;AACA;AACA,SAASC,4BAA4BA,CAAEC,KAAK,EAAG;EAC9C,OAAOA,KAAK,CAACC,MAAM,CAAEC,IAAI,IAAI;IAC5B,MAAMC,eAAe,GAAGD,IAAI,CAACE,UAAU,CAACC,KAAK,YAAYC,GAAG,IAAIJ,IAAI,CAACE,UAAU,CAACC,KAAK,CAACE,GAAG,CAAE,uBAAwB,CAAC;IACpH,OAAOJ,eAAe,IAAID,IAAI,CAACM,SAAS,CAAC,CAAC,CAACC,MAAM,GAAGZ,yBAAyB;EAC9E,CAAE,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACe,SAAAa,SAAUC,KAAK,EAAG;EAChC,MAAMC,IAAI,GAAGD,KAAK,CAACE,OAAO,CAAC,CAAC;EAE5B,MAAMC,UAAU,GAAGF,IAAI,CAACG,OAAO,CAAEb,IAAI,IAAIA,IAAI,CAACc,IAAI,KAAK,GAAI,CAAC;EAC5D,MAAMC,QAAQ,GAAGL,IAAI,CAACG,OAAO,CAAEb,IAAI,IAAIJ,kBAAkB,CAACoB,IAAI,CAAEhB,IAAI,CAACc,IAAK,CAAE,CAAC;EAE7E,OAAOjB,4BAA4B,CAAEe,UAAU,CAACK,MAAM,CAAEF,QAAS,CAAE,CAAC;AACrE","ignoreList":[]}
1
+ {"version":3,"file":"getLongCenterAlignedTexts.js","names":["MAX_CENTER_ALIGNED_LENGTH","HEADING_TAGS_REGEX","getLongCenterAlignedElements","nodes","filter","node","isCenterAligned","attributes","class","Set","has","innerText","length","paper","tree","getTree","paragraphs","findAll","name","headings","test","concat"],"sources":["../../../src/languageProcessing/researches/getLongCenterAlignedTexts.js"],"sourcesContent":["/**\n * The maximum allowed length of a center-aligned paragraph or heading in characters.\n * @type {number}\n */\nconst MAX_CENTER_ALIGNED_LENGTH = 50;\n\n/**\n * A regular expression to match heading tags.\n * @type {RegExp}\n */\nconst HEADING_TAGS_REGEX = /^h[1-6]$/;\n\n/**\n * Filters out all nodes that are center-aligned and longer than 50 characters (as defined in `MAX_CENTER_ALIGNED_LENGTH`).\n * @param {Node[]} nodes An array of nodes.\n * @returns {Node[]} An array containing all center-aligned nodes that are longer than 50 characters.\n */\nfunction getLongCenterAlignedElements( nodes ) {\n\treturn nodes.filter( node => {\n\t\tconst isCenterAligned = node.attributes.class instanceof Set && node.attributes.class.has( \"has-text-align-center\" );\n\t\treturn isCenterAligned && node.innerText().length > MAX_CENTER_ALIGNED_LENGTH;\n\t} );\n}\n\n/**\n * Finds all paragraphs and headings that are center-aligned and longer than 50 characters (after stripping HTML tags).\n * @param {Paper} paper The paper to analyze.\n * @returns {Node[]} An array of nodes containing too long center-aligned paragraphs/headings.\n */\nexport default function( paper ) {\n\tconst tree = paper.getTree();\n\n\tconst paragraphs = tree.findAll( node => node.name === \"p\" );\n\tconst headings = tree.findAll( node => HEADING_TAGS_REGEX.test( node.name ) );\n\n\treturn getLongCenterAlignedElements( paragraphs.concat( headings ) );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA,MAAMA,yBAAyB,GAAG,EAAE;;AAEpC;AACA;AACA;AACA;AACA,MAAMC,kBAAkB,GAAG,UAAU;;AAErC;AACA;AACA;AACA;AACA;AACA,SAASC,4BAA4BA,CAAEC,KAAK,EAAG;EAC9C,OAAOA,KAAK,CAACC,MAAM,CAAEC,IAAI,IAAI;IAC5B,MAAMC,eAAe,GAAGD,IAAI,CAACE,UAAU,CAACC,KAAK,YAAYC,GAAG,IAAIJ,IAAI,CAACE,UAAU,CAACC,KAAK,CAACE,GAAG,CAAE,uBAAwB,CAAC;IACpH,OAAOJ,eAAe,IAAID,IAAI,CAACM,SAAS,CAAC,CAAC,CAACC,MAAM,GAAGZ,yBAAyB;EAC9E,CAAE,CAAC;AACJ;;AAEA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUa,KAAK,EAAG;EAChC,MAAMC,IAAI,GAAGD,KAAK,CAACE,OAAO,CAAC,CAAC;EAE5B,MAAMC,UAAU,GAAGF,IAAI,CAACG,OAAO,CAAEZ,IAAI,IAAIA,IAAI,CAACa,IAAI,KAAK,GAAI,CAAC;EAC5D,MAAMC,QAAQ,GAAGL,IAAI,CAACG,OAAO,CAAEZ,IAAI,IAAIJ,kBAAkB,CAACmB,IAAI,CAAEf,IAAI,CAACa,IAAK,CAAE,CAAC;EAE7E,OAAOhB,4BAA4B,CAAEc,UAAU,CAACK,MAAM,CAAEF,QAAS,CAAE,CAAC;AACrE","ignoreList":[]}
@@ -1,17 +1,11 @@
1
- "use strict";
1
+ import { imageRegex } from "../helpers/image/imageInText";
2
+ import sanitizeLineBreakTag from "../helpers/sanitize/sanitizeLineBreakTag";
3
+ import countWords from "../helpers/word/countWords.js";
4
+ import matchParagraphs from "../helpers/html/matchParagraphs.js";
5
+ import { filter } from "lodash";
6
+ import removeHtmlBlocks from "../helpers/html/htmlParser";
7
+ import { filterShortcodesFromHTML } from "../helpers";
2
8
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = _default;
7
- var _imageInText = require("../helpers/image/imageInText");
8
- var _sanitizeLineBreakTag = _interopRequireDefault(require("../helpers/sanitize/sanitizeLineBreakTag"));
9
- var _countWords = _interopRequireDefault(require("../helpers/word/countWords.js"));
10
- var _matchParagraphs = _interopRequireDefault(require("../helpers/html/matchParagraphs.js"));
11
- var _lodash = require("lodash");
12
- var _htmlParser = _interopRequireDefault(require("../helpers/html/htmlParser"));
13
- var _helpers = require("../helpers");
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
9
  /**
16
10
  * Gets all paragraphs and their word counts or character counts from the text.
17
11
  *
@@ -20,29 +14,29 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
20
14
  *
21
15
  * @returns {Array} The array containing an object with the paragraph word or character count and paragraph text.
22
16
  */
23
- function _default(paper, researcher) {
17
+ export default function (paper, researcher) {
24
18
  let text = paper.getText();
25
- text = (0, _htmlParser.default)(text);
26
- text = (0, _helpers.filterShortcodesFromHTML)(text, paper._attributes && paper._attributes.shortcodes);
19
+ text = removeHtmlBlocks(text);
20
+ text = filterShortcodesFromHTML(text, paper._attributes && paper._attributes.shortcodes);
27
21
 
28
22
  // Remove images from text before retrieving the paragraphs.
29
23
  // This step is done here so that applying highlight in captions is possible for ParagraphTooLongAssessment.
30
- text = text.replace(_imageInText.imageRegex, "");
24
+ text = text.replace(imageRegex, "");
31
25
 
32
26
  // Replace line break tags containing attribute(s) with paragraph tag.
33
- text = (0, _sanitizeLineBreakTag.default)(text);
34
- const paragraphs = (0, _matchParagraphs.default)(text);
27
+ text = sanitizeLineBreakTag(text);
28
+ const paragraphs = matchParagraphs(text);
35
29
  const paragraphsLength = [];
36
30
 
37
31
  // An optional custom helper to count length to use instead of countWords.
38
32
  const customCountLength = researcher.getHelper("customCountLength");
39
33
  paragraphs.map(function (paragraph) {
40
34
  paragraphsLength.push({
41
- countLength: customCountLength ? customCountLength(paragraph) : (0, _countWords.default)(paragraph),
35
+ countLength: customCountLength ? customCountLength(paragraph) : countWords(paragraph),
42
36
  text: paragraph
43
37
  });
44
38
  });
45
- return (0, _lodash.filter)(paragraphsLength, function (paragraphLength) {
39
+ return filter(paragraphsLength, function (paragraphLength) {
46
40
  return paragraphLength.countLength > 0;
47
41
  });
48
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getParagraphLength.js","names":["_imageInText","require","_sanitizeLineBreakTag","_interopRequireDefault","_countWords","_matchParagraphs","_lodash","_htmlParser","_helpers","e","__esModule","default","_default","paper","researcher","text","getText","removeHtmlBlocks","filterShortcodesFromHTML","_attributes","shortcodes","replace","imageRegex","sanitizeLineBreakTag","paragraphs","matchParagraphs","paragraphsLength","customCountLength","getHelper","map","paragraph","push","countLength","countWords","filter","paragraphLength"],"sources":["../../../src/languageProcessing/researches/getParagraphLength.js"],"sourcesContent":["import { imageRegex } from \"../helpers/image/imageInText\";\nimport sanitizeLineBreakTag from \"../helpers/sanitize/sanitizeLineBreakTag\";\nimport countWords from \"../helpers/word/countWords.js\";\nimport matchParagraphs from \"../helpers/html/matchParagraphs.js\";\nimport { filter } from \"lodash\";\nimport removeHtmlBlocks from \"../helpers/html/htmlParser\";\nimport { filterShortcodesFromHTML } from \"../helpers\";\n\n/**\n * Gets all paragraphs and their word counts or character counts from the text.\n *\n * @param {Paper} \t\tpaper \t\tThe paper object to get the text from.\n * @param {Researcher} \tresearcher \tThe researcher to use for analysis.\n *\n * @returns {Array} The array containing an object with the paragraph word or character count and paragraph text.\n */\nexport default function( paper, researcher ) {\n\tlet text = paper.getText();\n\ttext = removeHtmlBlocks( text );\n\ttext = filterShortcodesFromHTML( text, paper._attributes && paper._attributes.shortcodes );\n\n\t// Remove images from text before retrieving the paragraphs.\n\t// This step is done here so that applying highlight in captions is possible for ParagraphTooLongAssessment.\n\ttext = text.replace( imageRegex, \"\" );\n\n\t// Replace line break tags containing attribute(s) with paragraph tag.\n\ttext = sanitizeLineBreakTag( text );\n\tconst paragraphs = matchParagraphs( text );\n\tconst paragraphsLength = [];\n\n\t// An optional custom helper to count length to use instead of countWords.\n\tconst customCountLength = researcher.getHelper( \"customCountLength\" );\n\n\tparagraphs.map( function( paragraph ) {\n\t\tparagraphsLength.push( {\n\t\t\tcountLength: customCountLength ? customCountLength( paragraph ) : countWords( paragraph ),\n\t\t\ttext: paragraph,\n\t\t} );\n\t} );\n\n\treturn filter( paragraphsLength, function( paragraphLength ) {\n\t\treturn ( paragraphLength.countLength > 0 );\n\t} );\n}\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,gBAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AAAsD,SAAAE,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAAG,SAAUC,KAAK,EAAEC,UAAU,EAAG;EAC5C,IAAIC,IAAI,GAAGF,KAAK,CAACG,OAAO,CAAC,CAAC;EAC1BD,IAAI,GAAG,IAAAE,mBAAgB,EAAEF,IAAK,CAAC;EAC/BA,IAAI,GAAG,IAAAG,iCAAwB,EAAEH,IAAI,EAAEF,KAAK,CAACM,WAAW,IAAIN,KAAK,CAACM,WAAW,CAACC,UAAW,CAAC;;EAE1F;EACA;EACAL,IAAI,GAAGA,IAAI,CAACM,OAAO,CAAEC,uBAAU,EAAE,EAAG,CAAC;;EAErC;EACAP,IAAI,GAAG,IAAAQ,6BAAoB,EAAER,IAAK,CAAC;EACnC,MAAMS,UAAU,GAAG,IAAAC,wBAAe,EAAEV,IAAK,CAAC;EAC1C,MAAMW,gBAAgB,GAAG,EAAE;;EAE3B;EACA,MAAMC,iBAAiB,GAAGb,UAAU,CAACc,SAAS,CAAE,mBAAoB,CAAC;EAErEJ,UAAU,CAACK,GAAG,CAAE,UAAUC,SAAS,EAAG;IACrCJ,gBAAgB,CAACK,IAAI,CAAE;MACtBC,WAAW,EAAEL,iBAAiB,GAAGA,iBAAiB,CAAEG,SAAU,CAAC,GAAG,IAAAG,mBAAU,EAAEH,SAAU,CAAC;MACzFf,IAAI,EAAEe;IACP,CAAE,CAAC;EACJ,CAAE,CAAC;EAEH,OAAO,IAAAI,cAAM,EAAER,gBAAgB,EAAE,UAAUS,eAAe,EAAG;IAC5D,OAASA,eAAe,CAACH,WAAW,GAAG,CAAC;EACzC,CAAE,CAAC;AACJ","ignoreList":[]}
1
+ {"version":3,"file":"getParagraphLength.js","names":["imageRegex","sanitizeLineBreakTag","countWords","matchParagraphs","filter","removeHtmlBlocks","filterShortcodesFromHTML","paper","researcher","text","getText","_attributes","shortcodes","replace","paragraphs","paragraphsLength","customCountLength","getHelper","map","paragraph","push","countLength","paragraphLength"],"sources":["../../../src/languageProcessing/researches/getParagraphLength.js"],"sourcesContent":["import { imageRegex } from \"../helpers/image/imageInText\";\nimport sanitizeLineBreakTag from \"../helpers/sanitize/sanitizeLineBreakTag\";\nimport countWords from \"../helpers/word/countWords.js\";\nimport matchParagraphs from \"../helpers/html/matchParagraphs.js\";\nimport { filter } from \"lodash\";\nimport removeHtmlBlocks from \"../helpers/html/htmlParser\";\nimport { filterShortcodesFromHTML } from \"../helpers\";\n\n/**\n * Gets all paragraphs and their word counts or character counts from the text.\n *\n * @param {Paper} \t\tpaper \t\tThe paper object to get the text from.\n * @param {Researcher} \tresearcher \tThe researcher to use for analysis.\n *\n * @returns {Array} The array containing an object with the paragraph word or character count and paragraph text.\n */\nexport default function( paper, researcher ) {\n\tlet text = paper.getText();\n\ttext = removeHtmlBlocks( text );\n\ttext = filterShortcodesFromHTML( text, paper._attributes && paper._attributes.shortcodes );\n\n\t// Remove images from text before retrieving the paragraphs.\n\t// This step is done here so that applying highlight in captions is possible for ParagraphTooLongAssessment.\n\ttext = text.replace( imageRegex, \"\" );\n\n\t// Replace line break tags containing attribute(s) with paragraph tag.\n\ttext = sanitizeLineBreakTag( text );\n\tconst paragraphs = matchParagraphs( text );\n\tconst paragraphsLength = [];\n\n\t// An optional custom helper to count length to use instead of countWords.\n\tconst customCountLength = researcher.getHelper( \"customCountLength\" );\n\n\tparagraphs.map( function( paragraph ) {\n\t\tparagraphsLength.push( {\n\t\t\tcountLength: customCountLength ? customCountLength( paragraph ) : countWords( paragraph ),\n\t\t\ttext: paragraph,\n\t\t} );\n\t} );\n\n\treturn filter( paragraphsLength, function( paragraphLength ) {\n\t\treturn ( paragraphLength.countLength > 0 );\n\t} );\n}\n"],"mappings":"AAAA,SAASA,UAAU;AACnB,OAAOC,oBAAoB;AAC3B,OAAOC,UAAU;AACjB,OAAOC,eAAe;AACtB,SAASC,MAAM,QAAQ,QAAQ;AAC/B,OAAOC,gBAAgB;AACvB,SAASC,wBAAwB;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUC,KAAK,EAAEC,UAAU,EAAG;EAC5C,IAAIC,IAAI,GAAGF,KAAK,CAACG,OAAO,CAAC,CAAC;EAC1BD,IAAI,GAAGJ,gBAAgB,CAAEI,IAAK,CAAC;EAC/BA,IAAI,GAAGH,wBAAwB,CAAEG,IAAI,EAAEF,KAAK,CAACI,WAAW,IAAIJ,KAAK,CAACI,WAAW,CAACC,UAAW,CAAC;;EAE1F;EACA;EACAH,IAAI,GAAGA,IAAI,CAACI,OAAO,CAAEb,UAAU,EAAE,EAAG,CAAC;;EAErC;EACAS,IAAI,GAAGR,oBAAoB,CAAEQ,IAAK,CAAC;EACnC,MAAMK,UAAU,GAAGX,eAAe,CAAEM,IAAK,CAAC;EAC1C,MAAMM,gBAAgB,GAAG,EAAE;;EAE3B;EACA,MAAMC,iBAAiB,GAAGR,UAAU,CAACS,SAAS,CAAE,mBAAoB,CAAC;EAErEH,UAAU,CAACI,GAAG,CAAE,UAAUC,SAAS,EAAG;IACrCJ,gBAAgB,CAACK,IAAI,CAAE;MACtBC,WAAW,EAAEL,iBAAiB,GAAGA,iBAAiB,CAAEG,SAAU,CAAC,GAAGjB,UAAU,CAAEiB,SAAU,CAAC;MACzFV,IAAI,EAAEU;IACP,CAAE,CAAC;EACJ,CAAE,CAAC;EAEH,OAAOf,MAAM,CAAEW,gBAAgB,EAAE,UAAUO,eAAe,EAAG;IAC5D,OAASA,eAAe,CAACD,WAAW,GAAG,CAAC;EACzC,CAAE,CAAC;AACJ","ignoreList":[]}
@@ -1,10 +1,5 @@
1
- "use strict";
1
+ import { reject } from "lodash";
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = _default;
7
- var _lodash = require("lodash");
8
3
  /**
9
4
  * Returns all paragraphs in a given Paper.
10
5
  * Remove paragraphs that do not contain sentences or only consist of links.
@@ -12,12 +7,12 @@ var _lodash = require("lodash");
12
7
  * @param {Paper} paper The current paper.
13
8
  * @returns {Paragraph[]} All paragraphs in the paper.
14
9
  */
15
- function _default(paper) {
10
+ export default function (paper) {
16
11
  let paragraphs = paper.getTree().findAll(node => node.name === "p");
17
12
 
18
13
  // Remove empty paragraphs without sentences and paragraphs only consisting of links.
19
- paragraphs = (0, _lodash.reject)(paragraphs, paragraph => paragraph.sentences.length === 0);
20
- paragraphs = (0, _lodash.reject)(paragraphs, paragraph => paragraph.childNodes.every(node => node.name === "a"));
14
+ paragraphs = reject(paragraphs, paragraph => paragraph.sentences.length === 0);
15
+ paragraphs = reject(paragraphs, paragraph => paragraph.childNodes.every(node => node.name === "a"));
21
16
  return paragraphs;
22
17
  }
23
18
  //# sourceMappingURL=getParagraphs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getParagraphs.js","names":["_lodash","require","_default","paper","paragraphs","getTree","findAll","node","name","reject","paragraph","sentences","length","childNodes","every"],"sources":["../../../src/languageProcessing/researches/getParagraphs.js"],"sourcesContent":["import { reject } from \"lodash\";\n\n/**\n * Returns all paragraphs in a given Paper.\n * Remove paragraphs that do not contain sentences or only consist of links.\n *\n * @param {Paper} paper The current paper.\n * @returns {Paragraph[]} All paragraphs in the paper.\n */\nexport default function( paper ) {\n\tlet paragraphs = paper.getTree().findAll( node => node.name === \"p\" );\n\n\t// Remove empty paragraphs without sentences and paragraphs only consisting of links.\n\tparagraphs = reject( paragraphs, paragraph => paragraph.sentences.length === 0 );\n\tparagraphs = reject( paragraphs, paragraph => paragraph.childNodes.every( node => node.name === \"a\" ) );\n\n\treturn paragraphs;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAAC,SAAUC,KAAK,EAAG;EAChC,IAAIC,UAAU,GAAGD,KAAK,CAACE,OAAO,CAAC,CAAC,CAACC,OAAO,CAAEC,IAAI,IAAIA,IAAI,CAACC,IAAI,KAAK,GAAI,CAAC;;EAErE;EACAJ,UAAU,GAAG,IAAAK,cAAM,EAAEL,UAAU,EAAEM,SAAS,IAAIA,SAAS,CAACC,SAAS,CAACC,MAAM,KAAK,CAAE,CAAC;EAChFR,UAAU,GAAG,IAAAK,cAAM,EAAEL,UAAU,EAAEM,SAAS,IAAIA,SAAS,CAACG,UAAU,CAACC,KAAK,CAAEP,IAAI,IAAIA,IAAI,CAACC,IAAI,KAAK,GAAI,CAAE,CAAC;EAEvG,OAAOJ,UAAU;AAClB","ignoreList":[]}
1
+ {"version":3,"file":"getParagraphs.js","names":["reject","paper","paragraphs","getTree","findAll","node","name","paragraph","sentences","length","childNodes","every"],"sources":["../../../src/languageProcessing/researches/getParagraphs.js"],"sourcesContent":["import { reject } from \"lodash\";\n\n/**\n * Returns all paragraphs in a given Paper.\n * Remove paragraphs that do not contain sentences or only consist of links.\n *\n * @param {Paper} paper The current paper.\n * @returns {Paragraph[]} All paragraphs in the paper.\n */\nexport default function( paper ) {\n\tlet paragraphs = paper.getTree().findAll( node => node.name === \"p\" );\n\n\t// Remove empty paragraphs without sentences and paragraphs only consisting of links.\n\tparagraphs = reject( paragraphs, paragraph => paragraph.sentences.length === 0 );\n\tparagraphs = reject( paragraphs, paragraph => paragraph.childNodes.every( node => node.name === \"a\" ) );\n\n\treturn paragraphs;\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,QAAQ;;AAE/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,UAAUC,KAAK,EAAG;EAChC,IAAIC,UAAU,GAAGD,KAAK,CAACE,OAAO,CAAC,CAAC,CAACC,OAAO,CAAEC,IAAI,IAAIA,IAAI,CAACC,IAAI,KAAK,GAAI,CAAC;;EAErE;EACAJ,UAAU,GAAGF,MAAM,CAAEE,UAAU,EAAEK,SAAS,IAAIA,SAAS,CAACC,SAAS,CAACC,MAAM,KAAK,CAAE,CAAC;EAChFP,UAAU,GAAGF,MAAM,CAAEE,UAAU,EAAEK,SAAS,IAAIA,SAAS,CAACG,UAAU,CAACC,KAAK,CAAEN,IAAI,IAAIA,IAAI,CAACC,IAAI,KAAK,GAAI,CAAE,CAAC;EAEvG,OAAOJ,UAAU;AAClB","ignoreList":[]}
@@ -1,17 +1,10 @@
1
- "use strict";
1
+ import getSentences from "../helpers/sentence/getSentences.js";
2
+ import { stripFullTags as stripHTMLTags } from "../helpers/sanitize/stripHTMLTags.js";
3
+ import Sentence from "../../languageProcessing/values/Sentence.js";
4
+ import { forEach } from "lodash";
5
+ import removeHtmlBlocks from "../helpers/html/htmlParser";
6
+ import { filterShortcodesFromHTML } from "../helpers";
2
7
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = getPassiveVoice;
7
- exports.getPeriphrasticPassives = exports.getMorphologicalPassives = void 0;
8
- var _getSentences = _interopRequireDefault(require("../helpers/sentence/getSentences.js"));
9
- var _stripHTMLTags = require("../helpers/sanitize/stripHTMLTags.js");
10
- var _Sentence = _interopRequireDefault(require("../../languageProcessing/values/Sentence.js"));
11
- var _lodash = require("lodash");
12
- var _htmlParser = _interopRequireDefault(require("../helpers/html/htmlParser"));
13
- var _helpers = require("../helpers");
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
8
  /**
16
9
  * Looks for morphological passive voice.
17
10
  * Supported morphological languages: "ru", "sv", "id", "ar", "he", "tr", "fa".
@@ -21,19 +14,19 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
21
14
  *
22
15
  * @returns {Object} The found passive sentences.
23
16
  */
24
- const getMorphologicalPassives = function (paper, researcher) {
17
+ export const getMorphologicalPassives = function (paper, researcher) {
25
18
  const isPassiveSentence = researcher.getHelper("isPassiveSentence");
26
19
  let text = paper.getText();
27
- text = (0, _htmlParser.default)(text);
28
- text = (0, _helpers.filterShortcodesFromHTML)(text, paper._attributes && paper._attributes.shortcodes);
20
+ text = removeHtmlBlocks(text);
21
+ text = filterShortcodesFromHTML(text, paper._attributes && paper._attributes.shortcodes);
29
22
  const memoizedTokenizer = researcher.getHelper("memoizedTokenizer");
30
- const sentences = (0, _getSentences.default)(text, memoizedTokenizer).map(function (sentence) {
31
- return new _Sentence.default(sentence);
23
+ const sentences = getSentences(text, memoizedTokenizer).map(function (sentence) {
24
+ return new Sentence(sentence);
32
25
  });
33
26
  const totalNumberSentences = sentences.length;
34
27
  const passiveSentences = [];
35
- (0, _lodash.forEach)(sentences, function (sentence) {
36
- const strippedSentence = (0, _stripHTMLTags.stripFullTags)(sentence.getSentenceText()).toLocaleLowerCase();
28
+ forEach(sentences, function (sentence) {
29
+ const strippedSentence = stripHTMLTags(sentence.getSentenceText()).toLocaleLowerCase();
37
30
  sentence.setPassive(isPassiveSentence(strippedSentence));
38
31
  if (sentence.isPassive() === true) {
39
32
  passiveSentences.push(sentence.getSentenceText());
@@ -54,20 +47,19 @@ const getMorphologicalPassives = function (paper, researcher) {
54
47
  *
55
48
  * @returns {Object} The found passive sentences.
56
49
  */
57
- exports.getMorphologicalPassives = getMorphologicalPassives;
58
- const getPeriphrasticPassives = function (paper, researcher) {
50
+ export const getPeriphrasticPassives = function (paper, researcher) {
59
51
  const getClauses = researcher.getHelper("getClauses");
60
52
  let text = paper.getText();
61
- text = (0, _htmlParser.default)(text);
62
- text = (0, _helpers.filterShortcodesFromHTML)(text, paper._attributes && paper._attributes.shortcodes);
53
+ text = removeHtmlBlocks(text);
54
+ text = filterShortcodesFromHTML(text, paper._attributes && paper._attributes.shortcodes);
63
55
  const memoizedTokenizer = researcher.getHelper("memoizedTokenizer");
64
- const sentences = (0, _getSentences.default)(text, memoizedTokenizer).map(function (sentence) {
65
- return new _Sentence.default(sentence);
56
+ const sentences = getSentences(text, memoizedTokenizer).map(function (sentence) {
57
+ return new Sentence(sentence);
66
58
  });
67
59
  const totalNumberSentences = sentences.length;
68
60
  const passiveSentences = [];
69
- (0, _lodash.forEach)(sentences, function (sentence) {
70
- const strippedSentence = (0, _stripHTMLTags.stripFullTags)(sentence.getSentenceText()).toLocaleLowerCase();
61
+ forEach(sentences, function (sentence) {
62
+ const strippedSentence = stripHTMLTags(sentence.getSentenceText()).toLocaleLowerCase();
71
63
 
72
64
  // The functionality based on sentencePart objects should be rewritten using array indices of stopwords and auxiliaries.
73
65
 
@@ -96,7 +88,6 @@ const getPeriphrasticPassives = function (paper, researcher) {
96
88
  *
97
89
  * @returns {Object} The found passive sentences.
98
90
  */
99
- exports.getPeriphrasticPassives = getPeriphrasticPassives;
100
91
  const getMorphologicalAndPeriphrasticPassive = function (paper, researcher) {
101
92
  const morphologicalPassives = getMorphologicalPassives(paper, researcher);
102
93
  const periphrasticPassives = getPeriphrasticPassives(paper, researcher).passives;
@@ -114,7 +105,7 @@ const getMorphologicalAndPeriphrasticPassive = function (paper, researcher) {
114
105
  *
115
106
  * @returns {Object} The found passive sentences.
116
107
  */
117
- function getPassiveVoice(paper, researcher) {
108
+ export default function getPassiveVoice(paper, researcher) {
118
109
  const passiveType = researcher.getConfig("passiveConstructionType");
119
110
  if (passiveType === "periphrastic") {
120
111
  return getPeriphrasticPassives(paper, researcher);
@@ -1 +1 @@
1
- {"version":3,"file":"getPassiveVoiceResult.js","names":["_getSentences","_interopRequireDefault","require","_stripHTMLTags","_Sentence","_lodash","_htmlParser","_helpers","e","__esModule","default","getMorphologicalPassives","paper","researcher","isPassiveSentence","getHelper","text","getText","removeHtmlBlocks","filterShortcodesFromHTML","_attributes","shortcodes","memoizedTokenizer","sentences","getSentences","map","sentence","Sentence","totalNumberSentences","length","passiveSentences","forEach","strippedSentence","stripHTMLTags","getSentenceText","toLocaleLowerCase","setPassive","isPassive","push","total","passives","exports","getPeriphrasticPassives","getClauses","clauses","setClauses","getMorphologicalAndPeriphrasticPassive","morphologicalPassives","periphrasticPassives","concat","getPassiveVoice","passiveType","getConfig"],"sources":["../../../src/languageProcessing/researches/getPassiveVoiceResult.js"],"sourcesContent":["import getSentences from \"../helpers/sentence/getSentences.js\";\nimport { stripFullTags as stripHTMLTags } from \"../helpers/sanitize/stripHTMLTags.js\";\nimport Sentence from \"../../languageProcessing/values/Sentence.js\";\n\nimport { forEach } from \"lodash\";\nimport removeHtmlBlocks from \"../helpers/html/htmlParser\";\nimport { filterShortcodesFromHTML } from \"../helpers\";\n\n/**\n * Looks for morphological passive voice.\n * Supported morphological languages: \"ru\", \"sv\", \"id\", \"ar\", \"he\", \"tr\", \"fa\".\n * Farsi is implemented as morphological because the periphrastic passives are used as compound verbs (among other compound passives).\n * @param {Paper} paper The paper object.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Object} The found passive sentences.\n */\nexport const getMorphologicalPassives = function( paper, researcher ) {\n\tconst isPassiveSentence = researcher.getHelper( \"isPassiveSentence\" );\n\tlet text = paper.getText();\n\ttext = removeHtmlBlocks( text );\n\ttext = filterShortcodesFromHTML( text, paper._attributes && paper._attributes.shortcodes );\n\tconst memoizedTokenizer = researcher.getHelper( \"memoizedTokenizer\" );\n\tconst sentences = getSentences( text, memoizedTokenizer )\n\t\t.map( function( sentence ) {\n\t\t\treturn new Sentence( sentence );\n\t\t} );\n\tconst totalNumberSentences = sentences.length;\n\tconst passiveSentences = [];\n\n\tforEach( sentences, function( sentence ) {\n\t\tconst strippedSentence = stripHTMLTags( sentence.getSentenceText() ).toLocaleLowerCase();\n\n\t\tsentence.setPassive( isPassiveSentence( strippedSentence ) );\n\n\t\tif ( sentence.isPassive() === true ) {\n\t\t\tpassiveSentences.push( sentence.getSentenceText() );\n\t\t}\n\t} );\n\n\treturn {\n\t\ttotal: totalNumberSentences,\n\t\tpassives: passiveSentences,\n\t};\n};\n\n/**\n * Looks for periphrastic passive voice.\n * Supported periphrastic languages: \"en\", \"de\", \"nl\", \"fr\", \"es\", \"it\", \"pt\", \"pl\", \"sk\".\n *\n * @param {Paper} paper The paper object.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Object} The found passive sentences.\n */\nexport const getPeriphrasticPassives = function( paper, researcher ) {\n\tconst getClauses = researcher.getHelper( \"getClauses\" );\n\tlet text = paper.getText();\n\ttext = removeHtmlBlocks( text );\n\ttext = filterShortcodesFromHTML( text, paper._attributes && paper._attributes.shortcodes );\n\tconst memoizedTokenizer = researcher.getHelper( \"memoizedTokenizer\" );\n\tconst sentences = getSentences( text, memoizedTokenizer )\n\t\t.map( function( sentence ) {\n\t\t\treturn new Sentence( sentence );\n\t\t} );\n\tconst totalNumberSentences = sentences.length;\n\tconst passiveSentences = [];\n\n\tforEach( sentences, function( sentence ) {\n\t\tconst strippedSentence = stripHTMLTags( sentence.getSentenceText() ).toLocaleLowerCase();\n\n\t\t// The functionality based on sentencePart objects should be rewritten using array indices of stopwords and auxiliaries.\n\n\t\t// Divide a sentence into clauses and return an array of clause objects that have been checked for passiveness.\n\t\tconst clauses = getClauses( strippedSentence );\n\t\tsentence.setClauses( clauses );\n\n\t\t// Check sentence passiveness based on its clause passiveness.\n\t\tif ( sentence.isPassive() ) {\n\t\t\tpassiveSentences.push( sentence.getSentenceText() );\n\t\t}\n\t} );\n\n\treturn {\n\t\ttotal: totalNumberSentences,\n\t\tpassives: passiveSentences,\n\t};\n};\n\n/**\n * Looks for both morphological and periphrastic passive voice\n * Supported languages with both morphological and periphrastic passives: \"hu\", \"nb\".\n * Due to technical difficulties \"nb\" is only implemented as periphrastic at the moment. Languages that have not been implemented yet: \"da\".\n *\n * @param {Paper} paper The paper object.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Object} The found passive sentences.\n */\nconst getMorphologicalAndPeriphrasticPassive = function( paper, researcher ) {\n\tconst morphologicalPassives = getMorphologicalPassives( paper, researcher );\n\tconst periphrasticPassives = getPeriphrasticPassives( paper, researcher ).passives;\n\n\treturn {\n\t\ttotal: morphologicalPassives.total,\n\t\tpassives: periphrasticPassives.concat( morphologicalPassives.passives ),\n\t};\n};\n\n/**\n * Looks for passive voice.\n *\n * @param {Paper} paper The paper object.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Object} The found passive sentences.\n */\nexport default function getPassiveVoice( paper, researcher ) {\n\tconst passiveType = researcher.getConfig( \"passiveConstructionType\" );\n\n\tif ( passiveType === \"periphrastic\" ) {\n\t\treturn getPeriphrasticPassives( paper, researcher );\n\t}\n\tif ( passiveType === \"morphological\" ) {\n\t\treturn getMorphologicalPassives( paper, researcher );\n\t}\n\n\treturn getMorphologicalAndPeriphrasticPassive( paper, researcher );\n}\n"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"file":"getPassiveVoiceResult.js","names":["getSentences","stripFullTags","stripHTMLTags","Sentence","forEach","removeHtmlBlocks","filterShortcodesFromHTML","getMorphologicalPassives","paper","researcher","isPassiveSentence","getHelper","text","getText","_attributes","shortcodes","memoizedTokenizer","sentences","map","sentence","totalNumberSentences","length","passiveSentences","strippedSentence","getSentenceText","toLocaleLowerCase","setPassive","isPassive","push","total","passives","getPeriphrasticPassives","getClauses","clauses","setClauses","getMorphologicalAndPeriphrasticPassive","morphologicalPassives","periphrasticPassives","concat","getPassiveVoice","passiveType","getConfig"],"sources":["../../../src/languageProcessing/researches/getPassiveVoiceResult.js"],"sourcesContent":["import getSentences from \"../helpers/sentence/getSentences.js\";\nimport { stripFullTags as stripHTMLTags } from \"../helpers/sanitize/stripHTMLTags.js\";\nimport Sentence from \"../../languageProcessing/values/Sentence.js\";\n\nimport { forEach } from \"lodash\";\nimport removeHtmlBlocks from \"../helpers/html/htmlParser\";\nimport { filterShortcodesFromHTML } from \"../helpers\";\n\n/**\n * Looks for morphological passive voice.\n * Supported morphological languages: \"ru\", \"sv\", \"id\", \"ar\", \"he\", \"tr\", \"fa\".\n * Farsi is implemented as morphological because the periphrastic passives are used as compound verbs (among other compound passives).\n * @param {Paper} paper The paper object.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Object} The found passive sentences.\n */\nexport const getMorphologicalPassives = function( paper, researcher ) {\n\tconst isPassiveSentence = researcher.getHelper( \"isPassiveSentence\" );\n\tlet text = paper.getText();\n\ttext = removeHtmlBlocks( text );\n\ttext = filterShortcodesFromHTML( text, paper._attributes && paper._attributes.shortcodes );\n\tconst memoizedTokenizer = researcher.getHelper( \"memoizedTokenizer\" );\n\tconst sentences = getSentences( text, memoizedTokenizer )\n\t\t.map( function( sentence ) {\n\t\t\treturn new Sentence( sentence );\n\t\t} );\n\tconst totalNumberSentences = sentences.length;\n\tconst passiveSentences = [];\n\n\tforEach( sentences, function( sentence ) {\n\t\tconst strippedSentence = stripHTMLTags( sentence.getSentenceText() ).toLocaleLowerCase();\n\n\t\tsentence.setPassive( isPassiveSentence( strippedSentence ) );\n\n\t\tif ( sentence.isPassive() === true ) {\n\t\t\tpassiveSentences.push( sentence.getSentenceText() );\n\t\t}\n\t} );\n\n\treturn {\n\t\ttotal: totalNumberSentences,\n\t\tpassives: passiveSentences,\n\t};\n};\n\n/**\n * Looks for periphrastic passive voice.\n * Supported periphrastic languages: \"en\", \"de\", \"nl\", \"fr\", \"es\", \"it\", \"pt\", \"pl\", \"sk\".\n *\n * @param {Paper} paper The paper object.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Object} The found passive sentences.\n */\nexport const getPeriphrasticPassives = function( paper, researcher ) {\n\tconst getClauses = researcher.getHelper( \"getClauses\" );\n\tlet text = paper.getText();\n\ttext = removeHtmlBlocks( text );\n\ttext = filterShortcodesFromHTML( text, paper._attributes && paper._attributes.shortcodes );\n\tconst memoizedTokenizer = researcher.getHelper( \"memoizedTokenizer\" );\n\tconst sentences = getSentences( text, memoizedTokenizer )\n\t\t.map( function( sentence ) {\n\t\t\treturn new Sentence( sentence );\n\t\t} );\n\tconst totalNumberSentences = sentences.length;\n\tconst passiveSentences = [];\n\n\tforEach( sentences, function( sentence ) {\n\t\tconst strippedSentence = stripHTMLTags( sentence.getSentenceText() ).toLocaleLowerCase();\n\n\t\t// The functionality based on sentencePart objects should be rewritten using array indices of stopwords and auxiliaries.\n\n\t\t// Divide a sentence into clauses and return an array of clause objects that have been checked for passiveness.\n\t\tconst clauses = getClauses( strippedSentence );\n\t\tsentence.setClauses( clauses );\n\n\t\t// Check sentence passiveness based on its clause passiveness.\n\t\tif ( sentence.isPassive() ) {\n\t\t\tpassiveSentences.push( sentence.getSentenceText() );\n\t\t}\n\t} );\n\n\treturn {\n\t\ttotal: totalNumberSentences,\n\t\tpassives: passiveSentences,\n\t};\n};\n\n/**\n * Looks for both morphological and periphrastic passive voice\n * Supported languages with both morphological and periphrastic passives: \"hu\", \"nb\".\n * Due to technical difficulties \"nb\" is only implemented as periphrastic at the moment. Languages that have not been implemented yet: \"da\".\n *\n * @param {Paper} paper The paper object.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Object} The found passive sentences.\n */\nconst getMorphologicalAndPeriphrasticPassive = function( paper, researcher ) {\n\tconst morphologicalPassives = getMorphologicalPassives( paper, researcher );\n\tconst periphrasticPassives = getPeriphrasticPassives( paper, researcher ).passives;\n\n\treturn {\n\t\ttotal: morphologicalPassives.total,\n\t\tpassives: periphrasticPassives.concat( morphologicalPassives.passives ),\n\t};\n};\n\n/**\n * Looks for passive voice.\n *\n * @param {Paper} paper The paper object.\n * @param {Researcher} researcher The researcher.\n *\n * @returns {Object} The found passive sentences.\n */\nexport default function getPassiveVoice( paper, researcher ) {\n\tconst passiveType = researcher.getConfig( \"passiveConstructionType\" );\n\n\tif ( passiveType === \"periphrastic\" ) {\n\t\treturn getPeriphrasticPassives( paper, researcher );\n\t}\n\tif ( passiveType === \"morphological\" ) {\n\t\treturn getMorphologicalPassives( paper, researcher );\n\t}\n\n\treturn getMorphologicalAndPeriphrasticPassive( paper, researcher );\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1,14 +1,8 @@
1
- "use strict";
1
+ import { take } from "lodash";
2
+ import { collapseProminentWordsOnStem, filterProminentWords, getProminentWords, retrieveAbbreviations, sortProminentWords } from "../helpers/prominentWords/determineProminentWords";
3
+ import removeURLs from "../helpers/sanitize/removeURLs.js";
4
+ import removeEmailAddresses from "../helpers/sanitize/removeEmailAddresses";
2
5
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _lodash = require("lodash");
8
- var _determineProminentWords = require("../helpers/prominentWords/determineProminentWords");
9
- var _removeURLs = _interopRequireDefault(require("../helpers/sanitize/removeURLs.js"));
10
- var _removeEmailAddresses = _interopRequireDefault(require("../helpers/sanitize/removeEmailAddresses"));
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
6
  /**
13
7
  * Retrieves the prominent words from the given paper.
14
8
  *
@@ -26,20 +20,20 @@ function getProminentWordsForInsights(paper, researcher) {
26
20
  const getWordsCustomHelper = researcher.getHelper("getWordsCustomHelper");
27
21
  let text = paper.getText();
28
22
  // We don't want to include URLs or email addresses in prominent words.
29
- text = (0, _removeURLs.default)(text);
30
- text = (0, _removeEmailAddresses.default)(text);
23
+ text = removeURLs(text);
24
+ text = removeEmailAddresses(text);
31
25
 
32
26
  // If the language has a custom helper to get words from the text, we don't retrieve the abbreviation.
33
- const abbreviations = getWordsCustomHelper ? [] : (0, _determineProminentWords.retrieveAbbreviations)(text);
34
- const prominentWordsFromText = (0, _determineProminentWords.getProminentWords)(text, abbreviations, stemmer, functionWords, getWordsCustomHelper);
35
- const collapsedWords = (0, _determineProminentWords.collapseProminentWordsOnStem)(prominentWordsFromText);
36
- (0, _determineProminentWords.sortProminentWords)(collapsedWords);
27
+ const abbreviations = getWordsCustomHelper ? [] : retrieveAbbreviations(text);
28
+ const prominentWordsFromText = getProminentWords(text, abbreviations, stemmer, functionWords, getWordsCustomHelper);
29
+ const collapsedWords = collapseProminentWordsOnStem(prominentWordsFromText);
30
+ sortProminentWords(collapsedWords);
37
31
 
38
32
  /*
39
33
  * Collapse the list of prominent words on stems, sort it, filter out all words that occur less than
40
34
  * 5 times in the text. Return the 20 top items from this list.
41
35
  */
42
- return (0, _lodash.take)((0, _determineProminentWords.filterProminentWords)(collapsedWords, 5), 20);
36
+ return take(filterProminentWords(collapsedWords, 5), 20);
43
37
  }
44
- var _default = exports.default = getProminentWordsForInsights;
38
+ export default getProminentWordsForInsights;
45
39
  //# sourceMappingURL=getProminentWordsForInsights.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getProminentWordsForInsights.js","names":["_lodash","require","_determineProminentWords","_removeURLs","_interopRequireDefault","_removeEmailAddresses","e","__esModule","default","getProminentWordsForInsights","paper","researcher","functionWords","getConfig","customStemmer","getHelper","stemmer","getWordsCustomHelper","text","getText","removeURLs","removeEmailAddresses","abbreviations","retrieveAbbreviations","prominentWordsFromText","getProminentWords","collapsedWords","collapseProminentWordsOnStem","sortProminentWords","take","filterProminentWords","_default","exports"],"sources":["../../../src/languageProcessing/researches/getProminentWordsForInsights.js"],"sourcesContent":["import { take } from \"lodash\";\nimport {\n\tcollapseProminentWordsOnStem,\n\tfilterProminentWords,\n\tgetProminentWords,\n\tretrieveAbbreviations,\n\tsortProminentWords,\n} from \"../helpers/prominentWords/determineProminentWords\";\nimport removeURLs from \"../helpers/sanitize/removeURLs.js\";\nimport removeEmailAddresses from \"../helpers/sanitize/removeEmailAddresses\";\n\n/**\n * Retrieves the prominent words from the given paper.\n *\n * @param {Paper} paper The paper to determine the prominent words of.\n * @param {Researcher} researcher The researcher to use for analysis.\n *\n * @returns {WordCombination[]} Prominent words for this paper, filtered and sorted.\n */\nfunction getProminentWordsForInsights( paper, researcher ) {\n\tconst functionWords = researcher.getConfig( \"functionWords\" );\n\t// An optional custom helper to return custom function to return the stem of a word.\n\tconst customStemmer = researcher.getHelper( \"customGetStemmer\" );\n\tconst stemmer = customStemmer ? customStemmer( researcher ) : researcher.getHelper( \"getStemmer\" )( researcher );\n\t// An optional custom helper to get words from the text.\n\tconst getWordsCustomHelper = researcher.getHelper( \"getWordsCustomHelper\" );\n\n\tlet text = paper.getText();\n\t// We don't want to include URLs or email addresses in prominent words.\n\ttext = removeURLs( text );\n\ttext = removeEmailAddresses( text );\n\n\t// If the language has a custom helper to get words from the text, we don't retrieve the abbreviation.\n\tconst abbreviations = getWordsCustomHelper ? [] : retrieveAbbreviations( text );\n\n\tconst prominentWordsFromText = getProminentWords( text, abbreviations, stemmer, functionWords, getWordsCustomHelper );\n\n\tconst collapsedWords = collapseProminentWordsOnStem( prominentWordsFromText );\n\tsortProminentWords( collapsedWords );\n\n\t/*\n\t * Collapse the list of prominent words on stems, sort it, filter out all words that occur less than\n\t * 5 times in the text. Return the 20 top items from this list.\n\t */\n\treturn take( filterProminentWords( collapsedWords, 5 ), 20 );\n}\n\nexport default getProminentWordsForInsights;\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,wBAAA,GAAAD,OAAA;AAOA,IAAAE,WAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAD,sBAAA,CAAAH,OAAA;AAA4E,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASG,4BAA4BA,CAAEC,KAAK,EAAEC,UAAU,EAAG;EAC1D,MAAMC,aAAa,GAAGD,UAAU,CAACE,SAAS,CAAE,eAAgB,CAAC;EAC7D;EACA,MAAMC,aAAa,GAAGH,UAAU,CAACI,SAAS,CAAE,kBAAmB,CAAC;EAChE,MAAMC,OAAO,GAAGF,aAAa,GAAGA,aAAa,CAAEH,UAAW,CAAC,GAAGA,UAAU,CAACI,SAAS,CAAE,YAAa,CAAC,CAAEJ,UAAW,CAAC;EAChH;EACA,MAAMM,oBAAoB,GAAGN,UAAU,CAACI,SAAS,CAAE,sBAAuB,CAAC;EAE3E,IAAIG,IAAI,GAAGR,KAAK,CAACS,OAAO,CAAC,CAAC;EAC1B;EACAD,IAAI,GAAG,IAAAE,mBAAU,EAAEF,IAAK,CAAC;EACzBA,IAAI,GAAG,IAAAG,6BAAoB,EAAEH,IAAK,CAAC;;EAEnC;EACA,MAAMI,aAAa,GAAGL,oBAAoB,GAAG,EAAE,GAAG,IAAAM,8CAAqB,EAAEL,IAAK,CAAC;EAE/E,MAAMM,sBAAsB,GAAG,IAAAC,0CAAiB,EAAEP,IAAI,EAAEI,aAAa,EAAEN,OAAO,EAAEJ,aAAa,EAAEK,oBAAqB,CAAC;EAErH,MAAMS,cAAc,GAAG,IAAAC,qDAA4B,EAAEH,sBAAuB,CAAC;EAC7E,IAAAI,2CAAkB,EAAEF,cAAe,CAAC;;EAEpC;AACD;AACA;AACA;EACC,OAAO,IAAAG,YAAI,EAAE,IAAAC,6CAAoB,EAAEJ,cAAc,EAAE,CAAE,CAAC,EAAE,EAAG,CAAC;AAC7D;AAAC,IAAAK,QAAA,GAAAC,OAAA,CAAAxB,OAAA,GAEcC,4BAA4B","ignoreList":[]}
1
+ {"version":3,"file":"getProminentWordsForInsights.js","names":["take","collapseProminentWordsOnStem","filterProminentWords","getProminentWords","retrieveAbbreviations","sortProminentWords","removeURLs","removeEmailAddresses","getProminentWordsForInsights","paper","researcher","functionWords","getConfig","customStemmer","getHelper","stemmer","getWordsCustomHelper","text","getText","abbreviations","prominentWordsFromText","collapsedWords"],"sources":["../../../src/languageProcessing/researches/getProminentWordsForInsights.js"],"sourcesContent":["import { take } from \"lodash\";\nimport {\n\tcollapseProminentWordsOnStem,\n\tfilterProminentWords,\n\tgetProminentWords,\n\tretrieveAbbreviations,\n\tsortProminentWords,\n} from \"../helpers/prominentWords/determineProminentWords\";\nimport removeURLs from \"../helpers/sanitize/removeURLs.js\";\nimport removeEmailAddresses from \"../helpers/sanitize/removeEmailAddresses\";\n\n/**\n * Retrieves the prominent words from the given paper.\n *\n * @param {Paper} paper The paper to determine the prominent words of.\n * @param {Researcher} researcher The researcher to use for analysis.\n *\n * @returns {WordCombination[]} Prominent words for this paper, filtered and sorted.\n */\nfunction getProminentWordsForInsights( paper, researcher ) {\n\tconst functionWords = researcher.getConfig( \"functionWords\" );\n\t// An optional custom helper to return custom function to return the stem of a word.\n\tconst customStemmer = researcher.getHelper( \"customGetStemmer\" );\n\tconst stemmer = customStemmer ? customStemmer( researcher ) : researcher.getHelper( \"getStemmer\" )( researcher );\n\t// An optional custom helper to get words from the text.\n\tconst getWordsCustomHelper = researcher.getHelper( \"getWordsCustomHelper\" );\n\n\tlet text = paper.getText();\n\t// We don't want to include URLs or email addresses in prominent words.\n\ttext = removeURLs( text );\n\ttext = removeEmailAddresses( text );\n\n\t// If the language has a custom helper to get words from the text, we don't retrieve the abbreviation.\n\tconst abbreviations = getWordsCustomHelper ? [] : retrieveAbbreviations( text );\n\n\tconst prominentWordsFromText = getProminentWords( text, abbreviations, stemmer, functionWords, getWordsCustomHelper );\n\n\tconst collapsedWords = collapseProminentWordsOnStem( prominentWordsFromText );\n\tsortProminentWords( collapsedWords );\n\n\t/*\n\t * Collapse the list of prominent words on stems, sort it, filter out all words that occur less than\n\t * 5 times in the text. Return the 20 top items from this list.\n\t */\n\treturn take( filterProminentWords( collapsedWords, 5 ), 20 );\n}\n\nexport default getProminentWordsForInsights;\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,QAAQ;AAC7B,SACCC,4BAA4B,EAC5BC,oBAAoB,EACpBC,iBAAiB,EACjBC,qBAAqB,EACrBC,kBAAkB;AAEnB,OAAOC,UAAU;AACjB,OAAOC,oBAAoB;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,4BAA4BA,CAAEC,KAAK,EAAEC,UAAU,EAAG;EAC1D,MAAMC,aAAa,GAAGD,UAAU,CAACE,SAAS,CAAE,eAAgB,CAAC;EAC7D;EACA,MAAMC,aAAa,GAAGH,UAAU,CAACI,SAAS,CAAE,kBAAmB,CAAC;EAChE,MAAMC,OAAO,GAAGF,aAAa,GAAGA,aAAa,CAAEH,UAAW,CAAC,GAAGA,UAAU,CAACI,SAAS,CAAE,YAAa,CAAC,CAAEJ,UAAW,CAAC;EAChH;EACA,MAAMM,oBAAoB,GAAGN,UAAU,CAACI,SAAS,CAAE,sBAAuB,CAAC;EAE3E,IAAIG,IAAI,GAAGR,KAAK,CAACS,OAAO,CAAC,CAAC;EAC1B;EACAD,IAAI,GAAGX,UAAU,CAAEW,IAAK,CAAC;EACzBA,IAAI,GAAGV,oBAAoB,CAAEU,IAAK,CAAC;;EAEnC;EACA,MAAME,aAAa,GAAGH,oBAAoB,GAAG,EAAE,GAAGZ,qBAAqB,CAAEa,IAAK,CAAC;EAE/E,MAAMG,sBAAsB,GAAGjB,iBAAiB,CAAEc,IAAI,EAAEE,aAAa,EAAEJ,OAAO,EAAEJ,aAAa,EAAEK,oBAAqB,CAAC;EAErH,MAAMK,cAAc,GAAGpB,4BAA4B,CAAEmB,sBAAuB,CAAC;EAC7Ef,kBAAkB,CAAEgB,cAAe,CAAC;;EAEpC;AACD;AACA;AACA;EACC,OAAOrB,IAAI,CAAEE,oBAAoB,CAAEmB,cAAc,EAAE,CAAE,CAAC,EAAE,EAAG,CAAC;AAC7D;AAEA,eAAeb,4BAA4B","ignoreList":[]}
@@ -1,17 +1,11 @@
1
- "use strict";
1
+ import { take } from "lodash";
2
+ import countWords from "../helpers/word/countWords";
3
+ import { collapseProminentWordsOnStem, filterProminentWords, getProminentWords, getProminentWordsFromPaperAttributes, retrieveAbbreviations, sortProminentWords } from "../helpers/prominentWords/determineProminentWords";
4
+ import { getSubheadingsTopLevel, removeSubheadingsTopLevel } from "../helpers/html/getSubheadings";
5
+ import baseStemmer from "../helpers/morphology/baseStemmer";
6
+ import removeURLs from "../helpers/sanitize/removeURLs.js";
7
+ import removeEmailAddresses from "../helpers/sanitize/removeEmailAddresses";
2
8
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _lodash = require("lodash");
8
- var _countWords = _interopRequireDefault(require("../helpers/word/countWords"));
9
- var _determineProminentWords = require("../helpers/prominentWords/determineProminentWords");
10
- var _getSubheadings = require("../helpers/html/getSubheadings");
11
- var _baseStemmer = _interopRequireDefault(require("../helpers/morphology/baseStemmer"));
12
- var _removeURLs = _interopRequireDefault(require("../helpers/sanitize/removeURLs.js"));
13
- var _removeEmailAddresses = _interopRequireDefault(require("../helpers/sanitize/removeEmailAddresses"));
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
9
  /**
16
10
  * Removes URLs and email addresses from the text.
17
11
  *
@@ -20,8 +14,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
20
14
  * @returns {string} The text without URLs and email addresses.
21
15
  */
22
16
  const sanitizeText = function (text) {
23
- text = (0, _removeURLs.default)(text);
24
- return (0, _removeEmailAddresses.default)(text);
17
+ text = removeURLs(text);
18
+ return removeEmailAddresses(text);
25
19
  };
26
20
 
27
21
  /**
@@ -60,25 +54,25 @@ function getProminentWordsForInternalLinking(paper, researcher) {
60
54
  if (customCountLength(text) < 200) {
61
55
  return result;
62
56
  }
63
- } else if ((0, _countWords.default)(text) < 100) {
57
+ } else if (countWords(text) < 100) {
64
58
  return result;
65
59
  }
66
- const subheadings = (0, _getSubheadings.getSubheadingsTopLevel)(text).map(subheading => subheading[2]);
60
+ const subheadings = getSubheadingsTopLevel(text).map(subheading => subheading[2]);
67
61
  const attributes = [paper.getKeyword(), paper.getSynonyms(), title, metadescription, subheadings.join(" ")];
68
62
 
69
63
  // If the language has a custom helper to get words from the text, we don't retrieve the abbreviation.
70
- const abbreviations = getWordsCustomHelper ? [] : (0, _determineProminentWords.retrieveAbbreviations)(text.concat(attributes.join(" ")));
71
- const removedSubheadingText = (0, _getSubheadings.removeSubheadingsTopLevel)(text);
72
- const prominentWordsFromText = (0, _determineProminentWords.getProminentWords)(removedSubheadingText, abbreviations, stemmer, functionWords, getWordsCustomHelper);
73
- const prominentWordsFromPaperAttributes = (0, _determineProminentWords.getProminentWordsFromPaperAttributes)(attributes, abbreviations, stemmer, functionWords, getWordsCustomHelper);
64
+ const abbreviations = getWordsCustomHelper ? [] : retrieveAbbreviations(text.concat(attributes.join(" ")));
65
+ const removedSubheadingText = removeSubheadingsTopLevel(text);
66
+ const prominentWordsFromText = getProminentWords(removedSubheadingText, abbreviations, stemmer, functionWords, getWordsCustomHelper);
67
+ const prominentWordsFromPaperAttributes = getProminentWordsFromPaperAttributes(attributes, abbreviations, stemmer, functionWords, getWordsCustomHelper);
74
68
 
75
69
  /*
76
70
  * If a word is used in any of the attributes, its weight is automatically high.
77
71
  * To make sure the word survives weight filters and gets saved in the database, make the number of occurrences times-3.
78
72
  */
79
73
  prominentWordsFromPaperAttributes.forEach(relevantWord => relevantWord.setOccurrences(relevantWord.getOccurrences() * 3));
80
- const collapsedWords = (0, _determineProminentWords.collapseProminentWordsOnStem)(prominentWordsFromPaperAttributes.concat(prominentWordsFromText));
81
- (0, _determineProminentWords.sortProminentWords)(collapsedWords);
74
+ const collapsedWords = collapseProminentWordsOnStem(prominentWordsFromPaperAttributes.concat(prominentWordsFromText));
75
+ sortProminentWords(collapsedWords);
82
76
 
83
77
  /*
84
78
  * If morphology data are available for a language, the minimum number of occurrences to consider a word to be prominent is 4.
@@ -88,7 +82,7 @@ function getProminentWordsForInternalLinking(paper, researcher) {
88
82
  * If morphology data are not available, and therefore word forms are not recognized, the minimum threshold is lowered to 2.
89
83
  */
90
84
  let minimumNumberOfOccurrences = 4;
91
- if (stemmer === _baseStemmer.default) {
85
+ if (stemmer === baseStemmer) {
92
86
  minimumNumberOfOccurrences = 2;
93
87
  }
94
88
 
@@ -96,8 +90,8 @@ function getProminentWordsForInternalLinking(paper, researcher) {
96
90
  * Return the 100 top items from the collapsed and sorted list. The number is picked deliberately to prevent larger
97
91
  * articles from getting too long of lists.
98
92
  */
99
- result.prominentWords = (0, _lodash.take)((0, _determineProminentWords.filterProminentWords)(collapsedWords, minimumNumberOfOccurrences), 100);
93
+ result.prominentWords = take(filterProminentWords(collapsedWords, minimumNumberOfOccurrences), 100);
100
94
  return result;
101
95
  }
102
- var _default = exports.default = getProminentWordsForInternalLinking;
96
+ export default getProminentWordsForInternalLinking;
103
97
  //# sourceMappingURL=getProminentWordsForInternalLinking.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getProminentWordsForInternalLinking.js","names":["_lodash","require","_countWords","_interopRequireDefault","_determineProminentWords","_getSubheadings","_baseStemmer","_removeURLs","_removeEmailAddresses","e","__esModule","default","sanitizeText","text","removeURLs","removeEmailAddresses","getProminentWordsForInternalLinking","paper","researcher","functionWords","getConfig","customStemmer","getHelper","stemmer","getWordsCustomHelper","customCountLength","getText","metadescription","getDescription","title","getTitle","result","hasMetaDescription","hasTitle","prominentWords","countWords","subheadings","getSubheadingsTopLevel","map","subheading","attributes","getKeyword","getSynonyms","join","abbreviations","retrieveAbbreviations","concat","removedSubheadingText","removeSubheadingsTopLevel","prominentWordsFromText","getProminentWords","prominentWordsFromPaperAttributes","getProminentWordsFromPaperAttributes","forEach","relevantWord","setOccurrences","getOccurrences","collapsedWords","collapseProminentWordsOnStem","sortProminentWords","minimumNumberOfOccurrences","baseStemmer","take","filterProminentWords","_default","exports"],"sources":["../../../src/languageProcessing/researches/getProminentWordsForInternalLinking.js"],"sourcesContent":["import { take } from \"lodash\";\nimport countWords from \"../helpers/word/countWords\";\nimport {\n\tcollapseProminentWordsOnStem,\n\tfilterProminentWords,\n\tgetProminentWords,\n\tgetProminentWordsFromPaperAttributes,\n\tretrieveAbbreviations,\n\tsortProminentWords,\n} from \"../helpers/prominentWords/determineProminentWords\";\nimport { getSubheadingsTopLevel, removeSubheadingsTopLevel } from \"../helpers/html/getSubheadings\";\nimport baseStemmer from \"../helpers/morphology/baseStemmer\";\nimport removeURLs from \"../helpers/sanitize/removeURLs.js\";\nimport removeEmailAddresses from \"../helpers/sanitize/removeEmailAddresses\";\n\n/**\n * Removes URLs and email addresses from the text.\n *\n * @param {string}\ttext\tThe text to sanitize.\n *\n * @returns {string} The text without URLs and email addresses.\n */\nconst sanitizeText = function( text ) {\n\ttext = removeURLs( text );\n\treturn removeEmailAddresses( text );\n};\n\n/**\n * Retrieves the prominent words from the given paper.\n *\n * @param {Paper} paper The paper to determine the prominent words of.\n * @param {Researcher} researcher The researcher to use for analysis.\n *\n * @returns {Object} result A compound result object.\n * @returns {ProminentWord[]} result.prominentWords Prominent words for this paper, filtered and sorted.\n * @returns {boolean} result.hasMetaDescription Whether the metadescription is available in the input paper.\n * @returns {boolean} result.hasTitle Whether the title is available in the input paper.\n */\nfunction getProminentWordsForInternalLinking( paper, researcher ) {\n\tconst functionWords = researcher.getConfig( \"functionWords\" );\n\t// An optional custom helper to return custom function to return the stem of a word.\n\tconst customStemmer = researcher.getHelper( \"customGetStemmer\" );\n\tconst stemmer = customStemmer ? customStemmer( researcher ) : researcher.getHelper( \"getStemmer\" )( researcher );\n\t// An optional custom helper to get words from the text.\n\tconst getWordsCustomHelper = researcher.getHelper( \"getWordsCustomHelper\" );\n\t// An optional custom helper to count length to use instead of countWords.\n\tconst customCountLength = researcher.getHelper( \"customCountLength\" );\n\n\tconst text = sanitizeText( paper.getText() );\n\tconst metadescription = sanitizeText( paper.getDescription() );\n\tconst title = sanitizeText( paper.getTitle() );\n\n\tconst result = {};\n\tresult.hasMetaDescription = metadescription !== \"\";\n\tresult.hasTitle = title !== \"\";\n\tresult.prominentWords = [];\n\n\t/**\n\t * We only want to return suggestions (and spend time calculating prominent words) if the text is at least 100 words.\n\t * And when a customCountLength is available, we only want to return the suggestions if the text has at least 200 characters.\n \t */\n\tif ( customCountLength ) {\n\t\tif ( customCountLength( text ) < 200 ) {\n\t\t\treturn result;\n\t\t}\n\t} else if ( countWords( text ) < 100 ) {\n\t\treturn result;\n\t}\n\n\tconst subheadings = getSubheadingsTopLevel( text ).map( subheading => subheading[ 2 ] );\n\tconst attributes = [\n\t\tpaper.getKeyword(),\n\t\tpaper.getSynonyms(),\n\t\ttitle,\n\t\tmetadescription,\n\t\tsubheadings.join( \" \" ),\n\t];\n\n\t// If the language has a custom helper to get words from the text, we don't retrieve the abbreviation.\n\tconst abbreviations = getWordsCustomHelper ? [] : retrieveAbbreviations( text.concat( attributes.join( \" \" ) ) );\n\n\tconst removedSubheadingText = removeSubheadingsTopLevel( text );\n\tconst prominentWordsFromText = getProminentWords( removedSubheadingText, abbreviations, stemmer, functionWords, getWordsCustomHelper );\n\n\tconst prominentWordsFromPaperAttributes = getProminentWordsFromPaperAttributes(\n\t\tattributes, abbreviations, stemmer, functionWords, getWordsCustomHelper );\n\n\t/*\n\t * If a word is used in any of the attributes, its weight is automatically high.\n\t * To make sure the word survives weight filters and gets saved in the database, make the number of occurrences times-3.\n\t */\n\tprominentWordsFromPaperAttributes.forEach( relevantWord => relevantWord.setOccurrences( relevantWord.getOccurrences() * 3 ) );\n\n\tconst collapsedWords = collapseProminentWordsOnStem( prominentWordsFromPaperAttributes.concat( prominentWordsFromText ) );\n\tsortProminentWords( collapsedWords );\n\n\t/*\n\t * If morphology data are available for a language, the minimum number of occurrences to consider a word to be prominent is 4.\n\t * This minimum number was chosen in order to avoid premature suggestions of words from the paper attributes.\n\t * These get a times-3 boost and would therefore be prominent with just 1 occurrence.\n\t *\n\t * If morphology data are not available, and therefore word forms are not recognized, the minimum threshold is lowered to 2.\n\t */\n\tlet minimumNumberOfOccurrences = 4;\n\n\tif ( stemmer === baseStemmer ) {\n\t\tminimumNumberOfOccurrences = 2;\n\t}\n\n\t/*\n\t * Return the 100 top items from the collapsed and sorted list. The number is picked deliberately to prevent larger\n\t * articles from getting too long of lists.\n\t */\n\tresult.prominentWords = take( filterProminentWords( collapsedWords, minimumNumberOfOccurrences ), 100 );\n\n\treturn result;\n}\n\nexport default getProminentWordsForInternalLinking;\n"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"file":"getProminentWordsForInternalLinking.js","names":["take","countWords","collapseProminentWordsOnStem","filterProminentWords","getProminentWords","getProminentWordsFromPaperAttributes","retrieveAbbreviations","sortProminentWords","getSubheadingsTopLevel","removeSubheadingsTopLevel","baseStemmer","removeURLs","removeEmailAddresses","sanitizeText","text","getProminentWordsForInternalLinking","paper","researcher","functionWords","getConfig","customStemmer","getHelper","stemmer","getWordsCustomHelper","customCountLength","getText","metadescription","getDescription","title","getTitle","result","hasMetaDescription","hasTitle","prominentWords","subheadings","map","subheading","attributes","getKeyword","getSynonyms","join","abbreviations","concat","removedSubheadingText","prominentWordsFromText","prominentWordsFromPaperAttributes","forEach","relevantWord","setOccurrences","getOccurrences","collapsedWords","minimumNumberOfOccurrences"],"sources":["../../../src/languageProcessing/researches/getProminentWordsForInternalLinking.js"],"sourcesContent":["import { take } from \"lodash\";\nimport countWords from \"../helpers/word/countWords\";\nimport {\n\tcollapseProminentWordsOnStem,\n\tfilterProminentWords,\n\tgetProminentWords,\n\tgetProminentWordsFromPaperAttributes,\n\tretrieveAbbreviations,\n\tsortProminentWords,\n} from \"../helpers/prominentWords/determineProminentWords\";\nimport { getSubheadingsTopLevel, removeSubheadingsTopLevel } from \"../helpers/html/getSubheadings\";\nimport baseStemmer from \"../helpers/morphology/baseStemmer\";\nimport removeURLs from \"../helpers/sanitize/removeURLs.js\";\nimport removeEmailAddresses from \"../helpers/sanitize/removeEmailAddresses\";\n\n/**\n * Removes URLs and email addresses from the text.\n *\n * @param {string}\ttext\tThe text to sanitize.\n *\n * @returns {string} The text without URLs and email addresses.\n */\nconst sanitizeText = function( text ) {\n\ttext = removeURLs( text );\n\treturn removeEmailAddresses( text );\n};\n\n/**\n * Retrieves the prominent words from the given paper.\n *\n * @param {Paper} paper The paper to determine the prominent words of.\n * @param {Researcher} researcher The researcher to use for analysis.\n *\n * @returns {Object} result A compound result object.\n * @returns {ProminentWord[]} result.prominentWords Prominent words for this paper, filtered and sorted.\n * @returns {boolean} result.hasMetaDescription Whether the metadescription is available in the input paper.\n * @returns {boolean} result.hasTitle Whether the title is available in the input paper.\n */\nfunction getProminentWordsForInternalLinking( paper, researcher ) {\n\tconst functionWords = researcher.getConfig( \"functionWords\" );\n\t// An optional custom helper to return custom function to return the stem of a word.\n\tconst customStemmer = researcher.getHelper( \"customGetStemmer\" );\n\tconst stemmer = customStemmer ? customStemmer( researcher ) : researcher.getHelper( \"getStemmer\" )( researcher );\n\t// An optional custom helper to get words from the text.\n\tconst getWordsCustomHelper = researcher.getHelper( \"getWordsCustomHelper\" );\n\t// An optional custom helper to count length to use instead of countWords.\n\tconst customCountLength = researcher.getHelper( \"customCountLength\" );\n\n\tconst text = sanitizeText( paper.getText() );\n\tconst metadescription = sanitizeText( paper.getDescription() );\n\tconst title = sanitizeText( paper.getTitle() );\n\n\tconst result = {};\n\tresult.hasMetaDescription = metadescription !== \"\";\n\tresult.hasTitle = title !== \"\";\n\tresult.prominentWords = [];\n\n\t/**\n\t * We only want to return suggestions (and spend time calculating prominent words) if the text is at least 100 words.\n\t * And when a customCountLength is available, we only want to return the suggestions if the text has at least 200 characters.\n \t */\n\tif ( customCountLength ) {\n\t\tif ( customCountLength( text ) < 200 ) {\n\t\t\treturn result;\n\t\t}\n\t} else if ( countWords( text ) < 100 ) {\n\t\treturn result;\n\t}\n\n\tconst subheadings = getSubheadingsTopLevel( text ).map( subheading => subheading[ 2 ] );\n\tconst attributes = [\n\t\tpaper.getKeyword(),\n\t\tpaper.getSynonyms(),\n\t\ttitle,\n\t\tmetadescription,\n\t\tsubheadings.join( \" \" ),\n\t];\n\n\t// If the language has a custom helper to get words from the text, we don't retrieve the abbreviation.\n\tconst abbreviations = getWordsCustomHelper ? [] : retrieveAbbreviations( text.concat( attributes.join( \" \" ) ) );\n\n\tconst removedSubheadingText = removeSubheadingsTopLevel( text );\n\tconst prominentWordsFromText = getProminentWords( removedSubheadingText, abbreviations, stemmer, functionWords, getWordsCustomHelper );\n\n\tconst prominentWordsFromPaperAttributes = getProminentWordsFromPaperAttributes(\n\t\tattributes, abbreviations, stemmer, functionWords, getWordsCustomHelper );\n\n\t/*\n\t * If a word is used in any of the attributes, its weight is automatically high.\n\t * To make sure the word survives weight filters and gets saved in the database, make the number of occurrences times-3.\n\t */\n\tprominentWordsFromPaperAttributes.forEach( relevantWord => relevantWord.setOccurrences( relevantWord.getOccurrences() * 3 ) );\n\n\tconst collapsedWords = collapseProminentWordsOnStem( prominentWordsFromPaperAttributes.concat( prominentWordsFromText ) );\n\tsortProminentWords( collapsedWords );\n\n\t/*\n\t * If morphology data are available for a language, the minimum number of occurrences to consider a word to be prominent is 4.\n\t * This minimum number was chosen in order to avoid premature suggestions of words from the paper attributes.\n\t * These get a times-3 boost and would therefore be prominent with just 1 occurrence.\n\t *\n\t * If morphology data are not available, and therefore word forms are not recognized, the minimum threshold is lowered to 2.\n\t */\n\tlet minimumNumberOfOccurrences = 4;\n\n\tif ( stemmer === baseStemmer ) {\n\t\tminimumNumberOfOccurrences = 2;\n\t}\n\n\t/*\n\t * Return the 100 top items from the collapsed and sorted list. The number is picked deliberately to prevent larger\n\t * articles from getting too long of lists.\n\t */\n\tresult.prominentWords = take( filterProminentWords( collapsedWords, minimumNumberOfOccurrences ), 100 );\n\n\treturn result;\n}\n\nexport default getProminentWordsForInternalLinking;\n"],"mappings":"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","ignoreList":[]}