Skip to content

suresh-srinivas/arjuna-uvacha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arjuna Verses Extractor

Overview

This Python script extracts verses spoken by Arjuna from the Bhagavad Gita, organizing them by chapter. It uses regular expressions to identify verses where Arjuna is speaking and aggregates them for analysis or display.

Features

  • Read and parse text data from a file.
  • Identify and extract verses spoken by Arjuna.
  • Organize verses by chapter.
  • Count the number of verses spoken by Arjuna in each chapter.
  • Provide a total count of verses spoken by Arjuna.

Requirements

  • Python 3.x
  • A text file containing the Bhagavad Gita's content (e.g., bhagavad_gita.txt).

Usage

  1. Ensure you have a text file containing the Bhagavad Gita. Each verse should be on a new line, and speakers should be clearly identified.
  2. Save the script in the same directory as the text file.
  3. Run the script with Python:
python arjuna_uvacha.py

About

Arjuna Verses Extractor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages