Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Query #269

Answered by chainsawriot
shmuhammadd asked this question in Q&A
Query #269
Dec 20, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

@shmuhammad2004
The problem is that the tokenizer at Twitter produces a search index with both "don" and "don't" for tweets with "don't". It makes sense because some languages use apostrophes as delimiter too, e.g. L’université.

So quoting doesn't produce what you would want (BTW, it makes no sense to quote a single word). My suggestion is to do it this way instead.

require(academictwitteR)
#> Loading required package: academictwitteR

x <- get_all_tweets("don 😃 -don't",
                 start_tweets = "2020-01-01T00:00:00Z",
                 end_tweets = "2021-11-01T00:00:00Z",
                 n = 10,
                 country = "ng",
                 verbose = FALSE)
x$text
#>  [1] "Nkw…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@shmuhammadd
Comment options

Answer selected by shmuhammadd
Comment options

You must be logged in to vote
1 reply
@chainsawriot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants