knitr::opts_chunk$set( collapse=TRUE, comment="#>", # fig.path="man/figures/README-", out.width="100%" ) options(tibble.print_min = 5, tibble.print_max = 5)
This package is under active development. Things might change without backwards compatibility.
klartext is a collection of tools to clean and normalize text.
# install.packages("remotes") remotes::install_github("m-pilarski/klartext")
# reticulate::use_condaenv("r-reticulate") # klartext:::check_num2words(.do_install=TRUE)
library(klartext) example_emoji <- "π π π‘ π" str_describe_emoji(example_emoji, .resolution="name") str_describe_emoji(example_emoji, .resolution="subgroup") str_describe_emoji(example_emoji, .resolution="group") str_convert_nonascii("Ε¦ΓͺΕΕ₯ β - β β β¦ ΓΓΓΆΓ ?ΒΏ") str_unify_spacing(c( "This @test_at that\n #test_hash <test-no-tag>", "<TEST_TAG> test!?!? An URL www.example.com/test ." )) str_blur_numbers(c( "The two thousand and twenty United States presidential", "election was the 59th quadrennial presidential election", "held on Tuesday, November third, 2020. #2020" )) # str_describe_numbers(c( # "The 2020 United States presidential election was the", # "59th quadrennial presidential election held on Tuesday,", # "November 3rd, 2020." # ))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.