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.jsonandvardadieniai.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!("9 November: {}", names_on(11, 9).join(", ")); } There is also a small CLI: cargo install vardadieniai, then vardadieniai, vardadieniai 11-09 or vardadieniai --vardas azuolas. No network access, the whole calendar is compiled in.
Two details that took longer than expected
- Time zone. "Today" has to mean today in Vilnius, not on the server. The crate carries a minimal EU daylight-saving rule instead of a time-zone database, so it stays dependency-free.
- Folding diacritics. People type
zivilefor Živilė. Searching compares folded strings (ą→a, č→c, ė→e …), but the output keeps the proper spelling.
For people who are not programmers
The same calendar with name search, today's and tomorrow's names and a printable PDF lives at dovanasuvardu.lt/vardadieniai. Corrections to the data are welcome as GitHub issues.
