Lightweight JS API to semantically compare natural language strings