Skip to main content

Parse a mistranscribed dictated bible reference into a standard format

Project description

Bible Parser

Bible Parser is a Python library for parsing a Bible reference into a structured format. It was designed to interpret dictated references that may have been mistranscribed by Siri or other voice recognition software (e.g., "John 316" becomes "John 3:16").

Examples

Dictation Transcription Parsed Reference
john three sixteen John 316 John 3:16
john three two through four John 32 through 4 John 3:2-4
matthew twenty one twelve Matthew 2112 Matthew 21:12
first john one one 1st John 11 1 John 1:1
micah one one Michael 11 Micah 1:1
jude one one June one one Jude 1:1
haggai two twenty three Hey guy 223 Haggai 2:23
acts one twenty three X123 Acts 1:23

API

Siri Shortcut

I originally created this project to use with a Siri Shortcut that accepts a Bible reference as input and returns the text of the passage.

AWS Serverless API

I set up an AWS Lambda function behind an API Gateway to expose the functionality of this library as an HTTP API.

Bible API by Tim Morgan

Special thanks to Tim Morgan for creating and hosting bible-api! My library merely parses the reference. Tim's API provides the actual text of the passage.

Quick Reference Commands

Action Command
Create virtual environment python -m venv venv
Activate venv source venv/bin/activate
Deactivate venv deactivate
Install package (editable) pip install -e .
Run all tests python -m unittest discover tests
Build the package python -m build
Upload to PyPI twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bibleparser-0.0.2.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bibleparser-0.0.2-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file bibleparser-0.0.2.tar.gz.

File metadata

  • Download URL: bibleparser-0.0.2.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for bibleparser-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2a42a1c4f6a7429f79fa57517c1d9a38419231c6b2e77f6006d8078ffd72eeea
MD5 f19982c311d120ebd2f60a16538a1dd4
BLAKE2b-256 8aaa9ef41bc7c9009fa74bd2c379d4775b3495171e30d8f9be9e322985899806

See more details on using hashes here.

File details

Details for the file bibleparser-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: bibleparser-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for bibleparser-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3ad42c3acdaed57f60fabe2f9c2031e383072a28aa6f45927bdb39a0b8cf47e6
MD5 f98a736ceddaa81aacb505da53abc2fd
BLAKE2b-256 8e0a4235e3ac4cb6a6d2eea0784c7e4cfd73e5c1590d1990b7f2920f8cbf98c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page