Skip to content

Commit

Permalink
Final updates for 2.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kbenoit committed Oct 28, 2021
1 parent c7cbd14 commit 8add916
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion R/data.r
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
#'
#' `stopwords(language = "la", source = "ancient")`
#' @source Aurélien Berra, Ancient Greek and Latin stopwords,
#' \doi{10.5281/zenodo.1165205}. See
#' `doi: 10.5281/zenodo.1165205`. See
#' [https://github.com/aurelberra/stopwords/blob/master/rationale.md]().
#' @seealso [data_stopwords_perseus]
"data_stopwords_ancient"
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ library("badger")
[![CRAN Version](https://www.r-pkg.org/badges/version/stopwords)](https://CRAN.R-project.org/package=stopwords)
`r badge_devel("quanteda/stopwords", "royalblue")`
[![R build status](https://github.com/quanteda/stopwords/workflows/R-CMD-check/badge.svg)](https://github.com/quanteda/stopwords/actions)
[![codecov](https://codecov.io/gh/quanteda/stopwords/branch/master/graph/badge.svg)](https://codecov.io/gh/quanteda/stopwords)
[![codecov](https://codecov.io/gh/quanteda/stopwords/branch/master/graph/badge.svg)](https://app.codecov.io/gh/quanteda/stopwords)
[![Downloads](https://cranlogs.r-pkg.org/badges/stopwords)](https://CRAN.R-project.org/package=stopwords)
[![Total Downloads](https://cranlogs.r-pkg.org/badges/grand-total/stopwords?color=orange)](https://CRAN.R-project.org/package=stopwords)

Expand Down
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

[![CRAN
Version](https://www.r-pkg.org/badges/version/stopwords)](https://CRAN.R-project.org/package=stopwords)
[![](https://img.shields.io/badge/devel%20version-2.2-royalblue.svg)](https://github.com/quanteda/stopwords)
[![](https://img.shields.io/badge/devel%20version-2.3-royalblue.svg)](https://github.com/quanteda/stopwords)
[![R build
status](https://github.com/quanteda/stopwords/workflows/R-CMD-check/badge.svg)](https://github.com/quanteda/stopwords/actions)
[![codecov](https://codecov.io/gh/quanteda/stopwords/branch/master/graph/badge.svg)](https://codecov.io/gh/quanteda/stopwords)
[![codecov](https://codecov.io/gh/quanteda/stopwords/branch/master/graph/badge.svg)](https://app.codecov.io/gh/quanteda/stopwords)
[![Downloads](https://cranlogs.r-pkg.org/badges/stopwords)](https://CRAN.R-project.org/package=stopwords)
[![Total
Downloads](https://cranlogs.r-pkg.org/badges/grand-total/stopwords?color=orange)](https://CRAN.R-project.org/package=stopwords)
Expand Down Expand Up @@ -39,6 +39,7 @@ head(stopwords::stopwords("de", source = "snowball"), 20)
## [1] "aber" "alle" "allem" "allen" "aller" "alles" "als"
## [8] "also" "am" "an" "ander" "andere" "anderem" "anderen"
## [15] "anderer" "anderes" "anderm" "andern" "anderr" "anders"

head(stopwords::stopwords("ja", source = "marimo"), 20)
## [1] "私" "僕" "自分" "自身" "我々" "私達"
## [7] "あなた" "彼" "彼女" "彼ら" "彼女ら" "あれ"
Expand All @@ -62,6 +63,7 @@ Explore sources and languages:
stopwords::stopwords_getsources()
## [1] "snowball" "stopwords-iso" "misc" "smart"
## [5] "marimo" "ancient" "nltk" "perseus"

# list languages for a specific source
stopwords::stopwords_getlanguages("snowball")
## [1] "da" "de" "en" "es" "fi" "fr" "hu" "ir" "it" "nl" "no" "pt" "ro" "ru" "sv"
Expand Down Expand Up @@ -151,6 +153,7 @@ head(stopwords::stopwords("de", source = "snowball"), 20)
## [1] "aber" "alle" "allem" "allen" "aller" "alles" "als"
## [8] "also" "am" "an" "ander" "andere" "anderem" "anderen"
## [15] "anderer" "anderes" "anderm" "andern" "anderr" "anders"

head(stopwords::stopwords("de", source = "stopwords-iso"), 20)
## [1] "a" "ab" "aber" "ach" "acht"
## [6] "achte" "achten" "achter" "achtes" "ag"
Expand All @@ -174,6 +177,7 @@ Explore sources and languages:
stopwords::stopwords_getsources()
## [1] "snowball" "stopwords-iso" "misc" "smart"
## [5] "marimo" "ancient" "nltk" "perseus"

# list languages for a specific source
stopwords::stopwords_getlanguages("snowball")
## [1] "da" "de" "en" "es" "fi" "fr" "hu" "ir" "it" "nl" "no" "pt" "ro" "ru" "sv"
Expand Down Expand Up @@ -208,14 +212,15 @@ instance, this would work:

``` r
library("quanteda", warn.conflicts = FALSE)
## Package version: 3.1.0
## Package version: 3.1.0.9000
## Unicode version: 13.0
## ICU version: 66.1
## Parallel computing: 6 of 6 threads used.
## ICU version: 69.1
## Parallel computing: 12 of 12 threads used.
## See https://quanteda.io for tutorials and examples.
posspronouns <- stopwords::data_stopwords_marimo$en$pronoun$possessive
posspronouns
## [1] "my" "our" "your" "his" "her" "its" "their"

stopwords("en", source = "snowball") %>%
head(n = 10)
## [1] "i" "me" "my" "myself" "we" "our"
Expand Down
6 changes: 6 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Resubmission

- Updated WORDLIST to stop a spell-check failure for a note added to NEWS.md.
- Changed URLs to new versions that caused NOTES.
- Knitted README.Rmd to change URLs in README.md.

## Purpose

Fixes CRAN failures caused by a usage of lintr in tests.
Expand Down
1 change: 1 addition & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ ja
kk
ko
ku
lintr
lt
lv
marimo
Expand Down

0 comments on commit 8add916

Please sign in to comment.