rewonc / japaneasy Goto Github PK
View Code? Open in Web Editor NEWWWWJDIC API wrapper for node.js
License: MIT License
WWWJDIC API wrapper for node.js
License: MIT License
It seams like the examples, and my own playing around, always results in this response. Am I missing something?
Response for 教科書 returns: textbook/text book.
This code returns: textbooktext book.
Issue is in parse.js -> function \normalEntries' in this section:
if (ps) { arr[i].english[0] = parsed[i+1].substring(ps["index"] + ps[0].length).trim().replace("/", ""); }
else { arr[i].english[0] = parsed[i+1].replace('/', ""); }
}
Can run the attached 'app.js' file to see the issue.
STEPS
dict('辞書').then(function(result){
console.log(result);
});
3) From console run: node test.js
4) Retry this time searching an English word.
var Dictionary = require('japaneasy');
var dict = new Dictionary();
dict('english').then(function(result){
console.log(result);
});
ACTUAL RESULTS
Step #3 - returns the following: "No items were found; try another query."
Step #4 - returns an array of results. Array has a length of 100.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.