Documer\Documer::is PHP Method

is() public method

Check if text is of the given label
public is ( $label, $text )
$label
$text
    public function is($label, $text)
    {
        $scores = $this->guess($text);
        $value = max($scores);
        return $label == array_search($value, $scores);
    }