( ( An ion ) ( ( is ( ( an atom ) ( that ( ( ( is either ) ( ( positively or ) negatively ) ) ( charged ( as ( ( a result ) ( of ( ( ( losing or ) gaining ) electrons ) ) ) ) ) ) ) ) ) . ) )
(ROOT (S (NP (DT An) (NN ion)) (VP (VBZ is) (NP (NP (DT an) (NN atom)) (SBAR (WHNP (WDT that)) (S (VP (VBZ is) (RB either) (ADVP (ADVP (RB positively)) (CC or) (ADVP (RB negatively))) (VP (VBN charged) (PP (IN as) (NP (NP (DT a) (NN result)) (PP (IN of) (S (VP (VBG losing) (CC or) (VBG gaining) (NP (NNS electrons))))))))))))) (. .)))
An ion is an atom that is either positively or negatively charged as a result of losing or gaining electrons.
(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))))))) (. .)))