Consider adding a feature for canonical words, that allows storing the canonical word within Match states.
Currently, this is the default behavior. However, not all users will use the current find() method, and therefore they must use a suboptimal PDA. Making the canonical words be optional means that some builds could omit the word, and therefore they could benefit from merging of Match states and will have smaller binary sizes.
Additionally, consider renaming the find() method to find_canonical() to differentiate between find_raw().
Consider adding a feature for canonical words, that allows storing the canonical word within
Match
states.Currently, this is the default behavior. However, not all users will use the current
find()
method, and therefore they must use a suboptimal PDA. Making the canonical words be optional means that some builds could omit the word, and therefore they could benefit from merging ofMatch
states and will have smaller binary sizes.Additionally, consider renaming the
find()
method tofind_canonical()
to differentiate betweenfind_raw()
.