speechbr
Scrap Speech Text And Speaker Informations of Discusos E Notas Taquigraficas of Câmara Dos Deputados Of Brazil, And Transform In A Tidy Tibble.
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.7%) to scientific vocabulary
Last synced: 11 months ago
·
JSON representation
Repository
Scrap Speech Text And Speaker Informations of Discusos E Notas Taquigraficas of Câmara Dos Deputados Of Brazil, And Transform In A Tidy Tibble.
Basic Info
Statistics
- Stars: 45
- Watchers: 3
- Forks: 2
- Open Issues: 1
- Releases: 0
Created over 4 years ago
· Last pushed over 4 years ago
Metadata Files
Readme
License
README.Rmd
---
output: github_document
always_allow_html: true
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# speechbr
[](https://cran.r-project.org/package=speechbr)
## Overview
The goal of `{speechbr}` is to democratize access to the speeches of the deputies, that is, their ideias and thoughts.
The data is obtained on [Discursos e Notas Taquigráficas](https://www2.camara.leg.br/atividade-legislativa/discursos-e-notas-taquigraficas) of [Câmara dos Deputados](https://www.camara.leg.br/).
## Observation
The released version from CRAN is limited to speeches before 2022. For access speeches after 2021-12-31, use the development version.
## Installation
You can install the released version of `{speechbr}` from [CRAN](https://cran.r-project.org/) with:
```{r eval=FALSE, error=FALSE, message=FALSE, warning=FALSE}
install.packages("speechbr")
```
You can install the development version of `{speechbr}` from [GitHub](https://github.com/) with:
```{r eval=FALSE, error=FALSE, message=FALSE, warning=FALSE}
# install.packages("devtools")
devtools::install_github("dcardosos/speechbr")
```
## Example
An example of a base searching for the term "tecnologia" between 2021-09-01 and 2021-10-01:
```{r example, warning=FALSE, message=FALSE}
library(speechbr)
tab <- speechbr::speech_data(
keyword = "tecnologia",
start_date = "2021-09-01",
end_date = "2021-10-01")
dplyr::glimpse(tab)
```
The others parameters are `party` (political party), `speaker` (speaker's name) and `uf` (state acronym). Their default values are _empty_ ("").
A simple application using the base, a wordcloud:
```{r example_2, eval = FALSE}
# install.package("wordlcoud2")
# install.package("tidytext")
stop_words <- tidytext::get_stopwords("pt")
others_words <- c("nao", "ter", "termos", "r", "fls", "sr", "ja", "sao",
"porque", "aqui","ha", "ser", "ano", "presidente", "tambem")
tab %>%
tibble::rowid_to_column("id") %>%
dplyr::select(id, discurso) %>%
tidytext::unnest_tokens(word, discurso) %>%
dplyr::filter(!grepl('[0-9]', word)) %>%
dplyr::mutate(word = abjutils::rm_accent(word)) %>%
dplyr::anti_join(stop_words) %>%
dplyr::group_by(word) %>%
dplyr::count(word, sort = TRUE) %>%
dplyr::filter(n > 5, !word %in% others_words) %>%
wordcloud2::wordcloud2()
```
### Example of a base
```{r example_3, echo=FALSE}
tab %>%
head(2) %>%
knitr::kable()
```
## How to cite
[](https://doi.org/10.5281/zenodo.5921104)
Owner
- Name: Douglas Cardoso
- Login: dcardosos
- Kind: user
- Company: Universidade de São Paulo
- Twitter: duglaiz
- Repositories: 4
- Profile: https://github.com/dcardosos
Tech Finance Intert at isaac and Business Administration student at USP.
GitHub Events
Total
- Issues event: 1
- Issue comment event: 1
Last Year
- Issues event: 1
- Issue comment event: 1
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| dcardosos | d****o@u****r | 50 |
| C. Lente | 7****e | 10 |
| dcardoso | d****o@p****m | 2 |
Committer Domains (Top 20 + Academic)
paypal.com: 1
usp.br: 1
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 5
- Total pull requests: 1
- Average time to close issues: 3 days
- Average time to close pull requests: about 3 hours
- Total issue authors: 4
- Total pull request authors: 1
- Average comments per issue: 0.8
- Average comments per pull request: 1.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- dcardosos (2)
- pedrocapetti (1)
- zedafea (1)
- mrlmotta (1)
Pull Request Authors
- clente (1)
Top Labels
Issue Labels
bug (1)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 264 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: speechbr
Access the Speechs and Speaker's Informations of House of Representatives of Brazil
- Homepage: https://github.com/dcardosos/speechbr
- Documentation: http://cran.r-project.org/web/packages/speechbr/speechbr.pdf
- License: MIT + file LICENSE
-
Latest release: 2.0.0
published over 4 years ago
Rankings
Stargazers count: 7.6%
Forks count: 17.8%
Dependent packages count: 29.8%
Average: 33.5%
Dependent repos count: 35.5%
Downloads: 77.0%
Maintainers (1)
Last synced:
11 months ago
Dependencies
DESCRIPTION
cran
- abjutils * imports
- dplyr * imports
- glue * imports
- httr * imports
- janitor * imports
- lubridate * imports
- magrittr * imports
- purrr * imports
- rlang * imports
- rvest * imports
- stringr * imports
- tibble * imports
- tidyr * imports
- xml2 * imports
- testthat >= 3.0.0 suggests