Giter Site home page Giter Site logo

jontiben / mass-gematria Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

Searches for words in a text file with a specific gematria value, using four different Latin-based systems. Similar to another project of mine, https://github.com/jontiben/kesher-600.

License: MIT License

Python 100.00%
gematria

mass-gematria's Introduction

Mass Gematria

Written by jontiben, 2023, in Python

Usage:

python mass_gematria.py {target number} {filename}

Examples:

With roman_emperors.txt in the same folder as mass_gematria.py:

python mass_gematria.py 666 roman_emperors.txt

Other:

python mass_gematria.py 47 "C:\Users\jontiben\AppData\Roaming\.minecraft\logs\telemetry\20230204-1.json"

Example Output:

MASS GEMATRIA CHECK
Finding words with a value of 59 in file C:\Users\jontiben\Downloads\test_file.txt

Checking gematria systems:
- Ordinal
- Reduction
- Reverse
- Reverse-Reduction

------------------------------------------------

-       cooperation -- Reduction (59)
-       direct -- Ordinal (59)

------------------------------------------------

Finished, 2 total matches.

Behavior:

Files are broken up into segments by spaces and line breaks, and each segment is checked independently for its gematria values.

Any numbers encountered are considered to have their own value. Punctuation is ignored, even if it appears in the output. There are a number of alternate Latin characters (ø, ð, á, etc.) that are defined in gematria_values.py to be equivalent to one of the 26 standard Latin characters (becoming o, d, a, etc.). This behavior is easily modifiable and extensible by messing with gematria_values.py. Characters that do not appear anywhere in gematria_values.py are ignored.

Only one instance of a word and the system(s) in which it was matched is shown.

Supported Gematria Types:

(All Latin script only)

  • Ordinal (a=1, b=2, ... z=26)
  • Reduction (a=1, b=2, ... i=9, j=1, k=2, ...)
  • Reverse(-Ordinal) (a=26, b=25, ... z=1)
  • Reverse-Reduction (a=8, b=7, ... h=1, i=9, j=8, ...)

License:

The project uses the MIT license.

mass-gematria's People

Contributors

jontiben avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.