Releases: yellis/Gematria
Releases · yellis/Gematria
1.1
1.0.2
- Add Strict Mode as an option when running
Calculator.GetNumericGematriaValue()
. When turned on the calculator will throw aFormatException
whenever the numbers at the end of the string that are under 100 (ק) are not included in descending numeric order, and do not appear on the exceptions list.- See #1 for more detail.
- A peek at the unit test for this might also make this more easy to comprehend.
- You can set your global preference using
Calculator.ForceNumericStrictMode
(defaults tofalse
) and you can set your preference for individual calls using theisStrictMode
param in the function call. - This is available in nuget 1.0.2.
1.0.0
Initial release of full functionality.
This library exposes the following methods, all available through the static Calculator class:
GetGematriaValue
- Calculates the gematria value for all Hebrew letters in the given string.
- Ignores all characters that are not Hebrew letters.
GetNumericGematriaValue
- Calculates the gematria value for a string that is intended to represent a number (example: a year in the Hebrew calendar or page in a Hebrew book).
- This function expects that the given string will contain only one word, and will throw an error if more than one word is included (this is because a string of Hebrew characters representing a number will never consist of multiple words).
- Ignores non-Hebrew characters and punctuation in the given word.
ConvertToGematriaNumericString
- Convert a number into its Gematria Numeric Representation
See ReadMe for more info.