General:
* Section: This is a broad term that could be used for any part of the spaceship.
* Area: This is similar to "section" but implies a more defined space.
* Room: This implies a habitable space within the spaceship.
Specific types of compartments:
* Cabin: This is used for crew living quarters.
* Cargo hold: This is used for storing goods.
* Engine room: This is where the spaceship's engines are located.
* Bridge: This is the control center of the spaceship.
* Laboratory: This is a dedicated space for scientific research.
* Medical bay: This is where the spaceship's medical equipment is stored and used.
You could also use bay or module depending on the context.
Ultimately, the best word to use will depend on the specific situation and the desired level of formality.