Skip to content

Commit d52d7e2

Browse files
committed
2 parents afb67f6 + 89de4b4 commit d52d7e2

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

lib/inflection.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@
367367
oes : new RegExp( '(o)es$' , 'gi' ),
368368
shoes : new RegExp( '(shoe)s$' , 'gi' ),
369369
crises : new RegExp( '(cris|ax|test)es$' , 'gi' ),
370-
octopi : new RegExp( '(octop|vir)i$' , 'gi' ),
370+
octopuses : new RegExp( '(octop|vir)uses$' , 'gi' ),
371371
aliases : new RegExp( '(alias|canvas|status|campus)es$', 'gi' ),
372372
summonses : new RegExp( '^(summons|bonus)es$' , 'gi' ),
373373
oxen : new RegExp( '^(ox)en' , 'gi' ),
@@ -437,7 +437,7 @@
437437
[ regex.plural.oes ],
438438
[ regex.plural.shoes ],
439439
[ regex.plural.crises ],
440-
[ regex.plural.octopi ],
440+
[ regex.plural.octopuses ],
441441
[ regex.plural.aliases ],
442442
[ regex.plural.summonses ],
443443
[ regex.plural.oxen ],
@@ -456,7 +456,7 @@
456456
[ regex.singular.child , '$1ren' ],
457457
[ regex.singular.ox , '$1en' ],
458458
[ regex.singular.axis , '$1es' ],
459-
[ regex.singular.octopus , '$1i' ],
459+
[ regex.singular.octopus , '$1uses' ],
460460
[ regex.singular.alias , '$1es' ],
461461
[ regex.singular.summons , '$1es' ],
462462
[ regex.singular.bus , '$1ses' ],
@@ -537,7 +537,7 @@
537537
[ regex.plural.oes , '$1' ],
538538
[ regex.plural.shoes , '$1' ],
539539
[ regex.plural.crises , '$1is' ],
540-
[ regex.plural.octopi , '$1us' ],
540+
[ regex.plural.octopuses, '$1us' ],
541541
[ regex.plural.aliases , '$1' ],
542542
[ regex.plural.summonses, '$1' ],
543543
[ regex.plural.oxen , '$1' ],
@@ -662,7 +662,7 @@
662662
* var inflection = require( 'inflection' );
663663
*
664664
* inflection.pluralize( 'person' ); // === 'people'
665-
* inflection.pluralize( 'octopus' ); // === 'octopi'
665+
* inflection.pluralize( 'octopus' ); // === 'octopuses'
666666
* inflection.pluralize( 'Hat' ); // === 'Hats'
667667
* inflection.pluralize( 'person', 'guys' ); // === 'guys'
668668
*/
@@ -684,7 +684,7 @@
684684
* var inflection = require( 'inflection' );
685685
*
686686
* inflection.singularize( 'people' ); // === 'person'
687-
* inflection.singularize( 'octopi' ); // === 'octopus'
687+
* inflection.singularize( 'octopuses' ); // === 'octopus'
688688
* inflection.singularize( 'Hats' ); // === 'Hat'
689689
* inflection.singularize( 'guys', 'person' ); // === 'person'
690690
*/
@@ -707,11 +707,11 @@
707707
* var inflection = require( 'inflection' );
708708
*
709709
* inflection.inflect( 'people' 1 ); // === 'person'
710-
* inflection.inflect( 'octopi' 1 ); // === 'octopus'
710+
* inflection.inflect( 'octopuses' 1 ); // === 'octopus'
711711
* inflection.inflect( 'Hats' 1 ); // === 'Hat'
712712
* inflection.inflect( 'guys', 1 , 'person' ); // === 'person'
713713
* inflection.inflect( 'person', 2 ); // === 'people'
714-
* inflection.inflect( 'octopus', 2 ); // === 'octopi'
714+
* inflection.inflect( 'octopus', 2 ); // === 'octopuses'
715715
* inflection.inflect( 'Hat', 2 ); // === 'Hats'
716716
* inflection.inflect( 'person', 2, null, 'guys' ); // === 'guys'
717717
*/

test/inflection.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe( 'test .pluralize', function (){
2121
inflection.pluralize( 'women' ).should.equal( 'women' );
2222
inflection.pluralize( 'woman' ).should.equal( 'women' );
2323
inflection.pluralize( 'person' ).should.equal( 'people' );
24-
inflection.pluralize( 'octopus' ).should.equal( 'octopi' );
24+
inflection.pluralize( 'octopus' ).should.equal( 'octopuses' );
2525
inflection.pluralize( 'human' ).should.equal( 'humans' );
2626
inflection.pluralize( 'aircraft' ).should.equal( 'aircraft' );
2727
inflection.pluralize( 'luck' ).should.equal( 'luck' );
@@ -72,7 +72,7 @@ describe( 'test .singularize', function (){
7272
inflection.singularize( 'people' ).should.equal( 'person' );
7373
inflection.singularize( 'movies' ).should.equal( 'movie' );
7474
inflection.singularize( 'queries' ).should.equal( 'query' );
75-
inflection.singularize( 'octopi' ).should.equal( 'octopus' );
75+
inflection.singularize( 'octopuses' ).should.equal( 'octopus' );
7676
inflection.singularize( 'Hats' ).should.equal( 'Hat' );
7777
inflection.singularize( 'lives' ).should.equal( 'life' );
7878
inflection.singularize( 'baths' ).should.equal( 'bath' );
@@ -113,7 +113,7 @@ describe( 'test .inflect', function (){
113113
inflection.inflect( 'people', 0 ).should.equal( 'people' );
114114
inflection.inflect( 'men', 0 ).should.equal( 'men' );
115115
inflection.inflect( 'person', 0 ).should.equal( 'people' );
116-
inflection.inflect( 'octopus', 0 ).should.equal( 'octopi' );
116+
inflection.inflect( 'octopus', 0 ).should.equal( 'octopuses' );
117117
inflection.inflect( 'Hat', 0 ).should.equal( 'Hats' );
118118
inflection.inflect( 'data', 0 ).should.equal( 'data' );
119119
inflection.inflect( 'meta', 0 ).should.equal( 'meta' );
@@ -122,7 +122,7 @@ describe( 'test .inflect', function (){
122122
inflection.inflect( 'people', 2 ).should.equal( 'people' );
123123
inflection.inflect( 'men', 2 ).should.equal( 'men' );
124124
inflection.inflect( 'person', 2 ).should.equal( 'people' );
125-
inflection.inflect( 'octopus', 2 ).should.equal( 'octopi' );
125+
inflection.inflect( 'octopus', 2 ).should.equal( 'octopuses' );
126126
inflection.inflect( 'Hat', 2 ).should.equal( 'Hats' );
127127
inflection.inflect( 'data', 2 ).should.equal( 'data' );
128128
inflection.inflect( 'meta', 2 ).should.equal( 'meta' );
@@ -136,7 +136,7 @@ describe( 'test .inflect', function (){
136136
inflection.inflect( 'people', 1 ).should.equal( 'person' );
137137
inflection.inflect( 'movies', 1 ).should.equal( 'movie' );
138138
inflection.inflect( 'queries', 1 ).should.equal( 'query' );
139-
inflection.inflect( 'octopi', 1 ).should.equal( 'octopus' );
139+
inflection.inflect( 'octopuses', 1 ).should.equal( 'octopus' );
140140
inflection.inflect( 'Hats', 1 ).should.equal( 'Hat' );
141141
inflection.inflect( 'data', 1 ).should.equal( 'datum' );
142142
inflection.inflect( 'meta', 1 ).should.equal( 'metum' );

0 commit comments

Comments
 (0)