trinker/syllable: syllable 0.1.3
Description
Releases will be numbered with the following semantic versioning format:
<major>.<minor>.<patch>
And constructed with the following guidelines:
- Breaking backward compatibility bumps the major (and resets the minor and patch)
- New additions without breaking backward compatibility bumps the minor (and resets the patch)
- Bug fixes and misc changes bumps the patch
CHANGES
as.tibble
removed from all function arguments. This was a nice interactive feature that made programming very difficult to reason about. Having an environment dependant output would result in no adoption of the syllable package as a dependency. The problem was so egregious and the package infant enough, that removal without deprecation was warranted.
NEW FEATURES
Users can now globally select a tibble output rather than a data.table output for all functions that outputted a data.table. This can be set globally via
set_output
. If the user does not set the output type syllable tries to infer based on whether or not the user has dplyr loaded. If dplyr is loaded then tibble is the default output.set_output
andtibble_output
imported from textshape to globally set the output type (tibble or data.table) and to check/infer the desired output type.
IMPROVEMENTS
readability_word_stats
andreadability_word_stats_by
used stringi's sentence detection. This was not accurate as seen: http://stackoverflow.com/q/31865511/1000343. The package now utilizes NLP/openNLP to detect number of sentences. This comes at the cost of speed.readability_word_stats
now removes -es & -ed suffixes for calculatingn.complexes
.
CHANGES
NLP and openNLP dependencies replaced with textshape and textclean to improve sentence detection speed.
textcleanLite dependency replaced with textclean because the hunspell dependency in textclean is no longer explicitly imported. This allows the package to be used within trickier environments such as Microsoft Azure.
This package is a small collection of tools for counting <a href="https://github.com/trinker/syllable" target="_blank">syllable</a>s and polysyllables. The tools rely primarily on a 'data.table' hash table lookup, resulting in fast <a href="https://github.com/trinker/syllable" target="_blank">syllable</a> counting.
Files
trinker/syllable-v0.1.3.zip
Files
(846.3 kB)
Name | Size | Download all |
---|---|---|
md5:fa0ec793e87d01dcb0870628e48e32b8
|
846.3 kB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/trinker/syllable/tree/v0.1.3 (URL)