*/ public array $words; /** * Anchor-level score in `[0.0, 1.0]`. * * Reflects how confidently this span is an anchor (length, contiguity). * Independent of the candidate post's quality. * * @var float */ public float $score; /** * @since 1.0.0 * * @param string $anchor Anchor text. * @param array $words Matched words in order. * @param float $score Anchor-level score in `[0.0, 1.0]`. */ public function __construct( string $anchor, array $words, float $score ) { $this->anchor = $anchor; $this->words = $words; $this->score = $score; } }