KartikMistry has uploaded a new change for review. https://gerrit.wikimedia.org/r/121919
Change subject: Misc fixes ...................................................................... Misc fixes * Variable sentenceSeperator -> sentenceSeparator * Code style cleanup Change-Id: I6d9b418ab0172ad1ccee254d02eda26ce74efa37 --- M segmentation/languages/CXParser.js M segmentation/languages/hi/CXParserHi.js 2 files changed, 6 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/cxserver refs/changes/19/121919/1 diff --git a/segmentation/languages/CXParser.js b/segmentation/languages/CXParser.js index 5481450..d3499d5 100644 --- a/segmentation/languages/CXParser.js +++ b/segmentation/languages/CXParser.js @@ -103,11 +103,11 @@ this.print( this.startSentence() ); } - function textSplit( match, prevWord, sentenceSeperator, offset, sentence ) { + function textSplit( match, prevWord, sentenceSeparator, offset, sentence ) { var replacement, nextLetter; - replacement = prevWord + sentenceSeperator; - //console.log([match, prevWord, sentenceSeperator, offset]); + replacement = prevWord + sentenceSeparator; + //console.log([match, prevWord, sentenceSeparator, offset]); nextLetter = sentence[ offset + match.length ]; if ( prevWord && prevWord.length < 3 && prevWord[ 0 ].toUpperCase() === prevWord[ 0 ] || nextLetter && nextLetter.toLowerCase() === nextLetter ) { diff --git a/segmentation/languages/hi/CXParserHi.js b/segmentation/languages/hi/CXParserHi.js index 2967ca5..06aa299 100644 --- a/segmentation/languages/hi/CXParserHi.js +++ b/segmentation/languages/hi/CXParserHi.js @@ -23,10 +23,10 @@ this.print( this.startSentence() ); } - function textSplit( match, prevWord, sentenceSeperator, offset, sentence ) { + function textSplit( match, prevWord, sentenceSeparator, offset, sentence ) { var replacement, nextLetter; - replacement = prevWord + sentenceSeperator; - nextLetter = sentence[offset + match.length]; + replacement = prevWord + sentenceSeparator; + nextLetter = sentence[ offset + match.length ]; replacement += parser.endSentence(); replacement += parser.startSentence(); return replacement; -- To view, visit https://gerrit.wikimedia.org/r/121919 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6d9b418ab0172ad1ccee254d02eda26ce74efa37 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/cxserver Gerrit-Branch: master Gerrit-Owner: KartikMistry <kartik.mis...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits