A vehicle is considered a lemon if it has a substantial defect that impairs its safety, use, or value, and the manufacturer has been unable to repair it after a reasonable number of repair attempts.