How can you tell what sort of gas is emitting light?

light is emitted by molecules...each molecule has a definite and unique signature.