Skip to content

Commit

Permalink
test(unigram-tagger-specs): add test cases for upgraded lexicon
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayaksaxena committed Dec 28, 2017
1 parent 73b1573 commit 9a151e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/unigram-tagger-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,16 @@ describe( 'unigramPOSTagger() test cycle', function () {
it( 'tag an unknown adjective', function () {
expect( tag( { value: 'ludicrous', tag: 'word' }, lexicon ) ).to.deep.equal( [ 'JJ' ] );
} );

it( 'tag an unknown JJR', function () {
expect( tag( { value: 'angier', tag: 'word' }, lexicon ) ).to.deep.equal( [ 'JJR' ] );
} );

it( 'tag an unknown JJS', function () {
expect( tag( { value: 'angiest', tag: 'word' }, lexicon ) ).to.deep.equal( [ 'JJS' ] );
} );

it( 'tag an unknown JJ ending with -ful', function () {
expect( tag( { value: 'sorrowful', tag: 'word' }, lexicon ) ).to.deep.equal( [ 'JJ' ] );
} );
} );

0 comments on commit 9a151e2

Please sign in to comment.