Giter VIP home page Giter VIP logo

bible-api-thing's People

Contributors

calvinf avatar chrislim avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

chrislim

bible-api-thing's Issues

Accept a bible_key option in the BibleApi class's constructor

Accept a bible_key option in the BibleApi class's constructor rather than loading key from a file. This will allow users of the BibleApi class to more easily set their own key and store it via whatever means they like (class, environment variable, etc) and make this more easy to reuse.

Cache key incompatibility

At present, cache keys for certain translations can be incompatible with other translations. For instance, eng-KJV and eng-ESV have a different title for the following verse: "Psalm 119:9-11" v. "Psalms 119:9-11". The same issue pops up for other translations with different book titles. For instance, hwc-HWCNT ("Da Jesus Book" / Hawai'i Creole Pidgin) has the title "Fo Da Galatia Peopo" for the book of Galatians.

The differences in book title cause the cache_key for different translations not to match leading scripts using the BibleApi class not looking in the correct place for previously cached versions of specific verses -- and for any consumers of the Mongo data generated by this don't have one unique global identifier per verse or passage that can be reliably used across translations.

I believe the solution here will be providing a mapping from our original verse/passage references such as "2 Corinthians 5:17" to the "start_verse" and "end_verse" values in the ABS Bible API. This could be put in Mongo or somewhere in the code.

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.