Skip to contents

Main functions

gallicagram()
Occurrences of a keyword in a Gallicagram copus
gallicagram_associated()
Words the most often associated with a keyword in a Gallicagram corpus
gallicagram_cooccur()
Close co-occurrences of two keywords in a Gallicagram copus
gallicagram_with()
ngrams that most frequently contain a keyword in a Gallicagram corpus over a period

Lexicon version of main functions

Running the main functions for more that one keyword.

gallicagram_lexicon()
Occurrences of a list of keywords in a Gallicagram corpus
gallicagram_associated_lexicon()
Words the most often associated with a vector of keywords in a Gallicagram corpus
gallicagram_cooccur_lexicon()
Close co-occurrences of two lexicons in a Gallicagram copus
get_same_stem()
Finds words with the same stem as a keyword

Graph functions

gallicagraph()
Automatically produces the relevant graph
gallicagraph_occur()
Graph describing the evolution of the proportion of occurrences
gallicagraph_cooccur()
Graph describing the evolution of the proportion of co-occurrences
gallicagraph_associated()
Graph describing the most common co-occurrences with a keyword or lexicon

Other functions

gallicagram_with_month()
ngrams that most frequently contain a keyword in a Gallicagram corpus for a specific month
gallicagram_all()
Occurrences of a keyword in all Gallicagram corpora

Data

list_corpora
A data frame containing information about the available corpora
list_subcorpora
A data frame containing information about the available subcorpora
stopwords_gallica
A vector containing the most frequent words in the Gallica books corpus
word_lemma_stem
A data frame containing words, their lemmas and stem of the lemmas

Internal functions

error_param()
Internal function to check for errors in the parameters
prepare_param()
Internal function to prepare the parameters to use them in the API call.
read_data_gallicagram()
Internal function to read the output of the API call.
tidy_gallicagram()
Internal function to tidy the output of the API call.