cii-text-analysis/vendor/yooper/php-text-analysis/tests/TextAnalysis/LexicalDiversity/YuleITest.php

18 lines
382 B
PHP
Raw Permalink Normal View History

2026-02-10 16:19:59 +01:00
<?php
namespace Tests\TextAnalysis\LexicalDiversity;
/**
* Description of Yule I Test
*
* @author yooper
*/
class YuleITest extends \TestBaseCase
{
public function testDiversity()
{
$result = lexical_diversity( tokenize( $this->getText() ), \TextAnalysis\LexicalDiversity\YuleI::class);
$this->assertEqualsWithDelta(135.9226, $result, 0.0001);
}
}