Skip to content
View TorahBibleCodes's full-sized avatar
💭
TorahBibleCodes.com
💭
TorahBibleCodes.com
Block or Report

Block or report TorahBibleCodes

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
TorahBibleCodes/README.md

TorahBibleCodes

Torah Bible Codes - Open-Source Python

HOMEPAGE URL: https://TorahBibleCodes.com
https://www.TorahBibleCodes.com
GITHUB: @TorahBibleCodes https://github.com/torahbiblecodes
READ THE DOCS: @TorahBibleCodes https://torahbiblecodes-sphinx.readthedocs.io/en/latest/index.html
ACADEMIA: https://www.academia.edu/104334275
STACKOVERFLOW: @TorahBibleCodes https://stackoverflow.com/users/8911652/torahbiblecodes
TWITTER: @TorahBibleCodes https://twitter.com/TorahBibleCodes
YOUTUBE: @TorahBibleCodes https://www.youtube.com/@TorahBibleCodes
YOUTUBE: @TorahBibleCodes https://www.youtube.com/channel/UCNsvtMx4JJRpNzzPq57HCqg
GIVESENDGO: @TorahBibleCodes https://www.givesendgo.com/torahbiblecodes

Known Bugs and Open Issues

https://github.com/TorahBibleCodes/TorahBibleCodes/issues

Current Development Status


Active Development: In Progress

Updates


16 / JULY / 2023

DEVELOPMENT UPDATE:


POC (BETA) WORKING: TorahBibleCodes: Free, Open-Source Python Equidistant Letter Sequences (ELS) Hebrew Bible Search Software


ACADEMIC WHITE PAPER EXPLAINING HOW TORAH BIBLE CODES SOFTWARE WORKS: https://www.academia.edu/104334275


TWITTER: @TorahBibleCodes https://twitter.com/TorahBibleCodes
YOUTUBE: @TorahBibleCodes https://www.youtube.com/@TorahBibleCodes
YOUTUBE: @TorahBibleCodes https://www.youtube.com/channel/UCNsvtMx4JJRpNzzPq57HCqg
BETA DEVELOPMENT PROGRAM (WORK-IN-PROGRESS) UPLOADED; More to come ASAP GOD-willing.

Please support our efforts if you can by donating via GIVESENDGO:
https://www.givesendgo.com/torahbiblecodes

OR via BITCOIN (BTC) to the following addresses:
bc1qzws4zjgzf4wll2mtztsavmyvkg72fnajfff8r7

Equidistant Letter Sequences (ELS)


Witztum, Rips, and Rosenberg (WRR) define an Equidistant Letter Sequence (ELS) as a sequence of letters in the text whose positions - not counting spaces - form an arithmetic progression. That is to say the letters are found at the positions

n, (n + d), (n + 2d), (n + 3d),... (n + (k - 1)d)

WRR define n as the start, d as the skip between letters in the search-term, and k as the length of the ELS. These three parameters uniquely identify the ELS which is denoted (n, d, k).

The Texts Used:

1.) Genesis

https://github.com/TorahBibleCodes/Sefaria-Export/blob/master/json/Tanakh/Torah/Genesis/Hebrew/Tanach%20with%20Text%20Only.json

2.) Exodus

https://github.com/TorahBibleCodes/Sefaria-Export/blob/master/json/Tanakh/Torah/Exodus/Hebrew/Tanach%20with%20Text%20Only.json

3.) Leviticus

https://github.com/TorahBibleCodes/Sefaria-Export/blob/master/json/Tanakh/Torah/Leviticus/Hebrew/Tanach%20with%20Text%20Only.json

4.) Numbers

https://github.com/TorahBibleCodes/Sefaria-Export/blob/master/json/Tanakh/Torah/Numbers/Hebrew/Tanach%20with%20Text%20Only.json

5.) Deuteronomy

https://github.com/TorahBibleCodes/Sefaria-Export/blob/master/json/Tanakh/Torah/Deuteronomy/Hebrew/Tanach%20with%20Text%20Only.json

6.) Joshua

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

7.) Judges

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

8.) I Samuel

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

9.) II Samuel

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

10.) I Kings

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

11.) II Kings

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

12.) Isaiah

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

13.) Jeremiah

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

14.) Ezekiel

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

