Menu

Lithuanian name days as open data: JSON, CSV and a tiny Rust crate
📰

Lithuanian name days as open data: JSON, CSV and a tiny Rust crate

DEV Community: rust·Justas Arbatauskis·1 day ago
#8REsY754
#devtorust#devto#dev#vardadieniai#today
Reading 0:00
15s threshold

In Lithuania many people celebrate their vardadienis (name day) almost as much as a birthday. Every day of the year has a few names attached to it, so offices, schools and families check the calendar to see who to congratulate today.

I could not find a clean, machine-readable version of that calendar, so I put one together and published it under an open licence.

What is in the repository

vardadieniai.json and vardadieniai.csv – all 366 days with their names (data from Lithuanian Wikipedia, CC BY-SA 4.0);

vardai.json – a reverse index: name → days;

a Rust crate, a Python package and a D package built on the same data.

Repository: https://github.com/ello-lithuania/lietuviski-vardadieniai

Rust

use vardadieniai :: { days_for , names_on , today } ;

fn main ( ) { // Names celebrated today (Europe/Vilnius time) println! ( "Today: {}" , today ( ) . join ( ", " ) ) ; // Diacritics are optional: "azuolas" finds "Ąžuolas" println! ( "Ąžuolas: {:?}" , days_for ( "azuolas" ) ) ; println!…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.