0.0
No release in over a year
A ruby gem to manage Gallicagram data
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

Gallicagram gem

This gem allows you to search Gallicagram data in Ruby. It's inspired by pyllicagram.

Gallicagram is a program that graphically represents the evolution over time of the frequency of occurrence of one or more words, using the data of Gallica and many other libraries. This project was created by Benjamin Azoulay & BenoƮt de Courson.

Installation

Add this line to your application's Gemfile:

gem 'gallicagram'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gallicagram

Usage

First require the gallicagram gem:

require 'gallicagram'

Then, search the data with the following parameters:

# query = string or array of strings
# corpus = string ("lemonde","livres","presse")
# start_date = string (year)
# end_date = string (year)
# resolution = string ("year", "month")
# sum = true to return the sum of the frequencies of the searched words

Gallicagram.search("query","lemonde","1900","2000","month",false) 

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/nicolrx/gallicagram. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the Creative Commons License.