spatchcock/quantify — Issue #1: Prefixes too narrowly constrained
Author: spatchcock
Created: 2011-12-01 22:33:49+00:00
State: open

Presently, prefixes are constrained to be applied only to 'valid' units (SI -> SI, Non-SI -> Non-SI). SI prefixes cannot be applied to non-SI units.

This is a problem at least in the case of the Litre. The millilitre and centilitre are commonly used units and therefore need to be represented.

The probable solution to this is probably to relax the constraint on applying prefixes. This does, however throw up the problem of unit symbols being conflated with one another, for example kt = kilo-tonne or carat. Perhaps some form of precendence needs to be set (probably in the symbol regex used in Unit.for) so that these conflicts follow some rule of thumb.