15.) Hosea

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

16.) Joel

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

17.) Amos

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

18.) Obadiah

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

19.) Jonah

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

20.) Micah

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

21.) Nahum

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

22.) Habakkuk

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

23.) Zephaniah

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

24.) Haggai

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

25.) Zechariah

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

26.) Malachi

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

27.) Psalms

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

28.) Proverbs

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

29.) Job

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

30.) Song of Songs

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

31.) Ruth

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

32.) Lamentations

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

33.) Ecclesiastes

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

34.) Esther

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

35.) Daniel

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

36.) Ezra

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

37.) Nehemiah

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

38.) I Chronicles

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

39.) II Chronicles

https://github.com/TorahBibleCodes/Sefaria-Export/tree/master/json/Tanakh

How to Run the App / Program

READ THE DOCS: @TorahBibleCodes https://torahbiblecodes-sphinx.readthedocs.io/en/latest/index.html

TEST DEVELOPMENT (BETA): MOVE TO --> READ THE DOCS: @TorahBibleCodes https://torahbiblecodes-sphinx.readthedocs.io/en/latest/index.html

Structure of App / Program


After running the Python file p.py, several Python / Pandas Objects are returned to you to interact with and further develop per your needs;
We are currently developing the functionalities in the program to provide certain (many) specific data points, data objects, etc. so that scientifically repeatable (and therefore verifiable) results can be precisely measured, shared, tested, and either confirmed or disproved.
The current BETA DEVELOPMENT version of the program does the following:

  1. Allows the user to select any text(s) from the Torah (Instruction) / Nevi'im (Prophets) / K'tuvim (Writings) of the Tanach (Hebrew Bible).
  2. Allows the user to choose a custom size of the 2D Matrix (X Rows by Y Columns) for the user-selected text(s) to be outputted to a CSV EXCEL file (CAUTION: Numbers approaching 1000 for X Rows will exceed the maximum allowed by EXCEL, and therefore will truncate the text).
  3. Allows the user to choose the number of desired ELS Search-Terms.
  4. Allows the user to input those specified ELS Search-Terms (NOTE: These must be typed in Hebrew characters, else EXCEPTION IS THROWN).
  5. Outputs CSV EXCEL file of the 2D Matrix for the selected text(s).
  6. Outputs CSV EXCEL file of the Gematria Number values for each word AND letter in the selected text(s)
  7. Outputs CSV EXCEL file of the Gematria Number values for each word AND letter in the ELS Search-Terms
  8. Outputs CSV EXCEL file of the ELS Search Term Matches (both POSITIVE and NEGATIVE): Testing of several (best?) ways / algorithms for ELS Search within the text; Currently investigating REGEX, PANDAS, PURE PYTHON LINEAR SEARCH, etc.; Please see and examine the Python / Pandas Data Objects returned to see current capabilities in development.
  9. IN DEVELOPMENT: Outputs CSV EXCEL file of the Data Points for each letter and each word of each of the ELS Search-Terms so that precise, exact positions, shared positions, letter-proximity, statistical probability, etc. of letters will be scientifically verifiable and reproduceable.


We invite you to share your open-source (alternative/multiple?) solutions of further development of this open-source program (e.g. add-ons, additional features, functionalities, GUIs, etc.), as well as scientific research using these software research tools with the community to allow confirmation of your discoveries and data, which will lead to further shared advancement and mutual benefit for us all

Program Concepts: Objects - D (DS), DL, D5, D5K, L (LLL), S (SSS), N (NW), W (DW), ListOfWords, NW4ELS, W4ELS (DW4ELS), LO (DLO), ELSO (DELSO), gso;

READ THE DOCS: @TorahBibleCodes https://torahbiblecodes-sphinx.readthedocs.io/en/latest/index.html

Hebrew Gematria Number Values

1 = א

2 = ב

3 = ג

4 = ד

5 = ה

6 = ו

7 = ז

8 = ח

9 = ט

10 = י

20 = כ / ך

30 = ל

40 = מ / ם

50 = נ / ן

60 = ס

70 = ע

80 = פ / ף

90 = צ / ץ

100 = ק

200 = ר

300 = ש

400 = ת

