/**
  * @test
  */
 public function it_gets_four_parts_of_speech()
 {
     $result = self::$wordnet->lookup('fast')->pos();
     $this->assertEquals(['noun', 'verb', 'adjective', 'adverb'], $result);
 }
Example #2
0
 /**
  * @test
  */
 public function it_returns_raw_lookup_string()
 {
     $result = self::$wordnet->lookup('hello')->raw();
     $expected = "\n" . 'Overview of noun hello' . "\n" . "\n" . 'The noun hello has 1 sense (first 1 from tagged texts)' . "\n" . '                                           ' . "\n" . '1. (1) hello, hullo, hi, howdy, how-do-you-do -- (an expression of greeting; "every morning they exchanged polite hellos")' . "\n";
     $this->assertEquals($expected, $result);
 }