( ( When ( added ( to ( an acid ) ) ) ) ( , ( ( a carbonate ) ( ( will ( produce ( ( ( ( ( carbon dioxide ) , ) water ) and ) ( a ( chemical salt ) ) ) ) ) . ) ) ) )
(ROOT (S (SBAR (WHADVP (WRB When)) (S (VP (VBD added) (PP (TO to) (NP (DT an) (NN acid)))))) (, ,) (NP (DT a) (NN carbonate)) (VP (MD will) (VP (VB produce) (NP (NP (NN carbon) (NN dioxide)) (, ,) (NP (NN water)) (CC and) (NP (DT a) (JJ chemical) (NN salt))))) (. .)))
When added to an acid, a carbonate will produce carbon dioxide, water and a chemical salt.
(ROOT (S (NP (NNP Carbon) (NN dioxide)) (ADVP (RB chemically)) (VP (VBP weather) (NP (NNS rocks)) (PP (IN by) (S (VP (VBG creating) (NP (NNS acids)))))) (. .)))