TEST DEVELOPMENT (BETA): MOVE TO --> READ THE DOCS: @TorahBibleCodes https://torahbiblecodes-sphinx.readthedocs.io/en/latest/index.html

CENTRAL ELS SEARCH ALGORITHM:


n, (n + d), (n + 2d), (n + 3d)... (n + (k-1)d)

sL[6] ## == 'ת' == (n) ## WHEN TEXT SELECTED == 1 GENESIS
sL[6+50] ## == 'ו' == (n + d)
sL[6+50+50] ## == 'ר' == (n + 2d)
sL[6+50+50+50] ## = 'ה' == (n + 3d) ## k == 4 == LengthOfELSSearchTerm

sL[6] ## == 'ת' == (n) ## WHEN TEXT SELECTED == 1 GENESIS
sL[56] ## == 'ו' == (n + d)
sL[106] ## == 'ר' == (n + 2d)
sL[156] ## = 'ה' == (n + 3d)

Useful CLI Commands

sL.str.startswith("ב") --> Returns Boolean (True/False) for each match (True) and for each non-match (False)

sL.str.endswith("ב") --> Returns Boolean (True/False) for each match (True) and for each non-match (False)

sL.str.find("ב") --> Returns Boolean-like (0 / -1) for each match (0) and for each non-match (-1)

sL.str.rfind("ב") --> Returns Boolean-like (0 / -1) for each match (0) and for each non-match (-1)

The following values are all equivalent; Each equals every other value

  • len(sL) --> Total Number of Letters in the Pandas Series s --> Equal to len(S); len(L); len(DL); len(D5); len(N)
  • len(S) --> Total Number of Letters in the Python String S --> Equal to len(sL); len(L); len(DL); len(D5); len(N)
  • len(L) --> Total Number of Letters in the Python List L --> Equal to len(sL); len(S); len(DL); len(D5); len(N)
  • len(DL) --> Total Number of Letters in the Python Dictionary DL with 4-digit Tuple Key --> Equal to len(sL); len(S); len(L); len(D5); len(N)
  • len(D5) --> Total Number of Letters in the Python Dictionary D5 with 5-digit Tuple Key --> Equal to len(sL); len(S); len(L); len(DL); len(N)
  • len(N) --> Total Number of Numbers in the Python List N --> Equal to len(sL); len(S); len(L); len(DL); len(D5)

Statistics

Total Number of Verses in Torah: 5846

Total Number of Letters in Torah: 304850

Total Number of Letter א Aleph in Torah: 27060
Total Number of Letter ב Bet in Torah: 16345
Total Number of Letter ג Gimel in Torah: 2109
Total Number of Letter ד Daled in Torah: 7032
Total Number of Letter ה Heh/Hey/Hay in Torah: 28055
Total Number of Letter ו Vav in Torah: 30533
Total Number of Letter ז Zayin in Torah: 2198
Total Number of Letter ח Ḥet in Torah: 7189
Total Number of Letter ט Tet in Torah: 1804
Total Number of Letter י Yud in Torah: 31556
Total Number of Letter כ Khaf in Torah: 8610
Total Number of Letter ך Khaf Sofit in Torah: 3358
Total Number of Letter ל Lamed in Torah: 21570
Total Number of Letter מ Mem in Torah: 14466
Total Number of Letter ם Mem Sofit in Torah: 10624
Total Number of Letter נ Nun in Torah: 9867
Total Number of Letter ן Nun Sofit in Torah: 4259
Total Number of Letter ס Samekh in Torah: 1833
Total Number of Letter ע 'Ain in Torah: 11250
Total Number of Letter פ Peh/Pey/Pay in Torah: 3975
Total Number of Letter ף Peh/Pey/Pay Sofit in Torah: 830
Total Number of Letter צ Tzadik in Torah: 2927
Total Number of Letter ץ Tzadik Sofit in Torah: 1035
Total Number of Letter ק Kuf in Torah: 4695
Total Number of Letter ר Resh in Torah: 18125
Total Number of Letter ש Shin in Torah: 15595
Total Number of Letter ת Taf in Torah: 17950

Total Number of Verses in Genesis: 1533

Total Number of Letters in Genesis: 78069

