Cotton code
193 lines · 11.1 KB · RustRaw
//! The words an invented household is made of. Nothing here names a real//! person, place of residence, account or address: people are first-name +//! surname pairs drawn from lists wide enough that no pairing is anyone,//! every email is under `example.com` or `example.org`, every street is made//! up, and cities are large public places a life could plausibly touch.pub const FIRST_NAMES: &[&str] = &[    "Amara", "Benedikt", "Chiara", "Dawit", "Elin", "Farid", "Greta", "Hiro", "Ines", "Jonas",    "Kaveh", "Leonie", "Mateo", "Nadia", "Oskar", "Priya", "Quentin", "Rosa", "Sven", "Tomas",    "Uma", "Viktor", "Wren", "Ximena", "Yusuf", "Zara", "Anouk", "Bashir", "Cleo", "Dario",    "Esme", "Felix", "Gwen", "Hamid", "Ilse", "Jun", "Kirsten", "Lior", "Maren", "Nikolai",    "Olu", "Petra", "Rafael", "Sanne", "Teo", "Ulla", "Vera", "Wim", "Yara", "Zeynep",    "Aurelio", "Birgit", "Cassius", "Delphine", "Emeka", "Freya", "Gaspar", "Hanna", "Idris",    "Jelena", "Kofi", "Lucía", "Milan", "Noor", "Orla", "Pavel", "Rhea", "Soren", "Tilde",];pub const SURNAMES: &[&str] = &[    "Albrecht", "Baptiste", "Carvalho", "Dahl", "Ekström", "Fontaine", "Gallo", "Haddad",    "Ivanova", "Jansen", "Kowalczyk", "Lindqvist", "Marchetti", "Nakamura", "Okafor", "Petrov",    "Quiroga", "Rasmussen", "Salazar", "Tanaka", "Ueda", "Vasquez", "Weiss", "Yilmaz", "Zimmer",    "Andersen", "Brandt", "Castellano", "Duarte", "Eriksen", "Ferrara", "Gruber", "Holm",    "Iqbal", "Jorgensen", "Kristiansen", "Lombardi", "Moreau", "Novak", "Ortega", "Pereira",    "Rinaldi", "Sokolov", "Thorsen", "Varga", "Winter", "Yoshida", "Zabala",];pub const ORGS: &[&str] = &[    "Larkspur Studio", "Meridian Freight", "Northwind Clinic", "Osprey Analytics",    "Pelican Press", "Quarry Lane School", "Riverstone Bakery", "Saltmarsh Labs",    "Tidewater Architects", "Umber & Co", "Vireo Energy", "Willowbank Library",    "Harbour Street Dental", "Cinder Theatre", "Bluebell Nursery", "Granite Peak Outfitters",];pub const CITIES: &[(&str, f64, f64, &str)] = &[    ("Lisbon", 38.7223, -9.1393, "Europe/Lisbon"),    ("Nairobi", -1.2921, 36.8219, "Africa/Nairobi"),    ("Montevideo", -34.9011, -56.1645, "America/Montevideo"),    ("Osaka", 34.6937, 135.5023, "Asia/Tokyo"),    ("Tallinn", 59.4370, 24.7536, "Europe/Tallinn"),    ("Vancouver", 49.2827, -123.1207, "America/Vancouver"),    ("Da Nang", 16.0544, 108.2022, "Asia/Ho_Chi_Minh"),    ("Porto", 41.1579, -8.6291, "Europe/Lisbon"),    ("Melbourne", -37.8136, 144.9631, "Australia/Melbourne"),    ("Ljubljana", 46.0569, 14.5058, "Europe/Ljubljana"),    ("Valparaíso", -33.0472, -71.6127, "America/Santiago"),    ("Accra", 5.6037, -0.1870, "Africa/Accra"),];pub const TODO_VERBS: &[&str] = &[    "Call", "Email", "Book", "Renew", "Return", "Fix", "Buy", "Plan", "Draft", "Review",    "Pick up", "Cancel", "Measure", "Order", "Back up", "Water", "Sort", "Post", "Read", "Pay",];pub const TODO_OBJECTS: &[&str] = &[    "the dentist", "the plumber", "the ferry tickets", "the passport", "the library books",    "the bike light", "printer paper", "the summer trip", "the grant letter", "the lease",    "the parcel", "the gym membership", "the kitchen window", "new strings for the guitar",    "the photo archive", "the balcony plants", "the receipts", "the birthday card",    "the climbing book", "the electricity bill", "the tax return", "the insurance renewal",    "the car service", "the school forms", "the camping stove", "the conference slides",];pub const NOTE_TITLES: &[&str] = &[    "Things to try this month", "Bread timings", "Bike maintenance", "Winter reading",    "Garden plan", "Interview notes", "Trip packing", "Camera settings", "Apartment ideas",    "Running log", "Sourdough starter", "Birthday ideas", "Film list", "Workshop sketch",    "Hallway paint", "Kit list for the pass", "Study notes", "Recipes to repeat",    "Questions for the vet", "Chess openings", "Houseplant watering", "Lens cleaning",];pub const SENTENCES: &[&str] = &[    "Woke early and walked to the pier before the wind picked up.",    "The bread came out dense again; try a longer proof next time.",    "Spent the afternoon fixing the back brake and reading on the balcony.",    "Long call about the roof; nothing decided yet.",    "Dinner at the market, then the late film.",    "Rain all day. Sorted the photo archive into years.",    "Ran the river loop in the dark, quicker than last week.",    "The seedlings are up; moved them to the bright window.",    "Wrote the first page of the proposal and deleted half of it.",    "Good talk with the neighbours about the shared wall.",    "Tried the new cafe by the station; the coffee is better than the pastries.",    "Finished the book on the train and started it again.",    "Measured the kitchen window twice; it still is not square.",    "Quiet day. Played chess badly and enjoyed it.",    "The ferry was late so we watched the cormorants.",    "Replaced the guitar strings and tuned down a step.",];pub const MESSAGE_LINES: &[&str] = &[    "running ten minutes late, order me the usual", "did you see the forecast for saturday?",    "ok", "sounds good", "can you send the address again", "on my way", "left the keys with the neighbour",    "the film starts at nine", "bring the big torch", "happy birthday!!", "call me when you land",    "we're at table six", "I'll bring the salad", "no rush", "thanks for yesterday",    "is the plumber coming tuesday or wednesday", "got the tickets", "see you at the pool",    "can we move it to thursday", "yes please", "home in twenty", "the parcel came",];pub const EMAIL_SUBJECTS: &[&str] = &[    "Your booking is confirmed", "Invoice for March", "Minutes from Tuesday", "Re: the roof",    "Welcome to the climbing club", "Your statement is ready", "Reading group — next book",    "Workshop dates", "Re: grant letter", "Order shipped", "Appointment reminder",    "Newsletter: autumn programme", "Re: the shared wall", "Photos from the weekend",    "Lease renewal", "Re: slides for Thursday", "Your receipt", "Team offsite",];pub const MERCHANTS: &[&str] = &[    "Riverstone Bakery", "Quay Street Grocer", "Harbour Pharmacy", "Linden Books",    "Fennel Walk Cafe", "City Transit", "Northwind Clinic", "Alder Row Hardware",    "Beacon Cinema", "Mill Reach Market", "Pennant Fuel", "Saltings Garden Centre",    "Osier Bike Works", "Ferry Line", "Cinder Theatre", "Granite Peak Outfitters",];pub const PROJECTS: &[(&str, &str, &str)] = &[    ("tidewater", "Tidewater", "A small weather station on the balcony and the site that reads it."),    ("workshop", "Workshop", "Turning the garage into a workshop, one wall at a time."),    ("pass", "The pass", "A four-day walk over the pass in September, with the kit list and the training."),    ("cookbook", "Family cookbook", "The recipes everyone asks for, written down once."),    ("archive", "Photo archive", "Scanning the boxes and naming the people in them."),    ("choir", "Choir", "Rehearsals, the spring concert, and the music library."),    ("allotment", "Allotment", "What went in, what came up, and what the slugs took."),    ("bikes", "Bikes", "Keeping three bikes on the road."),];pub const MEMORIES: &[&str] = &[    "Bread proofs overnight in the fridge, never on the counter, because the kitchen is too warm.",    "The ferry timetable changes on the first Monday of October.",    "Always photograph the receipt before it fades.",    "The back brake needs the long cable, not the standard one.",    "The choir rehearses Thursdays; the spring concert is the second Saturday of May.",    "Seedlings go out after the last frost, which here is late April.",    "The grant letter wants the budget as a table, not prose.",    "Keep the camera on aperture priority for the archive scans.",    "The neighbours prefer a message to a knock after nine.",    "The pass is closed until the snow line is above the second hut.",];pub const PROCEDURES: &[(&str, &str)] = &[    ("trigger: the balcony station stops reporting", "Check the power lead first, then the SD card, then reflash from the tidewater repo."),    ("trigger: a new box of photos arrives", "Scan at 600 dpi, name the folder by the year on the box, run archive-tools to pull the sidecars."),    ("trigger: a rehearsal is cancelled", "Message the section leads, update the calendar, and move the music to the next date."),    ("trigger: a bike comes back with a flat", "Check the rim tape before the tube; the rear wheel has eaten three tubes this way."),    ("trigger: the monthly statements arrive", "File each PDF under money, check the card total against the receipts, flag anything over fifty."),    ("trigger: someone asks for a recipe", "Point them at the cookbook site; if it is not there yet, write it down the same day."),    ("trigger: the first frost is forecast", "Bring the lemon tree in, cover the beds, drain the hose."),    ("trigger: a guest is coming to stay", "Make up the small room, clear the desk, leave the wifi card on the pillow."),];/// The household's own accounts — `(name, kind, institution, mask,/// currency)`. Every institution is invented; a mask is four digits nobody's/// card ends in more than anyone else's. Two currencies, so a walk sees money/// shown per currency side by side: the first account's (the home currency)/// and a second one (Savings, and the Travel card on the large seed). The/// codes are examples, not a default.pub const ACCOUNTS: &[(&str, &str, Option<&str>, Option<&str>, &str)] = &[    ("Everyday", "bank", Some("Harbour Mutual"), Some("XX4417"), "INR"),    ("Card", "credit_card", Some("Larkspur Card Co"), Some("XX0952"), "INR"),    ("Cash", "cash", None, None, "INR"),    ("Savings", "bank", Some("Quarry Lane Credit Union"), Some("XX7731"), "EUR"),    ("Travel card", "credit_card", Some("Meridian Bank"), Some("XX2208"), "EUR"),    ("Wallet", "wallet", Some("Pocketfold"), None, "INR"),    ("Joint", "bank", Some("Harbour Mutual"), Some("XX5160"), "INR"),    ("Petty cash", "cash", None, None, "INR"),];pub const EVENT_KINDS: &[&str] = &[    "Dinner", "Rehearsal", "Coffee", "Climbing", "Call", "Workshop", "Film", "Swim",    "Dentist", "Market run", "Bike ride", "Book club", "Ferry", "Lunch",];/// What makes one remembered sentence different from another with the same/// fact — who said it, or when it was checked.pub const MEMORY_TAILS: &[&str] = &[    "First heard from {name}.", "Checked again with {name}.", "{name} keeps reminding me.",    "Learnt the hard way.", "Still true this year.", "Worth telling {name}.",];// ── The shapes (`write/everyday.rs`): invented like everything above. ──/// What a group says to itself.pub const GROUP_LINES: &[&str] = &[    "Who is bringing the folding table?",    "I can do Saturday, not Sunday.",    "Has anyone heard from the hall about the booking?",    "Photos from last time are in the album.",    "Running ten minutes late, start without me.",    "That works for me.",    "Can we move it to the afternoon?",    "I have the keys, I will open up.",    "Put me down for two.",    "Thanks for sorting that out.",    "Does anyone have a ladder?",    "Minutes attached, shout if I got something wrong.",];