Git Product home page Git Product logo

gemmatria's Introduction

gemmatria

An R package used for calculating the Gemmatria of Hebrew words and phrases.

What is Gemmatria?

(From Wikipedia)

Gematria /ɡəˈmeɪtriə/ (Hebrew: גמטריא or גימטריה, plural גמטראות or גמטריאות, gematriot) is an alphanumeric code of assigning a numerical value to a name, word or phrase based on its letters. People who practice gematria believe that words with identical numerical values may bear some relation to each other or to the number itself. A single word can yield multiple values depending on the cipher used.

Description

This package contains functions used for calculating the Gemmatria of Hebrew words and phrases. To the best of the author's knoweldge, no other tools in like this are availible in R (while they do exist in other languages).

This is an attempt to provide tools for those interested in studying Hebrew text(s) and would quickly like to see Gemmatrias or rearrangement of the text(s) which they wish to examine. This is also an attempt to contribute to tools which can be used for NLP of Hebrew Language.

The tools presently availible in this package are:

  • A standard Gemmatria calculator (get_gemmatria())
  • A AtBash Calculator (get_gemmatria_ab())
  • A Roshei Taivos Calculator (get_gemmatria_rt())
  • A Sofei Taivos Calculator (get_gemmatria_st())
  • A Gemmatria Converter (as_gemmatria())
  • An AtBash Converter (as_atbash())

Dependencies

Presently, the only dependency this package has is the revalue() function from the plyr package.

Encoding

Because this deals with Hebrew text, functions are encoded in UTF-8, however for publishing this code on CRAN this imposes some limitations. After running devtools::check() on the package. The following warning was produced.

checking R files for non-ASCII characters ... WARNING
  Found the following files with non-ASCII characters:
    as_atbash.R
    as_gemmatria.R
    get_gemmatria.R
    get_gemmatria_atbash.R
    get_gemmatria_rt.R
    get_gemmatria_st.R
  Portable packages must use only ASCII characters in their R code,
  except perhaps in comments.
  Use \uxxxx escapes for other characters.

Installing this Package

This package can be installed with using the devtools package

devtools::install_github("benyamindsmith\gemmatria")

Examples

Getting the Gemmatria of Hebrew Words

To get the Gemmatria of Hebrew Words, we can use the get_gemmatria() to find out how much it is.

> get_gemmatria("מה זה גימטריה של זה")
[1] 676

Converting to Gemmatria Form

Lets say we want to find the Gemmatria formof the number 613. With the as_gemmatria() function we can do that:

> as_gemmatria(613)
[1] "תריג"

The documentation with the other functions provide similar examples.

Limitations

Because this is a work in progress there are many things which still need to be dealt with. Here are a few:

  • Error Handling
  • Special Characters
  • NA actions
  • More Verbose Documentation
  • Conversion of Characters in ASCII coding.

Being that this is a self driven project (though I am open for collaborators) this will take some time to address these issues.

With this said, the package is usable for research. However it presently is not ready to be published on CRAN.

Shiny App

To use this package with a user interface, check out the Shiny app here: https://github.com/benyamindsmith/gemmatria_app (NOTE: It requires that the gemmatria package is installed)

Contact

If you are interested in taking part in this project. Please feel free to contact me via GitHub.

gemmatria's People

Contributors

benyamindsmith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

omiom33

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.