Total Number of Letter א in Book of Genesis: 7634
Total Number of Letter ב in Book of Genesis: 4332
Total Number of Letter ג in Book of Genesis: 577
Total Number of Letter ד in Book of Genesis: 1848
Total Number of Letter ה in Book of Genesis: 6283
Total Number of Letter ו in Book of Genesis: 8447
Total Number of Letter ז in Book of Genesis: 428
Total Number of Letter ח in Book of Genesis: 1844
Total Number of Letter ט in Book of Genesis: 308
Total Number of Letter י in Book of Genesis: 9041
Total Number of Letter כ in Book of Genesis: 1909
Total Number of Letter ך in Book of Genesis: 865
Total Number of Letter ל in Book of Genesis: 5275
Total Number of Letter מ in Book of Genesis: 3421
Total Number of Letter ם in Book of Genesis: 2689
Total Number of Letter נ in Book of Genesis: 2776
Total Number of Letter ן in Book of Genesis: 1009
Total Number of Letter ס in Book of Genesis: 446
Total Number of Letter ע in Book of Genesis: 2823
Total Number of Letter פ in Book of Genesis: 890
Total Number of Letter ף in Book of Genesis: 313
Total Number of Letter צ in Book of Genesis: 740
Total Number of Letter ץ in Book of Genesis: 351
Total Number of Letter ק in Book of Genesis: 1301
Total Number of Letter ר in Book of Genesis: 4793
Total Number of Letter ש in Book of Genesis: 3574
Total Number of Letter ת in Book of Genesis: 4152

Total Number of Verses in Hebrew Bible: 23206

Total Number of Letters in Hebrew Bible: 1197042

Total Number of Letter א in Hebrew Bible: 95685
Total Number of Letter ב in Hebrew Bible: 65216
Total Number of Letter ג in Hebrew Bible: 10080
Total Number of Letter ד in Hebrew Bible: 32371
Total Number of Letter ה in Hebrew Bible: 101962
Total Number of Letter ו in Hebrew Bible: 129606
Total Number of Letter ז in Hebrew Bible: 9099
Total Number of Letter ח in Hebrew Bible: 27598
Total Number of Letter ט in Hebrew Bible: 6310
Total Number of Letter י in Hebrew Bible: 137870
Total Number of Letter כ in Hebrew Bible: 33466
Total Number of Letter ך in Hebrew Bible: 14002
Total Number of Letter ל in Hebrew Bible: 88302
Total Number of Letter מ in Hebrew Bible: 57638
Total Number of Letter ם in Hebrew Bible: 41291
Total Number of Letter נ in Hebrew Bible: 39852
Total Number of Letter ן in Hebrew Bible: 15241
Total Number of Letter ס in Hebrew Bible: 7635
Total Number of Letter ע in Hebrew Bible: 44811
Total Number of Letter פ in Hebrew Bible: 15730
Total Number of Letter ף in Hebrew Bible: 2554
Total Number of Letter צ in Hebrew Bible: 11689
Total Number of Letter ץ in Hebrew Bible: 3288
Total Number of Letter ק in Hebrew Bible: 16278
Total Number of Letter ר in Hebrew Bible: 68064
Total Number of Letter ש in Hebrew Bible: 58198
Total Number of Letter ת in Hebrew Bible: 63206

Popular repositories

  1. TorahBibleCodes TorahBibleCodes Public

    Torah Bible Codes - Open-Source

    Python 61 15

  2. Sefaria-Export Sefaria-Export Public

    Forked from Sefaria/Sefaria-Export

    Structured Jewish texts and metadata exported from Sefaria's database.

    8 2

  3. TorahBibleCodes_Sphinx TorahBibleCodes_Sphinx Public

    Sphinx Directory Docs for TorahBibleCodes

    Python 1

  4. ResearchData_KorenCodexVsLeningradCodex ResearchData_KorenCodexVsLeningradCodex Public

    ResearchData_KorenCodexVsLeningradCodex

  5. ResearchData_IsJesusYeshuaTheMessiah ResearchData_IsJesusYeshuaTheMessiah Public

    ResearchData_IsJesusYeshuaTheMessiah

  6. ResearchData_WhoIsTheMessiah_WhoIsMyMessiah ResearchData_WhoIsTheMessiah_WhoIsMyMessiah Public

    ResearchData_WhoIsTheMessiah_WhoIsMyMessiah