A powerful Swift framework for evaluating natural language math expressions
weatherDataProvider
property on EngineCustomization
)preferActiveTimeZoneAbbreviations
flagpreferActiveTimeZoneAbbreviations
on EngineFeatureFlags
. 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.seeksFutureDate
mode on EngineFeatureFlags
has been upgraded to support unit shorthands like w
for weeks and d
for days. Also p
and a
can be used as shorthands for am and pm.jul9
.dateValue
property on String
to quickly extract a natural language dateCalculator
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]
allowsMisplacedThousandsSeparators
on EngineFeatureFlags
(the default is true
)