This is the USA, though Canada is similar. Anyplace else may be different.
Once upon a time, all insulated wires were black rubber.
Then it seemed wise to identify the wire connected to the groundED side of the feeder. So we put white paint on that wire.
In theory, any groundING wire can be left bare. In practice, if you have plastic on it, it must be green.
Today the green/bare wire or screw is groundING, the 3rd or U-shape pin. The Identified groundED wire or screw must be White (screws are white-metal) and is the wide blade. Any other color (black, red, brass, chartreuse) may be Hot.
In practice, in the USA, the White and Black are switched-around about half the time (62% of the outlets in my house were wrong). And except for incandescent lamp sockets, it really does not matter. (You would really prefer the outer shell of a light bulb to be on the groundED White wire, but millions of lamps have hot shells.) Do the white/black any way that works. The essential thing is to get the green/bare wire connected from the U-pin to the equipment case. The white, black, red, chartreuse, etc wires must NOT connect to the case.