plugin installs
This commit is contained in:
@@ -0,0 +1 @@
|
||||
(()=>{"use strict";const e=window.yoast.analysis,{readability:s}=e.assessments,{WordComplexityAssessment:t}=s,i={de:e.languageProcessing.languageHelpers.wordComplexityHelperGerman,en:e.languageProcessing.languageHelpers.wordComplexityHelperEnglish,es:e.languageProcessing.languageHelpers.wordComplexityHelperSpanish,fr:e.languageProcessing.languageHelpers.wordComplexityHelperFrench},n={de:e.languageProcessing.languageConfigs.wordComplexityConfigGerman,en:e.languageProcessing.languageConfigs.wordComplexityConfigEnglish,es:e.languageProcessing.languageConfigs.wordComplexityConfigSpanish,fr:e.languageProcessing.languageConfigs.wordComplexityConfigFrench},{seo:r}=e.assessments,{KeyphraseDistributionAssessment:g}=r,{readability:o,seo:a}=e.assessments,l="YoastSEOPremium";(new class{constructor(){this._worker=analysisWorker}register(){this._worker.registerMessageHandler("initialize",this.initialize.bind(this),l)}initialize({options:s}){if(s.isTitleAssessmentAvailable){const{TextTitleAssessment:e}=a,s=new e;this._worker.registerAssessment("TextTitleAssessment",s,l,"seo")}!function(s,t){const i=new g;s.registerResearch("keyphraseDistribution",e.languageProcessing.researches.keyphraseDistribution),s.registerAssessment("keyphraseDistributionAssessment",i,t,"seo")}(this._worker,l);const r=s.language;(function(e){return(0,window.yoast.analysis.helpers.getLanguagesWithWordComplexity)().includes(e)})(r)&&function(s,r,g){const o=n[r],a=i[r],l=new t,m=new t({scores:{acceptableAmount:3}});s.registerResearcherConfig("wordComplexity",o),s.registerHelper("checkIfWordIsComplex",a),s.registerResearch("wordComplexity",e.languageProcessing.researches.wordComplexity),s.registerAssessment("wordComplexity",l,g,"readability"),s.registerAssessment("wordComplexity",m,g,"cornerstoneReadability")}(this._worker,r,l),s.isTextAlignmentAssessmentAvailable&&this.registerTextAlignmentAssessment()}registerTextAlignmentAssessment(){const{TextAlignmentAssessment:s}=o;this._textAlignmentAssessment=new s,this._worker.registerResearch("getLongCenterAlignedTexts",e.languageProcessing.researches.getLongCenterAlignedTexts),this._worker.registerAssessment("textAlignment",this._textAlignmentAssessment,l,"readability"),this._worker.registerAssessment("textAlignment",this._textAlignmentAssessment,l,"cornerstoneReadability")}}).register()})();
|
||||
Reference in New Issue
Block a user