Add 40 light conversions

This commit is contained in:
Codex
2026-03-07 18:57:58 +00:00
parent f35ca56732
commit 48659e63c3
3 changed files with 125 additions and 45 deletions

View File

@@ -946,6 +946,46 @@ The registry currently contains 416 unique calculator slugs.
| Yards to Centimeters Convert yards into centimeters for sewing and textiles. | yards-to-centimeters | 91.44 | | Yards to Centimeters Convert yards into centimeters for sewing and textiles. | yards-to-centimeters | 91.44 |
| Yards to Feet Turn yards into feet for carpentry math. | yards-to-feet | 3 | | Yards to Feet Turn yards into feet for carpentry math. | yards-to-feet | 3 |
| Yards to Inches Convert yards into inches for finer measurements. | yards-to-inches | 36 | | Yards to Inches Convert yards into inches for finer measurements. | yards-to-inches | 36 |
| Angstroms to Light Years Convert atomic-scale lengths into cosmic light-year spans. | angstroms-to-light-years | 1.05700083402e-26 |
| Cables to Light Years Compare nautical cable graduations with interstellar distances. | cables-to-light-years | 1.95756554461e-14 |
| Centimeters Per Second to Speed Of Light Show a centimeter-per-second pace as a fraction of c. | centimeters-per-second-to-speed-of-light | 3.33564095198e-11 |
| Centimeters Per Second to Speed Of Light (c) Reference the same ratio explicitly with c. | centimeters-per-second-to-speed-of-light-c | 3.33564095198e-11 |
| Centimeters to Light Years Translate tiled centimeters into the light-year scale. | centimeters-to-light-years | 1.05700083402e-18 |
| Chains to Light Years Turn chain-length surveying units into cosmic distances. | chains-to-light-years | 2.12634743779e-15 |
| Cm Per Second to Speed Of Light Alias centimeters per second compared to c. | cm-per-second-to-speed-of-light | 3.33564095198e-11 |
| Cm Per Second to Speed Of Light (c) Same as above but referencing the speed-of-light constant. | cm-per-second-to-speed-of-light-c | 3.33564095198e-11 |
| Cubits to Light Years Place Egyptian cubit measures beside light-year spans. | cubits-to-light-years | 4.83260781316e-17 |
| Fathoms to Light Years Compare depths in fathoms to the length of a light year. | fathoms-to-light-years | 1.93304312526e-16 |
| Feet Per Second to Speed Of Light Convert running speeds into c fractions. | feet-per-second-to-speed-of-light | 1.01670336216e-9 |
| Feet Per Second to Speed Of Light (c) Same conversion explicitly referencing c. | feet-per-second-to-speed-of-light-c | 1.01670336216e-9 |
| Feet to Light Years Expand foot measures out to light-year scales. | feet-to-light-years | 3.22173854211e-17 |
| Fermi to Light Years Bridge subatomic fermis with light-year distances. | fermi-to-light-years | 1.05700083402e-31 |
| Furlongs Per Fortnight to Speed Of Light Express historic pacing as a fraction of c. | furlongs-per-fortnight-to-speed-of-light | 5.54748858324e-13 |
| Furlongs Per Fortnight to Speed Of Light (c) Alias referencing the constant c. | furlongs-per-fortnight-to-speed-of-light-c | 5.54748858324e-13 |
| Furlongs to Light Years Turn furlongs into astronomical distances. | furlongs-to-light-years | 2.12634743779e-14 |
| Hands to Light Years Stack horse-hand height units up against light years. | hands-to-light-years | 1.07391284737e-17 |
| Inches Per Second to Speed Of Light Express inch-per-second velocities vs c. | inches-per-second-to-speed-of-light | 8.47252801803e-11 |
| Inches Per Second to Speed Of Light (c) Same but referencing c explicitly. | inches-per-second-to-speed-of-light-c | 8.47252801803e-11 |
| Inches to Light Years Relate inches to light-year scales for minuscule measurements. | inches-to-light-years | 2.68478211842e-18 |
| Kilometers Per Hour to Speed Of Light Compare highway speeds to the speed of light. | kilometers-per-hour-to-speed-of-light | 9.26566931106e-10 |
| Kilometers Per Hour to Speed Of Light (c) Same ratio referencing c explicitly. | kilometers-per-hour-to-speed-of-light-c | 9.26566931106e-10 |
| Kilometers to Light Years Express kilometer distances in light years. | kilometers-to-light-years | 1.05700083402e-13 |
| Km/s to Speed Of Light (c) Turn kilometers per second into a fraction of c. | km-s-to-speed-of-light-c | 3.33564095198e-06 |
| Knots to Speed Of Light Map nautical knots into c fractions. | knots-to-speed-of-light | 1.7160004739e-9 |
| Knots to Speed Of Light (c) Alias referencing the constant c. | knots-to-speed-of-light-c | 1.7160004739e-9 |
| Leagues Per Hour to Speed Of Light Compare archaic travel speeds to c. | leagues-per-hour-to-speed-of-light | 4.47349479352e-9 |
| Leagues Per Hour to Speed Of Light (c) Same ratio referencing c explicitly. | leagues-per-hour-to-speed-of-light-c | 4.47349479352e-9 |
| Leagues to Light Years Turn leagues into interstellar spans. | leagues-to-light-years | 5.1032338507e-13 |
| Light Years to Angstroms Flip a light-year into atomic-scale angstroms. | light-years-to-angstroms | 9.46073047258e+25 |
| Light Years to Cables Express a light-year as a count of cables. | light-years-to-cables | 5.10838578433e+13 |
| Light Years to Centimeters Spread a light-year across centimeter units. | light-years-to-centimeters | 9.46073047258e+17 |
| Light Years to Chains Turn the cosmic mile into surveyor chains. | light-years-to-chains | 4.70290029855e+14 |
| Light Years to Cubits Translate a light-year into cubits. | light-years-to-cubits | 2.06927613136e+16 |
| Light Years to Fathoms Express a light-year in fathoms. | light-years-to-fathoms | 5.1731903284e+15 |
| Light Years to Feet Convert a light-year into feet. | light-years-to-feet | 3.10391419704e+16 |
| Light Years to Fermi Stretch a light-year into femtometer scales. | light-years-to-fermi | 9.46073047258e+30 |
| Light Years to Furlongs Translate cosmic distances into furlongs. | light-years-to-furlongs | 4.70290029855e+13 |
| Light Years to Hands Compare a light-year to a stack of hands. | light-years-to-hands | 9.31174259112e+16 |
## Completion Checklist ## Completion Checklist
- [x] Inches to Feet (`inches-to-feet`) - [x] Inches to Feet (`inches-to-feet`)
@@ -2527,7 +2567,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Angstroms to Inches - [ ] Angstroms to Inches
- [ ] Angstroms to Kilometers - [ ] Angstroms to Kilometers
- [ ] Angstroms to Leagues - [ ] Angstroms to Leagues
- [ ] Angstroms to Light Years - [x] Angstroms to Light Years
- [ ] Angstroms to Meters - [ ] Angstroms to Meters
- [ ] Angstroms to Microns - [ ] Angstroms to Microns
- [ ] Angstroms to Miles - [ ] Angstroms to Miles
@@ -2949,7 +2989,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Cables to Inches - [ ] Cables to Inches
- [ ] Cables to Kilometers - [ ] Cables to Kilometers
- [ ] Cables to Leagues - [ ] Cables to Leagues
- [ ] Cables to Light Years - [x] Cables to Light Years
- [ ] Cables to Micrometers - [ ] Cables to Micrometers
- [ ] Cables to Microns - [ ] Cables to Microns
- [ ] Cables to Miles - [ ] Cables to Miles
@@ -3095,8 +3135,8 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Centimeters Per Second to Mach - [ ] Centimeters Per Second to Mach
- [ ] Centimeters Per Second to Meters Per Second - [ ] Centimeters Per Second to Meters Per Second
- [ ] Centimeters Per Second to Miles Per Hour - [ ] Centimeters Per Second to Miles Per Hour
- [ ] Centimeters Per Second to Speed Of Light - [x] Centimeters Per Second to Speed Of Light
- [ ] Centimeters Per Second to Speed Of Light (c) - [x] Centimeters Per Second to Speed Of Light (c)
- [ ] Centimeters Per Second to Yards Per Second - [ ] Centimeters Per Second to Yards Per Second
- [ ] Centimeters to Angstroms - [ ] Centimeters to Angstroms
- [ ] Centimeters to Astronomical Units - [ ] Centimeters to Astronomical Units
@@ -3106,7 +3146,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Centimeters to Fermi - [ ] Centimeters to Fermi
- [ ] Centimeters to Furlongs - [ ] Centimeters to Furlongs
- [ ] Centimeters to Leagues - [ ] Centimeters to Leagues
- [ ] Centimeters to Light Years - [x] Centimeters to Light Years
- [ ] Centimeters to Micrometers - [ ] Centimeters to Micrometers
- [ ] Centimeters to Microns - [ ] Centimeters to Microns
- [ ] Centimeters to Miles - [ ] Centimeters to Miles
@@ -3158,7 +3198,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Chains to Inches - [ ] Chains to Inches
- [ ] Chains to Kilometers - [ ] Chains to Kilometers
- [ ] Chains to Leagues - [ ] Chains to Leagues
- [ ] Chains to Light Years - [x] Chains to Light Years
- [ ] Chains to Micrometers - [ ] Chains to Micrometers
- [ ] Chains to Microns - [ ] Chains to Microns
- [ ] Chains to Millimeters - [ ] Chains to Millimeters
@@ -3236,8 +3276,8 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Cm Per Second to Mach - [ ] Cm Per Second to Mach
- [ ] Cm Per Second to Meters Per Second - [ ] Cm Per Second to Meters Per Second
- [ ] Cm Per Second to Miles Per Hour - [ ] Cm Per Second to Miles Per Hour
- [ ] Cm Per Second to Speed Of Light - [x] Cm Per Second to Speed Of Light
- [ ] Cm Per Second to Speed Of Light (c) - [x] Cm Per Second to Speed Of Light (c)
- [ ] Cm Per Second to Yards Per Second - [ ] Cm Per Second to Yards Per Second
- [ ] Cmhg to Atmosphere - [ ] Cmhg to Atmosphere
- [ ] Cmhg to Bar - [ ] Cmhg to Bar
@@ -3456,7 +3496,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Cubits to Inches - [ ] Cubits to Inches
- [ ] Cubits to Kilometers - [ ] Cubits to Kilometers
- [ ] Cubits to Leagues - [ ] Cubits to Leagues
- [ ] Cubits to Light Years - [x] Cubits to Light Years
- [ ] Cubits to Meters - [ ] Cubits to Meters
- [ ] Cubits to Micrometers - [ ] Cubits to Micrometers
- [ ] Cubits to Microns - [ ] Cubits to Microns
@@ -3833,7 +3873,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Fathoms to Inches - [ ] Fathoms to Inches
- [ ] Fathoms to Kilometers - [ ] Fathoms to Kilometers
- [ ] Fathoms to Leagues - [ ] Fathoms to Leagues
- [ ] Fathoms to Light Years - [x] Fathoms to Light Years
- [ ] Fathoms to Micrometers - [ ] Fathoms to Micrometers
- [ ] Fathoms to Microns - [ ] Fathoms to Microns
- [ ] Fathoms to Miles - [ ] Fathoms to Miles
@@ -3896,8 +3936,8 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Feet Per Second to Knots - [ ] Feet Per Second to Knots
- [ ] Feet Per Second to Leagues Per Hour - [ ] Feet Per Second to Leagues Per Hour
- [ ] Feet Per Second to Mach - [ ] Feet Per Second to Mach
- [ ] Feet Per Second to Speed Of Light - [x] Feet Per Second to Speed Of Light
- [ ] Feet Per Second to Speed Of Light (c) - [x] Feet Per Second to Speed Of Light (c)
- [ ] Feet Per Second to Yards Per Second - [ ] Feet Per Second to Yards Per Second
- [ ] Feet to Angstroms - [ ] Feet to Angstroms
- [ ] Feet to Astronomical Units - [ ] Feet to Astronomical Units
@@ -3908,7 +3948,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Feet to Furlongs - [ ] Feet to Furlongs
- [ ] Feet to Hands - [ ] Feet to Hands
- [ ] Feet to Leagues - [ ] Feet to Leagues
- [ ] Feet to Light Years - [x] Feet to Light Years
- [ ] Feet to Micrometers - [ ] Feet to Micrometers
- [ ] Feet to Microns - [ ] Feet to Microns
- [ ] Feet to Nanometers - [ ] Feet to Nanometers
@@ -3968,7 +4008,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Fermi to Inches - [ ] Fermi to Inches
- [ ] Fermi to Kilometers - [ ] Fermi to Kilometers
- [ ] Fermi to Leagues - [ ] Fermi to Leagues
- [ ] Fermi to Light Years - [x] Fermi to Light Years
- [ ] Fermi to Micrometers - [ ] Fermi to Micrometers
- [ ] Fermi to Microns - [ ] Fermi to Microns
- [ ] Fermi to Miles - [ ] Fermi to Miles
@@ -4049,8 +4089,8 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Furlongs Per Fortnight to Mach - [ ] Furlongs Per Fortnight to Mach
- [ ] Furlongs Per Fortnight to Meters Per Second - [ ] Furlongs Per Fortnight to Meters Per Second
- [ ] Furlongs Per Fortnight to Miles Per Hour - [ ] Furlongs Per Fortnight to Miles Per Hour
- [ ] Furlongs Per Fortnight to Speed Of Light - [x] Furlongs Per Fortnight to Speed Of Light
- [ ] Furlongs Per Fortnight to Speed Of Light (c) - [x] Furlongs Per Fortnight to Speed Of Light (c)
- [ ] Furlongs Per Fortnight to Yards Per Second - [ ] Furlongs Per Fortnight to Yards Per Second
- [ ] Furlongs to Angstroms - [ ] Furlongs to Angstroms
- [ ] Furlongs to Astronomical Units - [ ] Furlongs to Astronomical Units
@@ -4065,7 +4105,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Furlongs to Inches - [ ] Furlongs to Inches
- [ ] Furlongs to Kilometers - [ ] Furlongs to Kilometers
- [ ] Furlongs to Leagues - [ ] Furlongs to Leagues
- [ ] Furlongs to Light Years - [x] Furlongs to Light Years
- [ ] Furlongs to Micrometers - [ ] Furlongs to Micrometers
- [ ] Furlongs to Microns - [ ] Furlongs to Microns
- [ ] Furlongs to Millimeters - [ ] Furlongs to Millimeters
@@ -4325,7 +4365,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Hands to Furlongs - [ ] Hands to Furlongs
- [ ] Hands to Kilometers - [ ] Hands to Kilometers
- [ ] Hands to Leagues - [ ] Hands to Leagues
- [ ] Hands to Light Years - [x] Hands to Light Years
- [ ] Hands to Meters - [ ] Hands to Meters
- [ ] Hands to Micrometers - [ ] Hands to Micrometers
- [ ] Hands to Microns - [ ] Hands to Microns
@@ -4663,8 +4703,8 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Inches Per Second to Mach - [ ] Inches Per Second to Mach
- [ ] Inches Per Second to Meters Per Second - [ ] Inches Per Second to Meters Per Second
- [ ] Inches Per Second to Miles Per Hour - [ ] Inches Per Second to Miles Per Hour
- [ ] Inches Per Second to Speed Of Light - [x] Inches Per Second to Speed Of Light
- [ ] Inches Per Second to Speed Of Light (c) - [x] Inches Per Second to Speed Of Light (c)
- [ ] Inches Per Second to Yards Per Second - [ ] Inches Per Second to Yards Per Second
- [ ] Inches to Angstroms - [ ] Inches to Angstroms
- [ ] Inches to Astronomical Units - [ ] Inches to Astronomical Units
@@ -4677,7 +4717,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Inches to Hands - [ ] Inches to Hands
- [ ] Inches to Kilometers - [ ] Inches to Kilometers
- [ ] Inches to Leagues - [ ] Inches to Leagues
- [ ] Inches to Light Years - [x] Inches to Light Years
- [ ] Inches to Micrometers - [ ] Inches to Micrometers
- [ ] Inches to Microns - [ ] Inches to Microns
- [ ] Inches to Miles - [ ] Inches to Miles
@@ -4875,8 +4915,8 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Kilometers Per Hour to Inches Per Second - [ ] Kilometers Per Hour to Inches Per Second
- [ ] Kilometers Per Hour to km/s - [ ] Kilometers Per Hour to km/s
- [ ] Kilometers Per Hour to Leagues Per Hour - [ ] Kilometers Per Hour to Leagues Per Hour
- [ ] Kilometers Per Hour to Speed Of Light - [x] Kilometers Per Hour to Speed Of Light
- [ ] Kilometers Per Hour to Speed Of Light (c) - [x] Kilometers Per Hour to Speed Of Light (c)
- [ ] Kilometers Per Liter to Km Per Kwh - [ ] Kilometers Per Liter to Km Per Kwh
- [ ] Kilometers Per Liter to Miles Per Kwh - [ ] Kilometers Per Liter to Miles Per Kwh
- [ ] Kilometers Per Liter to Uk Mpg - [ ] Kilometers Per Liter to Uk Mpg
@@ -4893,7 +4933,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Kilometers to Furlongs - [ ] Kilometers to Furlongs
- [ ] Kilometers to Hands - [ ] Kilometers to Hands
- [ ] Kilometers to Inches - [ ] Kilometers to Inches
- [ ] Kilometers to Light Years - [x] Kilometers to Light Years
- [ ] Kilometers to Micrometers - [ ] Kilometers to Micrometers
- [ ] Kilometers to Microns - [ ] Kilometers to Microns
- [ ] Kilometers to Millimeters - [ ] Kilometers to Millimeters
@@ -4982,7 +5022,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] km/s to Mach - [ ] km/s to Mach
- [ ] km/s to Meters Per Second - [ ] km/s to Meters Per Second
- [ ] km/s to Miles Per Hour - [ ] km/s to Miles Per Hour
- [ ] km/s to Speed Of Light (c) - [x] km/s to Speed Of Light (c)
- [ ] km/s to Yards Per Second - [ ] km/s to Yards Per Second
- [ ] Knots to Centimeters Per Second - [ ] Knots to Centimeters Per Second
- [ ] Knots to Cm Per Second - [ ] Knots to Cm Per Second
@@ -4991,8 +5031,8 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Knots to km/s - [ ] Knots to km/s
- [ ] Knots to Leagues Per Hour - [ ] Knots to Leagues Per Hour
- [ ] Knots to Mach - [ ] Knots to Mach
- [ ] Knots to Speed Of Light - [x] Knots to Speed Of Light
- [ ] Knots to Speed Of Light (c) - [x] Knots to Speed Of Light (c)
- [ ] Knots to Yards Per Second - [ ] Knots to Yards Per Second
- [ ] Kpa to Barye - [ ] Kpa to Barye
- [ ] Kpa to Cmhg - [ ] Kpa to Cmhg
@@ -5045,8 +5085,8 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Leagues Per Hour to Mach - [ ] Leagues Per Hour to Mach
- [ ] Leagues Per Hour to Meters Per Second - [ ] Leagues Per Hour to Meters Per Second
- [ ] Leagues Per Hour to Miles Per Hour - [ ] Leagues Per Hour to Miles Per Hour
- [ ] Leagues Per Hour to Speed Of Light - [x] Leagues Per Hour to Speed Of Light
- [ ] Leagues Per Hour to Speed Of Light (c) - [x] Leagues Per Hour to Speed Of Light (c)
- [ ] Leagues Per Hour to Yards Per Second - [ ] Leagues Per Hour to Yards Per Second
- [ ] Leagues to Angstroms - [ ] Leagues to Angstroms
- [ ] Leagues to Astronomical Units - [ ] Leagues to Astronomical Units
@@ -5060,7 +5100,7 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Leagues to Furlongs - [ ] Leagues to Furlongs
- [ ] Leagues to Hands - [ ] Leagues to Hands
- [ ] Leagues to Inches - [ ] Leagues to Inches
- [ ] Leagues to Light Years - [x] Leagues to Light Years
- [ ] Leagues to Meters - [ ] Leagues to Meters
- [ ] Leagues to Micrometers - [ ] Leagues to Micrometers
- [ ] Leagues to Microns - [ ] Leagues to Microns
@@ -5075,16 +5115,16 @@ The registry currently contains 416 unique calculator slugs.
- [ ] Leagues to Thou - [ ] Leagues to Thou
- [ ] Leagues to Thou (mil) - [ ] Leagues to Thou (mil)
- [ ] Leagues to Yards - [ ] Leagues to Yards
- [ ] Light Years to Angstroms - [x] Light Years to Angstroms
- [ ] Light Years to Cables - [x] Light Years to Cables
- [ ] Light Years to Centimeters - [x] Light Years to Centimeters
- [ ] Light Years to Chains - [x] Light Years to Chains
- [ ] Light Years to Cubits - [x] Light Years to Cubits
- [ ] Light Years to Fathoms - [x] Light Years to Fathoms
- [ ] Light Years to Feet - [x] Light Years to Feet
- [ ] Light Years to Fermi - [x] Light Years to Fermi
- [ ] Light Years to Furlongs - [x] Light Years to Furlongs
- [ ] Light Years to Hands - [x] Light Years to Hands
- [ ] Light Years to Inches - [ ] Light Years to Inches
- [ ] Light Years to Leagues - [ ] Light Years to Leagues
- [ ] Light Years to Meters - [ ] Light Years to Meters

