Releases: soulverteam/SoulverCore
Releases · soulverteam/SoulverCore
1.4.3
1.4.2
- Words in the form "utf-8" are now ignored
- For locales that use space as a thousand separator (like Russia), both , and . can be used as a decimal point
- Fixed an issue where an NSDecimalNumberOverflowException could be raised during parsing for very large numbers
1.4.1
- Support for natural language numbers: "five minus three", "five hundred thirty three + two hundred and twelve", "one year ago"
- Support for compounded natural phrase functions: "half of 30% of half of 100"
- Added an arbitrary base log function: "log 20 base 4"
- Added square root function: "square root of 81"
- Added cubed root function: "cubed root of 27"
- Scientific notation now works with numbers with fractions: "3e3.3"
- Scientific notation (rather than SI notation) is now used for numbers larger than a trillion, and smaller than 1e-9
- Certain date related words, and natural language numbers, are now ignored when not used as part of a calculation
1.4.0
1.3.1
1.3.0
- Added a metadata property on a TokenList. This API lets you quickly get to the data primitives involved in common expression "forms" (unit conversions, time zone conversions, etc).
- Support for hexadecimal and binary conversions ('0b1001 to decimal', '512 to hex', '0x23F to binary').
- Added a function to get the midpoint between two dates ('halfway/midpoint between March 12 and October 5')
1.2.1
- You can now specify the calendar and timezone for doing calculations on an EngineCustomization. Previous builds would always use the system timezone and calendar.
- Added the ability to set holidays on an EngineCustomization. These are taken into account when doing workday calculations.
- Support for noon/midday and midnight in time calculations
- Added a "seeksFutureDate" property on FeatureFlags. With this on, SoulverCore will optimize for a date result. For instance '11/3' will be 11 March (or 3 November, depending on the locale) rather than a division.
- Added a convenience method 'dateFor(expression)' on Calculator as a quick way to get a date from an expression.
- Improved Chinese (simplified) support
1.2.0
- Support for airports as timezones: '10pm SFO to LHR"
- Support for volume to weight cooking conversions: "1 cup butter in grams"
- Support for military time: "1945h + 30 mins"
- Support for 'misformatted' dates: "18.11 + 3 weeks"
- Bug fixes and minor performance improvements
1.1.7
- Fractions can now be used in all percentage word functions: "2/3 of 500", "50 is 1/5 of what", etc.
- Improved the behaviour of the "time unit until date" phrase when the time on the date is not specified:
- Expressions with small units of time (like hours, minutes & seconds) will count up to the start of the requested date (like hours until tomorrow will count the number of hours until midnight tonight)
- Expressions with larger units of time (like days, months, weeks, years) will count up to the same time on the requested date (so days until tomorrow = 1 day).
- Support for clock times without a colon when followed by a timezone: "1900 PST to UTC"
- Added a phrase for getting the ISO 8601 week number on a certain date: "week number on March 12", "week number today"
- You can now use fractional years in interest calculation functions
- Fixed an issue with applying a currency symbol to an expression in parenthesis
- 20% parsing performance increase