yoastseo-dep
Version:
Yoast clientside page analysis
39 lines (33 loc) • 1.46 kB
JavaScript
import { inherits } from "util";
import Assessor from "./assessor.js";
import IntroductionKeyword from "./assessments/seo/IntroductionKeywordAssessment.js";
import KeyphraseLength from "./assessments/seo/KeyphraseLengthAssessment.js";
import KeyphraseDensityAssessment from "./assessments/seo/KeywordDensityAssessment.js";
import MetaDescriptionKeyword from "./assessments/seo/MetaDescriptionKeywordAssessment.js";
import ImageKeyphrase from "./assessments/seo/KeyphraseInImageTextAssessment";
import TextCompetingLinks from "./assessments/seo/TextCompetingLinksAssessment.js";
import FunctionWordsInKeyphrase from "./assessments/seo/FunctionWordsInKeyphraseAssessment";
/**
* Creates the Assessor
*
* @param {Researcher} researcher The researcher to use for the analysis.
* @param {Object?} options The options for this assessor.
* @param {Function} options.marker The marker to pass the list of marks to.
*
* @constructor
*/
const relatedKeywordAssessor = function( researcher, options ) {
Assessor.call( this, researcher, options );
this.type = "relatedKeywordAssessor";
this._assessments = [
new IntroductionKeyword(),
new KeyphraseLength( { isRelatedKeyphrase: true } ),
new KeyphraseDensityAssessment(),
new MetaDescriptionKeyword(),
new TextCompetingLinks(),
new FunctionWordsInKeyphrase(),
new ImageKeyphrase(),
];
};
inherits( relatedKeywordAssessor, Assessor );
export default relatedKeywordAssessor;