By law, if the vehicle's seller is aware of the car's past as a taxi, they are obliged to tell you, so always ask the question. But, of course, if they are unaware of the car's dalliance with taxiing, there is no recourse if you later find out it was an ex-taxi.