Skip to content

benyamindsmith/gemmatria

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A R Package for Calculating and Examining Gemmatrias of Hebrew Text.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages