( ( The charge ) ( ( is ( produced ( when ( atoms ( ( ( gain ( electrons ( -LRB- ( anions -RRB- ) ) ) ) or ) ( lose ( electrons ( -LRB- ( cations -RRB- ) ) ) ) ) ) ) ) ) . ) )
(ROOT (S (NP (DT The) (NN charge)) (VP (VBZ is) (VP (VBN produced) (SBAR (WHADVP (WRB when)) (S (NP (NNS atoms)) (VP (VP (VB gain) (NP (NP (NNS electrons)) (PRN (-LRB- -LRB-) (NP (NNS anions)) (-RRB- -RRB-)))) (CC or) (VP (VB lose) (NP (NP (NNS electrons)) (PRN (-LRB- -LRB-) (NP (NNS cations)) (-RRB- -RRB-))))))))) (. .)))
The charge is produced when atoms gain electrons (anions) or lose electrons (cations).
(ROOT (S (NP (NP (JJ Ionic) (NN compound) (NNS atoms)) (PP (IN of) (NP (JJ various) (NNS elements)))) (VP (VBP gain) (CC or) (VBP lose) (NP (NNS electrons) (S (VP (TO to) (VP (VB produce) (NP (NNS ions))))))) (. .)))