0.0
No commit activity in last 3 years
No release in over 3 years
Access to the Bible book of Proverbs NIV ('95) translation. A wrapper for the bookofproverbs.herokuapp.com API endpoint. Contains functionality for obtaining the entire books of proverbs and individual chapters. Additional features include a word count for each occurence of a word -- available per chapter. This feature further extends by removing a list of stop words (i.e. a, or, and, etc.) from the word saved word list.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

ProverbsNIV Gem

A gem that consumes the Proverbs (NIV) endpoints from Book of Proverbs web app.
Additional gem information (i.e. download count, etc.) also available here.
ProverbsNIV

Getting Started

  1. Add to Gemfile gem 'proverbs_niv'
  2. Run $ bundle install
  3. Add require 'proverbs_niv'
  4. Initialize library: ProverbsNiv.init
  5. Call any available method (examples listed below)

Available methods:

  1. Returns all chapters of Proverbs:
    @chapter_nums = ProverbsNiv.getAllChapterNumbers

  2. Returns content of all chapters of Proverbs:
    @proverbs_content = ProverbsNiv.getContentOfAllChapters

  3. Returns recurrence count of each word (with NO stop words) for all chapters:
    @proverbs_rec_count_no_sw = ProverbsNiv.getRecurCountNoSwAllChapters

  4. Returns recurrence count of each word (with stop words) for all chapters:
    @proverbs_rec_count_sw = ProverbsNiv.getRecurCountSwAllChapters

  5. Returns chapters and verses of all of Proverbs:
    @proverbs_verses = ProverbsNiv.getVersesOfAllChapters

  6. Returns chapter content of passed in chapter. For example: passing 1 in for chapter 1:
    @chapter_content = ProverbsNiv.getChapterContent(1)

  7. Returns all verses of passed in chapter. For example: passing 1 in for chapter 1:
    @chapter_verses = ProverbsNiv.getChapterVerses(1)

  8. Returns recurrence count (with NO stop words) for passed in chapter. For example: passing 1 in for chapter 1:
    @chapter_word_count_no_sw = ProverbsNiv.getRecurCountNoSw(1)

  9. Returns recurrence count (with stop words) for passed in chapter. For example: passing 1 in for chapter 1:
    @chapter_word_count_sw = ProverbsNiv.getRecurCountSw(1)