const char *getLastError() { return getGlobalError(); }
const char *getParserError() { return getGlobalError(); }
const char* mecab_strerror(mecab_t *c) { if (!c || !c->allocated) return const_cast<char *>(getGlobalError()); return c->ptr->what(); }