In New York City the two words mean different things. A basement is a story partly below curb level, with at least half its height above it. A cellar has more than half its height below curb level.

The difference matters if you plan to live in the space or rent it out. In a one- or two-family house a cellar can never be lawfully rented. No basement or cellar may be lived in or rented unless it meets the city's requirements for light, air, sanitation and exits and has Department of Buildings approval. NYC Housing Preservation and Development explains the rules.
An inspection does not decide whether a basement or cellar apartment is legal. We report what we see, such as a kitchen or bedroom in the space. To know what the building may legally be used for, check its Certificate of Occupancy with the Department of Buildings.