Releases: mathewsanders/Tally-Walker
Releases · mathewsanders/Tally-Walker
The 🆕 normal
Added support for item normalization.
Updated
- README is broken down into smaller sections.
Added
- Added
TallyNormalizer
protocol for items to describe how they should be normalized. - Added
normalized
closure to Tally model so that models can define on a case-by-case situation how items should be normalized.
Persistence is futile 🔑
This release is all about enabling Tally models to have a custom stores, which in turn allows for features like persistence!
Updated
- n-grams are represented by an array of
NgramElement
instead ofNode
. - Tally is updated so that the representation of the model is moved into a separate
TallyStoreType
object.
Added
TallyStoreType
, the protocol defining implementation of a Tally store.TallyStoreTreeNode
, a protocol for the recommended approach of implementingTallyStoreType
, but creating a tree-based store.MemoryTallyStore
, a tree-based in-memory store used by default for models. Available for use for anyHashable
items.CoreDataTallyStore
, a tree-based store backed in turn by a Core Data store. Available for use for anyLosslessConvertible
items.LosslessConvertible
, a protocol which when implemented allows a type to convert between itself, and a representation that can be stored within the CoreDataTallyStore object model.- Simple example of iOS app using Tally to implement a predictive text view for a text field.
- New logo!
Fixed
- Access level errors so that Tally can be used when imported as a framework.
Initial feedback
0.1.0 Readme errata.