Esoteric Delights
Eric Murriguez' blog dedicated to all things esoteric in the lands of programming, music, life, and other hermetic musings.

Web Services for Gematria and Transliteration Now Available

May 25, 2008 21:30 by Eric

Two new web methods are available here. Follow the link for the (wsdl) service descriptions.

  •  GetGematria: takes two parameters, a Hebrew word or phrase (i.e., multiple words separated by spaces) as a string (can take UTF-8/Unicode input) and a boolean value that indicates whether or not you want it to include the final (sofit) values in the calculation.  Returns an integer.
    • Input Parameters
      • hebrewPhrase: string
      • ignoreFinalLetterValues: boolean
    • Returns
      •  integer
  • TransliterateEnglishToHebrew: takes two parameters, an English word or phrase (i.e., multiple words separated by spaces) as a string and a boolean value that indicates whether or not you want it to omit vowels. Returns a string of Hebrew characters (in UTF-8/Unicode encoding).
    • Input Parameters:
      • englishPhrase: string
      • omitVowels: boolean
    • Returns
      • string

How is this useful?  If you wanted to take an English name, or word, or phrase, and transliterate it (i.e, find the equivalent Hebrew characters, not the translation of the word into Hebrew), you could get the transliteration from the web method call to TransliterateEnglishToHebrew.  For example, my name:

  • The transliteration for Eric Murray is הריך מוררע (omitVowels=false)
  • The transliteration for Eric Murray is רך מררי (omitVowels=true)

Once you have a Hebrew word/phrase/sentence, you can call the gematria function if you want to calculate the gematria.  Additionaly, you can set an option for whether or not to calculate the larger final (sofit) values.  My name is a good example again, as the "c" transliterates to the Hebrew letter Kaph, which since it falls in the final position could be counted as either 20 or 500:

  • The gematria for רך מררי is 670 (ignoreFinalLetterValues=true)
  • The gematria for רך מררי is 1150 (ignoreFinalLetterValues=false)

The sample C# code used to call this web service is below - just add a web reference by pointing it at http://www.esotericdelights.com/Gematria.asmx.  In my example, I declared the reference as "EsotericDelights" in a simple Windows form application:


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments