Giter Club home page Giter Club logo

japaneasy's People

Contributors

rewonc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

japaneasy's Issues

Bug in Dictionary Entry Output

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.

app.txt

Searching A Japanese Word Returns 'No items were found; try another query.'

STEPS

  1. run: npm install japaneasy
  2. Setup test.js file per instructions:
    var Dictionary = require('japaneasy');
    var dict = new Dictionary();

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.