Skip to content

Instantly share code, notes, and snippets.

@ybenjo
Created April 24, 2015 02:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ybenjo/c7a683ef5a2c811ec67c to your computer and use it in GitHub Desktop.
Save ybenjo/c7a683ef5a2c811ec67c to your computer and use it in GitHub Desktop.
// Generated by CoffeeScript 1.9.2
(function() {
module.exports = function(robot) {
return robot.hear(/mecab (.*)/i, function(msg) {
var MeCab, mecab, ret, text;
text = msg.match[1];
MeCab = new require('mecab-async');
mecab = new MeCab();
ret = mecab.parseSync(text);
return msg.send(text);
});
};
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment