Auto Units, or "A tool to add unit coversions to your articles for you" | World Anvil

Remove these ads. Join the Worldbuilders Guild

Auto Units, or "A tool to add unit coversions to your articles for you"

New Feature Addition · Editor: plato · Created by Stripe_dog
closed
unit -math tool editor autolink units conversion maths measure measurement

What functionality is missing? What is unsatisfying with the current situation?

Some of us use inches, feet, and miles; others use centimeters, meters, and kilometers; and some folk take it upon themselves to create all new units of measurement for their world.   Trouble arises, however, when you get to writing your artcles for an audience and they're getting bogged down by having to look up how many meters are in 120 yards, or how many teaspoons are in a dandy (a dandy being a unit of measurement for baking ingredients I just made up).   You could solve this problem by adding one (or more) common alternative measurements in parenthesis following the main unit you use, à la Wikipedia style, but that just moves the bogging down from the reader to the writer as now you have to stop to do the conversions.   The Solution? Auto-Units!

How does this feature request address the current situation?

The Auto Unit tool would work in a similar manner to how the Autolinker tool digs through your article and finds the titles of existing articles and replaces them with proper article links. Rather than replacing, however, it instead seeks out measurements (by finding numbers followed by known unit indicators such as "feet", "ft", "ft.", or the very minimal and confusing to quote "'") and tacks on a conversion right after that unit in parenthesis.   For example, if an article contained the following: "The Grand Canyon is 277 miles long, up to 18 miles wide and attains a depth of 6,093 feet (1,857 meters)."   Clicking the Auto Unit tool would open an interface and display the first unit it found (in this case, "277 miles") and prompt you to add a unit or skip it. If you choose to add a unit, it would suggest convertable units (kilometers, for example). When you pick a unit, it would place a space immediately after the found term, followed by "(" and the coverted unit, then end with a closing ")".   In this example, after running the Auto Unit tool and converting each instance of mile to kilometer and the one isntance of feet to meters, it would read: "The Grand Canyon is 277 miles (446 km) long, up to 18 miles (29 km) wide and attains a depth of 6,093 feet (1,857 meters)."   In theory it would be possible to allow multiple units to added within the conversion section between the two parenthesis by having the Auto Unit tool add a comma and space after each conversion before the last.   Ideally, for the most complete and customizable implementation, there would need to some means for users to implement their own custom units—which should be done at the world level. Common existing units should be supported by default across all worlds (possibly customizable within a world, though I don't think that's strictly needed and see how it could cause more problems than it would solve).   A user-defined unit would need:
  • A name (i.e. foot)
  • A plural name (optional) (i.e. feet)
  • A short name (optional) (i.e. ft)
  • A symbol (optional) (i.e. ')
  • Type of unit (i.e. Distance, weight, volume, time, etc.)
  • A conversion to an established unit (i.e. 1 foot = 0.3048 meters) (This means that there always has to be at least one definitive, unmutable unit for each unit type. Meters for distance, for example.)
 

Points of Concern

I awknowledge that this idea seems very simple on paper but might prove quite difficult to actually implement. Primarily because, unlike the autolinker tool, which simply looks for words that match a list and swaps them out for a link, this tool would need to find a term from a list, and then figure out what numbers that term is attached to (the value to convert), do some math, then correctly append the result after the term without disrupting the rest of the article.   I don't know how difficult it would be to create a tool that can locate the number value before a unit. I also awknowledge that this problem could be exasperated by the fact that not everyone writes large numbers the same way: some folk seperate with commas (1,000,000), some use fullstops (1.000.000), some spaces (1 000 000), and some nothing at all (1000000). There are also some cases where a number unrelated to the unit might be nearby, and cases (like some currencies) where the unit comes before the value.   Essentially, in some circumstances, this tool could potentially cause more issues than it solves or outright fail to detect some values—but that's why the autolinker gives you the option to check everything it is going to do before implementing and gives you the option to abort. Those features would be essential for this tool.  

What are other uses for this feature request?

A less unit/math orientented implementation could prove useful as well, though I feel that would be less essential and is also already fairly well covered with Variables.

The Team's Response

Thanks for your suggestion and for everyone's comments! We think this would be a really useful feature, but unfortunately we have other, more pressing priorities at this moment. With the amount of support it received we can't accept it, but feel free to suggest it again at a later date.
Current score

22/300 Votes · +4304 points

Votes Cast

  • +300

    by Pete Nelson
    on 2023-09-11 20:23
    This would be pretty significantly hard to implement fully as described, but for some of the fields (e.g. height, weight, dimensions of characters or items), having a conversion method would be easier to implement and pretty darn useful.
  • +300

    by Bonus Action
    on 2023-09-11 18:08
  • +100

    by yuriel
    on 2023-09-10 13:11
  • +300

    by LoreParmenter
    on 2023-09-08 22:42
  • +100

    by moonflower-writing
    on 2023-09-08 17:35
    This would save me a lot of time, as I currently put tooltips with alternate unit conversions
  • +1

    by SebGreg732
    on 2023-09-07 22:06
  • +100

    by Kaleidechse
    on 2023-08-30 17:10
    This does sound useful. It will probably get complicated with custom units, though. I can imagine an option for advanced users, allowing them to specify regular expressions for search and conversion - but that might mostly be useful for the coding experts or require detailed documentation.
  • +300

    by A Uncontrollable Mimic
    on 2023-08-30 02:53
  • +300

    by Enoris.leinwand
    on 2023-08-29 21:15
  • +1

    by A Goodhearted Bananafolk
    on 2023-08-29 20:01
  • +300

    by ChalktheDM
    on 2023-08-29 13:30
  • +1

    by Self_Self
    on 2023-08-28 15:17
  • +100

    by Satrium
    on 2023-08-28 06:05
  • +300

    by A Lusty Kobold
    on 2023-08-28 03:33
  • +300

    by Elliott Moonbrook
    on 2023-08-26 01:20
  • +300

    by SyntaxChick
    on 2023-08-25 17:34
  • +300

    by Rilameth
    on 2023-08-25 17:27
    This would save me a lot of grief, as my worldbuilding uses both metric *and* imperial systems - plus will eventually be using custom systems as well. Not to mention currencies.
  • +300

    by Tijmuhn
    on 2023-08-25 13:18
    I am not a developer, but this does not even sound hard to do. Its essentially just a list on your account. If you have a custom unit for your world, you just put in all the values comparing to either Metric or Imperial and the site can calculate it to the other system, since these conversions are obviously known. If you use a known system (metric or imperial) its just a simple calculation, so US americans can understand metric articles and the other way around!   This would be really cool.
  • +1

    by Nimsy
    on 2023-08-25 08:57
  • +300

    by aldreaalien
    on 2023-08-25 08:39
  • +300

    by VioletLegacy
    on 2023-08-25 04:13
  • -300

    by A Adorable Kitten
    on 2023-08-24 22:24
  • +300

    by Stripe_dog
    on 2023-08-24 21:26