Skip to content

Commit

Permalink
fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnychhsu committed Feb 22, 2019
1 parent b7993fd commit 0722348
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions lib/i18n/traditional-chinese.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,7 @@ for (let abbr of ABBREVIATIONS) {

}

const SPECIAL_TOKENS = {
'.': '.',
',': ',',
'n\'t': 'n\'t',
'\'s': '\'s',
'?': '?',

// right/left round/curly/square bracket
'-rrb-': ')',
'-lrb-': ' (',
'-rcb-': '}',
'-lcb-': ' {',
'-rsb-': ']',
'-lsb-': ' [',
};

function detokenize(sentence, prevtoken, token) {
function detokenize(buffer, prevtoken, token) {
// join without space
return buffer + token;
}
Expand Down

0 comments on commit 0722348

Please sign in to comment.