Skip to content

Namit2111/bible-verse-finder

Repository files navigation

Versify

Welcome to the Versify! This repository contains code to parse and analyze the Bible using the NLTK Gutenberg corpus. You can search for similar Bible verses based on a theme using a Flask web application.

🌟 Features

  • Parse the entire Bible into books, chapters, and verses.
  • Utilize TF-IDF vectorization to analyze verses.
  • Predict similar verses based on user input using KMeans clustering.
  • Interactive Flask web interface.

🚀 Getting Started

Prerequisites

  • Python 3.10.x
  • Required Python libraries:
    • nltk
    • Flask
    • scikit-learn
    • numpy
    • pickle

Installation

  1. Clone this repository:

    git clone https://github.com/Namit2111/bible-verse-finder.git
    cd bible-verse-finder
  2. Install the required packages:

    pip install -r requirements.txt
  3. Download the NLTK Gutenberg corpus:

    import nltk
    nltk.download('gutenberg')

Usage

  1. Run the Flask web application:

    python app.py
  2. Open your browser and navigate to http://localhost:5000.

  3. Enter a theme to find similar Bible verses!

Installing the frontend (Next.Js)

  1. Change directory to the bible-app folder

    cd bible-app
  2. Run npm install inside the folder

  3. Navigate to http://localhost:3000

  4. Start the server as instructed above

  5. Enter a theme to find similar Bible verses!

OR

TRY IT OUT! ⭐✝️

🤝 Contributing

Contributions are welcome! Please read the CODE_OF_CONDUCT.md and CONTRIBUTING.md for guidelines.

📄 License

This project is licensed under the terms of the GNU General Public License. See the LICENSE.md file for details.

🙏 Acknowledgements

  • Inspired by the countless hours spent studying and reflecting on the Bible.