Question: how to determine ewg and edg?
Answer: EDG are electron donating groups having lone pairs of electrons or alkyl group attached to benzene. Resonance is the key factor but in case of CH3 or C2H5 hyper conjugation plays a key role. EWG are electron withdrawing groups having pi bond or CF3 / CCl3 groups attached to the benzene.