( ( Objects ( with ( like charges ) ) ) ( ( ( ( repel ( one another ) ) , ) ( while ( ( objects ( with ( unlike charges ) ) ) ( are ( attracted ( to ( each other ) ) ) ) ) ) ) . ) )
(ROOT (S (NP (NP (NNS Objects)) (PP (IN with) (NP (JJ like) (NNS charges)))) (VP (VBP repel) (NP (CD one) (DT another)) (, ,) (SBAR (IN while) (S (NP (NP (NNS objects)) (PP (IN with) (NP (ADJP (IN unlike)) (NNS charges)))) (VP (VBP are) (VP (VBN attracted) (PP (TO to) (NP (DT each) (JJ other)))))))) (. .)))
Objects with like charges repel one another, while objects with unlike charges are attracted  to each other.
(ROOT (S (NP (JJ Opposite) (NNS charges)) (VP (VBP attract) (NP (CD one) (DT another))) (. .)))