Question

I'm looking for a library (preferably in PHP) that can extract weigh / height data from a string.

I want my users to input something like "I weigh 80 k and I'm 1.8m tall" or even "220 lb" and "6' 1" and pass it through a function that can extract the quantity and the unit.

Anyone know if there's something like that out there?

Was it helpful?

Solution

Convert Measurements 1.1 does many of these conversions you mention and more

OTHER TIPS

You may also like to check out Universal Converter, it does many more conversions than these, developers working on NLP support.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top