textlint-ja / analyze-desumasu-dearu

文の敬体(ですます調)、常体(である調)を解析するJavaScriptライブラリ
MIT License
18 stars 5 forks source link

Not able to print Japanese characters #7

Closed Anagha589 closed 4 years ago

Anagha589 commented 6 years ago

downloaded this module on windows system and its not printing japanese characters. Please help with other settings required. we are trying in Windows system.

azu commented 6 years ago

Do you have reproduce code?

Anagha589 commented 6 years ago

we used below code after installing module but it didn't print 田中さん var analyzeDesumasuDearu = require("analyze-desumasu-dearu") console.log("た中さん");

Anagha589 commented 6 years ago

we also used this code but does not work "use strict"; const isDearu = require("analyze-desumasu-dearu").isDearu; const isDesumasu = require("analyze-desumasu-dearu").isDesumasu; const analyze = require("analyze-desumasu-dearu").analyze; const analyzeDearu = require("analyze-desumasu-dearu").analyzeDearu; const analyzeDesumasu = require("analyze-desumasu-dearu").analyzeDesumasu; const text = "昨日はいい天気であったのだが、今日は悪天候です。"; analyze(text).then(results => { console.log("==である=="); console.log(results.filter(isDearu)); console.log("==ですます=="); console.log(results.filter(isDesumasu)); });

azu commented 6 years ago

we used below code after installing module but it didn't print 田中さん

It is strange... This library does not hook console API. Does other code work on your windows?

This library require following system.

Anagha589 commented 6 years ago

we have node JS version 8.9.4 and npm version :5.6.0 did not understand what you meanby : This library does not hook console API.

we are running program from command prompt and written code on NotePad++

Please suggest !