The singular they is considered non-standard English by many, but the construction is widely used by many educated speakers and writers (both contemporary and historic), thus many advocate its use to avoid the accusation of sexist language or stilted language by substituting "he" or "he or she".