Skip to content

Commit f545a8e

Browse files
committed
fix some little coding style issues
1 parent bf57af4 commit f545a8e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ for (let i = 0; i < langIDs.length; i++){
148148
}
149149
```
150150

151-
Check [More](#More) section for more tutorials.
151+
Check [More](#more) section for more tutorials.
152152

153153
## Community
154154

morpho.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@
881881
*/
882882
Me.gsents = function (text) {
883883
return text.split(/[.?!]\s*/).filter(Boolean);
884-
}
884+
};
885885

886886
/**
887887
* Tokenize a given text (mostly, a sentence)
@@ -890,7 +890,7 @@
890890
*/
891891
Me.tokenize = function (text) {
892892
return text.split(/\s+/);
893-
}
893+
};
894894

895895
/**
896896
* Delete stop words from a list of words
@@ -899,7 +899,7 @@
899899
*/
900900
Me.filter = function (words) {
901901
return words;
902-
}
902+
};
903903

904904
//==========================================
905905
// HELPER FUNCTIONS
@@ -1013,7 +1013,7 @@
10131013
*/
10141014
Me.splitToSentences = function (text) {
10151015
return this.gsents(text);
1016-
}
1016+
};
10171017

10181018
/**
10191019
* Delete stop words from a list of words
@@ -1022,7 +1022,7 @@
10221022
*/
10231023
Me.filterStopWords = function (words) {
10241024
return this.filter(words);
1025-
}
1025+
};
10261026

10271027
/**
10281028
* Normalization method, used to delete non used chars or to replace some with others, etc.
@@ -1066,11 +1066,11 @@
10661066

10671067
Me.getStemmerDesc = function (stemmerName) {
10681068
return this.gstemdesc(stemmerName);
1069-
}
1069+
};
10701070

10711071
Me.getFormDesc = function (formName) {
10721072
return this.gformdesc(formName);
1073-
}
1073+
};
10741074

10751075
/**
10761076
* Convert a word: singular to plural; verb to noun; etc
@@ -1139,7 +1139,7 @@
11391139
* @return {String} the name of the tense in the selected language
11401140
*/
11411141
Me.getTenseName = function(tense){
1142-
return this.gtensename();
1142+
return this.gtensename(tense);
11431143
};
11441144

11451145
/**

0 commit comments

Comments
 (0)