2.3.0
New Localizations
- Spanish
- French
Timezone Calculations
- New
preferActiveTimeZoneAbbreviations
onEngineFeatureFlags
. With this option on, SoulverCore will automatically use the equivalent in-use timezone for when a timezone abbreviations that is not currently being observed is used. The default value is true.
Natural Language Date Parsing & Scheduling
- The
seeksFutureDate
mode onEngineFeatureFlags
has been upgraded to support unit shorthands likew
for weeks andd
for days. Alsop
anda
can be used as shorthands for am and pm. - Added support for datestamps without spaces, like
jul9
. - Added a
dateValue
property onString
to quickly extract a natural language date
Natural Language Function Parsing
- Added a convenience static function on
Calculator
to quickly extract the parameters of a natural language custom function from a string. For example you could quickly extract the decimal 4.0 in the following function:
let parameters = Calculator.functionParametersIn("4 over 20", matching: ["3 over 9"]) // [4.0, 20.0]
Performance
- Minor performance improvements