View File

@@ -51,7 +51,7 @@ export const calculators: CalculatorDef[] = [
{"slug": "angstroms-to-nanometers", "name": "Angstroms to Nanometers", "category": "length", "type": "standard", "teaser": "A materials scientist changes 25 angstroms into nanometers to describe a film thickness.", "labels": {"in1": "Angstroms", "in2": "Nanometers"}, "factor": 0.1, "hidden": true}, {"slug": "angstroms-to-nanometers", "name": "Angstroms to Nanometers", "category": "length", "type": "standard", "teaser": "A materials scientist changes 25 angstroms into nanometers to describe a film thickness.", "labels": {"in1": "Angstroms", "in2": "Nanometers"}, "factor": 0.1, "hidden": true},
{"slug": "apothecary-ounces-to-grams", "name": "Apothecary Ounces to Grams", "category": "weight", "type": "standard", "teaser": "Preparing a tincture, how many grams are packed in 8 apothecary ounces?", "labels": {"in1": "Apothecary Ounces", "in2": "Grams"}, "factor": 31.1034768}, {"slug": "apothecary-ounces-to-grams", "name": "Apothecary Ounces to Grams", "category": "weight", "type": "standard", "teaser": "Preparing a tincture, how many grams are packed in 8 apothecary ounces?", "labels": {"in1": "Apothecary Ounces", "in2": "Grams"}, "factor": 31.1034768},
{"slug": "atomic-mass-units-to-kilograms", "name": "Atomic Mass Units to Kilograms", "category": "weight", "type": "standard", "teaser": "Express an amu in kilograms while working with nuclear scales.", "labels": {"in1": "Atomic Mass Units", "in2": "Kilograms"}, "factor": 1.6605390666e-27}, {"slug": "atomic-mass-units-to-kilograms", "name": "Atomic Mass Units to Kilograms", "category": "weight", "type": "standard", "teaser": "Express an amu in kilograms while working with nuclear scales.", "labels": {"in1": "Atomic Mass Units", "in2": "Kilograms"}, "factor": 1.6605390666e-27},
{"slug": "astronomical-units-to-light-years", "name": "Astronomical Units to Light Years", "category": "time", "type": "standard", "teaser": "The astronomer asks how many light years correspond to 5 astronomical units.", "labels": {"in1": "Astronomical Units", "in2": "Light Years"}, "factor": 1.58125074e-05, "hidden": true}, {"slug": "astronomical-units-to-light-years", "name": "Astronomical Units to Light Years", "category": "light", "type": "standard", "teaser": "The astronomer asks how many light years correspond to 5 astronomical units.", "labels": {"in1": "Astronomical Units", "in2": "Light Years"}, "factor": 1.58125074e-05, "hidden": true},
{"slug": "astronomical-units-to-kilometers", "name": "Astronomical Units to Kilometers", "category": "length", "type": "standard", "teaser": "How many kilometers span one astronomical unit (approx Earth-Sun distance)?", "labels": {"in1": "Astronomical Units", "in2": "Kilometers"}, "factor": 149597870.7}, {"slug": "astronomical-units-to-kilometers", "name": "Astronomical Units to Kilometers", "category": "length", "type": "standard", "teaser": "How many kilometers span one astronomical unit (approx Earth-Sun distance)?", "labels": {"in1": "Astronomical Units", "in2": "Kilometers"}, "factor": 149597870.7},
{"slug": "astronomical-units-to-miles", "name": "Astronomical Units to Miles", "category": "length", "type": "standard", "teaser": "See the same astronomical distance measured in miles.", "labels": {"in1": "Astronomical Units", "in2": "Miles"}, "factor": 92955807.3}, {"slug": "astronomical-units-to-miles", "name": "Astronomical Units to Miles", "category": "length", "type": "standard", "teaser": "See the same astronomical distance measured in miles.", "labels": {"in1": "Astronomical Units", "in2": "Miles"}, "factor": 92955807.3},
{"slug": "atmosphere-to-mmhg", "name": "Atmosphere to mmHg", "category": "pressure", "type": "standard", "teaser": "In the lab, what is 2 atmospheres of pressure in millimeters of mercury?", "labels": {"in1": "Atmosphere", "in2": "mmHg"}, "factor": 760.0}, {"slug": "atmosphere-to-mmhg", "name": "Atmosphere to mmHg", "category": "pressure", "type": "standard", "teaser": "In the lab, what is 2 atmospheres of pressure in millimeters of mercury?", "labels": {"in1": "Atmosphere", "in2": "mmHg"}, "factor": 760.0},
@@ -326,12 +326,12 @@ export const calculators: CalculatorDef[] = [
{"slug": "kilowatts-to-tons-of-refrigeration", "name": "Kilowatts to Tons of refrigeration", "category": "weight", "type": "standard", "labels": {"in1": "Kilowatts", "in2": "Tons of refrigeration"}, "factor": 0.284345136, "hidden": true}, {"slug": "kilowatts-to-tons-of-refrigeration", "name": "Kilowatts to Tons of refrigeration", "category": "weight", "type": "standard", "labels": {"in1": "Kilowatts", "in2": "Tons of refrigeration"}, "factor": 0.284345136, "hidden": true},
{"slug": "kilowatt-hours-to-megajoules", "name": "Kilowatt-hours to Megajoules", "category": "energy", "type": "standard", "labels": {"in1": "Kilowatt-hours", "in2": "Megajoules"}, "factor": 3.6}, {"slug": "kilowatt-hours-to-megajoules", "name": "Kilowatt-hours to Megajoules", "category": "energy", "type": "standard", "labels": {"in1": "Kilowatt-hours", "in2": "Megajoules"}, "factor": 3.6},
{"slug": "knots-to-miles-per-hour", "name": "Knots to Miles per hour", "category": "length", "type": "standard", "labels": {"in1": "Knots", "in2": "Miles per hour"}, "factor": 1.15077945}, {"slug": "knots-to-miles-per-hour", "name": "Knots to Miles per hour", "category": "length", "type": "standard", "labels": {"in1": "Knots", "in2": "Miles per hour"}, "factor": 1.15077945},
{"slug": "light-years-to-astronomical-units", "name": "Light years to Astronomical units", "category": "time", "type": "standard", "labels": {"in1": "Light years", "in2": "Astronomical units"}, "factor": 63241.077}, {"slug": "light-years-to-astronomical-units", "name": "Light years to Astronomical units", "category": "light", "type": "standard", "labels": {"in1": "Light years", "in2": "Astronomical units"}, "factor": 63241.077},
{"slug": "light-years-to-parsecs", "name": "Light years to Parsecs", "category": "time", "type": "standard", "labels": {"in1": "Light years", "in2": "Parsecs"}, "factor": 0.306601394, "hidden": true}, {"slug": "light-years-to-parsecs", "name": "Light years to Parsecs", "category": "light", "type": "standard", "labels": {"in1": "Light years", "in2": "Parsecs"}, "factor": 0.306601394, "hidden": true},
{"slug": "liters-per-second-to-gallons-per-minute", "name": "Liters per second to Gallons per minute", "category": "volume", "type": "standard", "labels": {"in1": "Liters per second", "in2": "Gallons per minute"}, "factor": 15.8503231}, {"slug": "liters-per-second-to-gallons-per-minute", "name": "Liters per second to Gallons per minute", "category": "volume", "type": "standard", "labels": {"in1": "Liters per second", "in2": "Gallons per minute"}, "factor": 15.8503231},
{"slug": "parsecs-to-astronomical-units", "name": "Parsecs to Astronomical Units", "category": "other", "type": "standard", "teaser": "Translate parsec distances into astronomical units.", "labels": {"in1": "Parsecs", "in2": "Astronomical Units"}, "factor": 206265.0}, {"slug": "parsecs-to-astronomical-units", "name": "Parsecs to Astronomical Units", "category": "other", "type": "standard", "teaser": "Translate parsec distances into astronomical units.", "labels": {"in1": "Parsecs", "in2": "Astronomical Units"}, "factor": 206265.0},
{"slug": "parsecs-to-kilometers", "name": "Parsecs to Kilometers", "category": "length", "type": "standard", "teaser": "Turn parsecs into kilometers for cosmic scales.", "labels": {"in1": "Parsecs", "in2": "Kilometers"}, "factor": 30856775814913.7}, {"slug": "parsecs-to-kilometers", "name": "Parsecs to Kilometers", "category": "length", "type": "standard", "teaser": "Turn parsecs into kilometers for cosmic scales.", "labels": {"in1": "Parsecs", "in2": "Kilometers"}, "factor": 30856775814913.7},
{"slug": "parsecs-to-light-years", "name": "Parsecs to Light Years", "category": "time", "type": "standard", "teaser": "Express parsecs as light years.", "labels": {"in1": "Parsecs", "in2": "Light Years"}, "factor": 3.261563777}, {"slug": "parsecs-to-light-years", "name": "Parsecs to Light Years", "category": "light", "type": "standard", "teaser": "Express parsecs as light years.", "labels": {"in1": "Parsecs", "in2": "Light Years"}, "factor": 3.261563777},
{"slug": "parsecs-to-miles", "name": "Parsecs to Miles", "category": "length", "type": "standard", "teaser": "Express parsecs in statute miles.", "labels": {"in1": "Parsecs", "in2": "Miles"}, "factor": 19181367000000.0}, {"slug": "parsecs-to-miles", "name": "Parsecs to Miles", "category": "length", "type": "standard", "teaser": "Express parsecs in statute miles.", "labels": {"in1": "Parsecs", "in2": "Miles"}, "factor": 19181367000000.0},
{"slug": "liters-to-gallons", "name": "Liters to Gallons", "category": "volume", "type": "standard", "labels": {"in1": "Liters", "in2": "Gallons"}, "factor": 0.264172052, "hidden": true}, {"slug": "liters-to-gallons", "name": "Liters to Gallons", "category": "volume", "type": "standard", "labels": {"in1": "Liters", "in2": "Gallons"}, "factor": 0.264172052, "hidden": true},
{"slug": "liters-to-pints", "name": "Liters to Pints", "category": "volume", "type": "standard", "labels": {"in1": "Liters", "in2": "Pints"}, "factor": 2.11337642}, {"slug": "liters-to-pints", "name": "Liters to Pints", "category": "volume", "type": "standard", "labels": {"in1": "Liters", "in2": "Pints"}, "factor": 2.11337642},
@@ -977,6 +977,46 @@ export const calculators: CalculatorDef[] = [
{"slug": "yards-to-centimeters", "name": "Yards to Centimeters", "category": "length", "type": "standard", "teaser": "Convert yards into centimeters for sewing and textiles.", "labels": {"in1": "Yards", "in2": "Centimeters"}, "factor": 91.44}, {"slug": "yards-to-centimeters", "name": "Yards to Centimeters", "category": "length", "type": "standard", "teaser": "Convert yards into centimeters for sewing and textiles.", "labels": {"in1": "Yards", "in2": "Centimeters"}, "factor": 91.44},
{"slug": "yards-to-feet", "name": "Yards to Feet", "category": "length", "type": "standard", "teaser": "Turn yards into feet for carpentry math.", "labels": {"in1": "Yards", "in2": "Feet"}, "factor": 3.0}, {"slug": "yards-to-feet", "name": "Yards to Feet", "category": "length", "type": "standard", "teaser": "Turn yards into feet for carpentry math.", "labels": {"in1": "Yards", "in2": "Feet"}, "factor": 3.0},
{"slug": "yards-to-inches", "name": "Yards to Inches", "category": "length", "type": "standard", "teaser": "Convert yards into inches for finer measurements.", "labels": {"in1": "Yards", "in2": "Inches"}, "factor": 36.0}, {"slug": "yards-to-inches", "name": "Yards to Inches", "category": "length", "type": "standard", "teaser": "Convert yards into inches for finer measurements.", "labels": {"in1": "Yards", "in2": "Inches"}, "factor": 36.0},
{"slug": "angstroms-to-light-years", "name": "Angstroms to Light Years", "category": "light", "type": "standard", "teaser": "Convert atomic-scale lengths into cosmic light-year spans.", "labels": {"in1": "Angstroms", "in2": "Light Years"}, "factor": 1.05700083402e-26, "hidden": true},
{"slug": "cables-to-light-years", "name": "Cables to Light Years", "category": "length", "type": "standard", "teaser": "Compare nautical cable graduations with interstellar distances.", "labels": {"in1": "Cables", "in2": "Light Years"}, "factor": 1.95756554461e-14, "hidden": true},
{"slug": "centimeters-per-second-to-speed-of-light", "name": "Centimeters Per Second to Speed Of Light", "category": "length", "type": "standard", "teaser": "Show a centimeter-per-second pace as a fraction of c.", "labels": {"in1": "Centimeters Per Second", "in2": "Speed Of Light"}, "factor": 3.33564095198e-11},
{"slug": "centimeters-per-second-to-speed-of-light-c", "name": "Centimeters Per Second to Speed Of Light (c)", "category": "length", "type": "standard", "teaser": "Reference the same ratio explicitly with c.", "labels": {"in1": "Centimeters Per Second", "in2": "Speed Of Light (c)"}, "factor": 3.33564095198e-11},
{"slug": "centimeters-to-light-years", "name": "Centimeters to Light Years", "category": "length", "type": "standard", "teaser": "Translate tiled centimeters into the light-year scale.", "labels": {"in1": "Centimeters", "in2": "Light Years"}, "factor": 1.05700083402e-18, "hidden": true},
{"slug": "chains-to-light-years", "name": "Chains to Light Years", "category": "length", "type": "standard", "teaser": "Turn chain-length surveying units into cosmic distances.", "labels": {"in1": "Chains", "in2": "Light Years"}, "factor": 2.12634743779e-15, "hidden": true},
{"slug": "cm-per-second-to-speed-of-light", "name": "Cm Per Second to Speed Of Light", "category": "speed", "type": "standard", "teaser": "Alias centimeters per second compared to c.", "labels": {"in1": "Cm Per Second", "in2": "Speed Of Light"}, "factor": 3.33564095198e-11},
{"slug": "cm-per-second-to-speed-of-light-c", "name": "Cm Per Second to Speed Of Light (c)", "category": "speed", "type": "standard", "teaser": "Same as above but referencing the speed-of-light constant.", "labels": {"in1": "Cm Per Second", "in2": "Speed Of Light (c)"}, "factor": 3.33564095198e-11},
{"slug": "cubits-to-light-years", "name": "Cubits to Light Years", "category": "data", "type": "standard", "teaser": "Place Egyptian cubit measures beside light-year spans.", "labels": {"in1": "Cubits", "in2": "Light Years"}, "factor": 4.83260781316e-17, "hidden": true},
{"slug": "fathoms-to-light-years", "name": "Fathoms to Light Years", "category": "length", "type": "standard", "teaser": "Compare depths in fathoms to the length of a light year.", "labels": {"in1": "Fathoms", "in2": "Light Years"}, "factor": 1.93304312526e-16, "hidden": true},
{"slug": "feet-per-second-to-speed-of-light", "name": "Feet Per Second to Speed Of Light", "category": "length", "type": "standard", "teaser": "Convert running speeds into c fractions.", "labels": {"in1": "Feet Per Second", "in2": "Speed Of Light"}, "factor": 1.01670336216e-09},
{"slug": "feet-per-second-to-speed-of-light-c", "name": "Feet Per Second to Speed Of Light (c)", "category": "length", "type": "standard", "teaser": "Same conversion explicitly referencing c.", "labels": {"in1": "Feet Per Second", "in2": "Speed Of Light (c)"}, "factor": 1.01670336216e-09},
{"slug": "feet-to-light-years", "name": "Feet to Light Years", "category": "length", "type": "standard", "teaser": "Expand foot measures out to light-year scales.", "labels": {"in1": "Feet", "in2": "Light Years"}, "factor": 3.22173854211e-17, "hidden": true},
{"slug": "fermi-to-light-years", "name": "Fermi to Light Years", "category": "light", "type": "standard", "teaser": "Bridge subatomic fermis with light-year distances.", "labels": {"in1": "Fermi", "in2": "Light Years"}, "factor": 1.05700083402e-31, "hidden": true},
{"slug": "furlongs-per-fortnight-to-speed-of-light", "name": "Furlongs Per Fortnight to Speed Of Light", "category": "speed", "type": "standard", "teaser": "Express historic pacing as a fraction of c.", "labels": {"in1": "Furlongs Per Fortnight", "in2": "Speed Of Light"}, "factor": 5.54748858324e-13},
{"slug": "furlongs-per-fortnight-to-speed-of-light-c", "name": "Furlongs Per Fortnight to Speed Of Light (c)", "category": "speed", "type": "standard", "teaser": "Alias referencing the constant c.", "labels": {"in1": "Furlongs Per Fortnight", "in2": "Speed Of Light (c)"}, "factor": 5.54748858324e-13},
{"slug": "furlongs-to-light-years", "name": "Furlongs to Light Years", "category": "light", "type": "standard", "teaser": "Turn furlongs into astronomical distances.", "labels": {"in1": "Furlongs", "in2": "Light Years"}, "factor": 2.12634743779e-14, "hidden": true},
{"slug": "hands-to-light-years", "name": "Hands to Light Years", "category": "light", "type": "standard", "teaser": "Stack horse-hand height units up against light years.", "labels": {"in1": "Hands", "in2": "Light Years"}, "factor": 1.07391284737e-17, "hidden": true},
{"slug": "inches-per-second-to-speed-of-light", "name": "Inches Per Second to Speed Of Light", "category": "length", "type": "standard", "teaser": "Express inch-per-second velocities vs c.", "labels": {"in1": "Inches Per Second", "in2": "Speed Of Light"}, "factor": 8.47252801803e-11},
{"slug": "inches-per-second-to-speed-of-light-c", "name": "Inches Per Second to Speed Of Light (c)", "category": "length", "type": "standard", "teaser": "Same but referencing c explicitly.", "labels": {"in1": "Inches Per Second", "in2": "Speed Of Light (c)"}, "factor": 8.47252801803e-11},
{"slug": "inches-to-light-years", "name": "Inches to Light Years", "category": "length", "type": "standard", "teaser": "Relate inches to light-year scales for minuscule measurements.", "labels": {"in1": "Inches", "in2": "Light Years"}, "factor": 2.68478211842e-18},
{"slug": "kilometers-per-hour-to-speed-of-light", "name": "Kilometers Per Hour to Speed Of Light", "category": "length", "type": "standard", "teaser": "Compare highway speeds to the speed of light.", "labels": {"in1": "Kilometers Per Hour", "in2": "Speed Of Light"}, "factor": 9.26566931106e-10},
{"slug": "kilometers-per-hour-to-speed-of-light-c", "name": "Kilometers Per Hour to Speed Of Light (c)", "category": "length", "type": "standard", "teaser": "Same ratio referencing c explicitly.", "labels": {"in1": "Kilometers Per Hour", "in2": "Speed Of Light (c)"}, "factor": 9.26566931106e-10},
{"slug": "kilometers-to-light-years", "name": "Kilometers to Light Years", "category": "length", "type": "standard", "teaser": "Express kilometer distances in light years.", "labels": {"in1": "Kilometers", "in2": "Light Years"}, "factor": 1.05700083402e-13, "hidden": true},
{"slug": "km-s-to-speed-of-light-c", "name": "Km/s to Speed Of Light (c)", "category": "light", "type": "standard", "teaser": "Turn kilometers per second into a fraction of c.", "labels": {"in1": "Km/s", "in2": "Speed Of Light (c)"}, "factor": 3.33564095198e-06},
{"slug": "knots-to-speed-of-light", "name": "Knots to Speed Of Light", "category": "speed", "type": "standard", "teaser": "Map nautical knots into c fractions.", "labels": {"in1": "Knots", "in2": "Speed Of Light"}, "factor": 1.7160004739e-09},
{"slug": "knots-to-speed-of-light-c", "name": "Knots to Speed Of Light (c)", "category": "speed", "type": "standard", "teaser": "Alias referencing the constant c.", "labels": {"in1": "Knots", "in2": "Speed Of Light (c)"}, "factor": 1.7160004739e-09},
{"slug": "leagues-per-hour-to-speed-of-light", "name": "Leagues Per Hour to Speed Of Light", "category": "length", "type": "standard", "teaser": "Compare archaic travel speeds to c.", "labels": {"in1": "Leagues Per Hour", "in2": "Speed Of Light"}, "factor": 4.47349479352e-09},
{"slug": "leagues-per-hour-to-speed-of-light-c", "name": "Leagues Per Hour to Speed Of Light (c)", "category": "length", "type": "standard", "teaser": "Same ratio referencing c explicitly.", "labels": {"in1": "Leagues Per Hour", "in2": "Speed Of Light (c)"}, "factor": 4.47349479352e-09},
{"slug": "leagues-to-light-years", "name": "Leagues to Light Years", "category": "length", "type": "standard", "teaser": "Turn leagues into interstellar spans.", "labels": {"in1": "Leagues", "in2": "Light Years"}, "factor": 5.1032338507e-13},
{"slug": "light-years-to-angstroms", "name": "Light Years to Angstroms", "category": "light", "type": "standard", "teaser": "Flip a light-year into atomic-scale angstroms.", "labels": {"in1": "Light Years", "in2": "Angstroms"}, "factor": 9.46073047258e+25},
{"slug": "light-years-to-cables", "name": "Light Years to Cables", "category": "length", "type": "standard", "teaser": "Express a light-year as a count of cables.", "labels": {"in1": "Light Years", "in2": "Cables"}, "factor": 51083857843300.0},
{"slug": "light-years-to-centimeters", "name": "Light Years to Centimeters", "category": "length", "type": "standard", "teaser": "Spread a light-year across centimeter units.", "labels": {"in1": "Light Years", "in2": "Centimeters"}, "factor": 9.46073047258e+17},
{"slug": "light-years-to-chains", "name": "Light Years to Chains", "category": "length", "type": "standard", "teaser": "Turn the cosmic mile into surveyor chains.", "labels": {"in1": "Light Years", "in2": "Chains"}, "factor": 470290029855000.0},
{"slug": "light-years-to-cubits", "name": "Light Years to Cubits", "category": "data", "type": "standard", "teaser": "Translate a light-year into cubits.", "labels": {"in1": "Light Years", "in2": "Cubits"}, "factor": 2.06927613136e+16},
{"slug": "light-years-to-fathoms", "name": "Light Years to Fathoms", "category": "length", "type": "standard", "teaser": "Express a light-year in fathoms.", "labels": {"in1": "Light Years", "in2": "Fathoms"}, "factor": 5173190328400000.0},
{"slug": "light-years-to-feet", "name": "Light Years to Feet", "category": "length", "type": "standard", "teaser": "Convert a light-year into feet.", "labels": {"in1": "Light Years", "in2": "Feet"}, "factor": 3.10391419704e+16},
{"slug": "light-years-to-fermi", "name": "Light Years to Fermi", "category": "light", "type": "standard", "teaser": "Stretch a light-year into femtometer scales.", "labels": {"in1": "Light Years", "in2": "Fermi"}, "factor": 9.46073047258e+30},
{"slug": "light-years-to-furlongs", "name": "Light Years to Furlongs", "category": "light", "type": "standard", "teaser": "Translate cosmic distances into furlongs.", "labels": {"in1": "Light Years", "in2": "Furlongs"}, "factor": 47029002985500.0},
{"slug": "light-years-to-hands", "name": "Light Years to Hands", "category": "light", "type": "standard", "teaser": "Compare a light-year to a stack of hands.", "labels": {"in1": "Light Years", "in2": "Hands"}, "factor": 9.31174259112e+16},
]; ];

View File

@@ -66,12 +66,12 @@ def guess_category(name):
if any(x in name_l for x in ['joule', 'calorie', 'btu', 'erg', 'therm', 'electron-volt']): return 'energy' if any(x in name_l for x in ['joule', 'calorie', 'btu', 'erg', 'therm', 'electron-volt']): return 'energy'
if any(x in name_l for x in ['watt', 'horsepower']): return 'power' if any(x in name_l for x in ['watt', 'horsepower']): return 'power'
if any(x in name_l for x in ['byte', 'bit', 'nibble', 'baud']): return 'data' if any(x in name_l for x in ['byte', 'bit', 'nibble', 'baud']): return 'data'
if 'light' in name_l or any(x in name_l for x in ['lumen', 'lux', 'candela']): return 'light'
if any(x in name_l for x in ['second', 'minute', 'hour', 'day', 'week', 'month', 'year']): return 'time' if any(x in name_l for x in ['second', 'minute', 'hour', 'day', 'week', 'month', 'year']): return 'time'
if any(x in name_l for x in ['degree', 'radian', 'mil ', 'arc', 'gradian', 'quadrant']): return 'angle' if any(x in name_l for x in ['degree', 'radian', 'mil ', 'arc', 'gradian', 'quadrant']): return 'angle'
if any(x in name_l for x in ['binary', 'hex', 'octal', 'decimal', 'ascii', 'fraction']): return 'number-systems' if any(x in name_l for x in ['binary', 'hex', 'octal', 'decimal', 'ascii', 'fraction']): return 'number-systems'
if any(x in name_l for x in ['becquerel', 'curie', 'gray', 'rad', 'sievert', 'rem', 'roentgen', 'rutherford']): return 'radiation' if any(x in name_l for x in ['becquerel', 'curie', 'gray', 'rad', 'sievert', 'rem', 'roentgen', 'rutherford']): return 'radiation'
if any(x in name_l for x in ['volt', 'amp', 'ohm', 'siemens', 'farad', 'henry', 'coulomb']): return 'electrical' if any(x in name_l for x in ['volt', 'amp', 'ohm', 'siemens', 'farad', 'henry', 'coulomb']): return 'electrical'
if any(x in name_l for x in ['lumen', 'lux', 'candela']): return 'light'
return 'other' return 'other'
def process(): def process():