Your best bet is to learn to 'read' your knitting, so you can knit the knit stitches and purl the purls (as they face you.)
If you are working a k1,p1 ribbing, and you cast on an even number of stitches, then you'll always work k1,p1 on each row.
This is a picture that Jan has posted numerous times to help with recognizing your stitches.