The goal of wikimorphemes is to provide tools for extracting morphemes from Wiktionary entries. The wikimorphemes api is not yet stable and may change.
You can install the released version of wikimorphemes from CRAN with:
# No you can't.
#install.packages("wikimorphemes")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("macmillancontentscience/wikimorphemes")
The main function in wikimorphemes is process_word
.
library(wikimorphemes)
process_word("unaffable")
#> prefix base_word
#> "un-" "affable"
process_word("understandable")
#> base_word suffix
#> "understand" "-able"
process_word("standing")
#> base_word inflection
#> "stand" "-ing"
If you are going to work on this package, please begin by running
download_wikimorphemes_lookup()
. This will download the latest cached
version of the lookup (10.7MB), which will then be used in tests.
Please note that the wikimorphemes project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.