It seems to me what's needed here is an ontology which covers length
measurements. OpenCyc, SUMO, and various programming libraries have
something called PhysicalQuantity which seems about right. No
language extensions necessary.
-- sandro