Skip to content

Commit 0934dd6

Browse files
fix(*): correct its helper spelling
1 parent 4c1f376 commit 0934dd6

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/allowed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ allowed.its4document = new Set( [
116116
its.sentiment,
117117
its.stem,
118118
its.readabilityStats,
119-
its.sentenceWiseImprotance
119+
its.sentenceWiseImportance
120120
] );
121121

122122

src/api/itm-document-out.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ var itmDocumentOut = function ( rdd, itsf, addons ) {
6767
return itsfn( rdd, addons );
6868
}
6969

70-
if ( itsfn === its.sentenceWiseImprotance ) {
71-
return itsfn( rdd, addons );
70+
if ( itsfn === its.sentenceWiseImportance ) {
71+
return itsfn( rdd );
7272
}
7373

7474
// Setup the correct `as.fn` becuase the current markedup text would have

src/its.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ its.readabilityStats = function ( rdd, addons ) {
163163
return addons.readabilityStats( rdd, its );
164164
}; // readabilityStats()
165165

166-
its.sentenceWiseImprotance = function ( rdd ) {
166+
its.sentenceWiseImportance = function ( rdd ) {
167167
return swi( rdd );
168-
}; // sentenceWiseImprotance()
168+
}; // sentenceWiseImportance()
169169

170170
/* ------ utilities ------ */
171171

test/its-specs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ describe( 'its functions for .out()', function () {
172172
expect( doc.out( its.readabilityStats ) ).to.deep.equal( rs );
173173
} );
174174

175-
it( 'its.sentenceWiseImprotance', function () {
175+
it( 'its.sentenceWiseImportance', function () {
176176
const text = `Children living in Japan’s hottest city will be given specially designed umbrellas to protect them
177177
from the heat, after a summer that saw record-breaking temperatures in many parts of the country.Local authorities
178178
in Kumagaya in Saitama prefecture have devised an umbrella that keeps out the rain and doubles as a parasol,
@@ -220,8 +220,8 @@ describe( 'its functions for .out()', function () {
220220
{ 'importance': 0.3, 'index': 16 }
221221
];
222222

223-
expect( nlp.readDoc( text ).out( its.sentenceWiseImprotance ) ).to.deep.equal( rank );
224-
expect( nlp.readDoc( 'text' ).out( its.sentenceWiseImprotance ) ).to.deep.equal( [] );
223+
expect( nlp.readDoc( text ).out( its.sentenceWiseImportance ) ).to.deep.equal( rank );
224+
expect( nlp.readDoc( 'text' ).out( its.sentenceWiseImportance ) ).to.deep.equal( [] );
225225
} );
226226

227227
it( 'selected entity with its.detail, its.span as.?', function () {

0 commit comments

Comments
 (0)