( ( Since ( ( sugar carbohydrates ) ( provide ( ( 4 calories ) ( per gram ) ) ) ) ) ( , ( you ( ( can ( have ( ( up ( to ( ( 30 grams ) ( of ( total sugar ) ) ) ) ) ( based ( on ( a ( 1,200-calorie diet ) ) ) ) ) ) ) . ) ) ) )
(ROOT (S (SBAR (IN Since) (S (NP (NN sugar) (NNS carbohydrates)) (VP (VBP provide) (NP (NP (CD 4) (NNS calories)) (PP (IN per) (NP (NN gram))))))) (, ,) (NP (PRP you)) (VP (MD can) (VP (VB have) (VP (ADVP (RB up) (PP (TO to) (NP (NP (CD 30) (NNS grams)) (PP (IN of) (NP (JJ total) (NN sugar)))))) (VBN based) (PP (IN on) (NP (DT a) (JJ 1,200-calorie) (NN diet)))))) (. .)))
Since sugar carbohydrates provide 4 calories per gram, you can have up to 30 grams of total sugar based on a 1,200-calorie diet.
(ROOT (S (NP (NP (CD One) (NN gram)) (PP (IN of) (NP (NN sugar) (CC or) (NN starch)))) (VP (VBZ provides) (NP (NP (CD 4) (NNS calories)) (PP (IN of) (NP (NN energy))))) (. .)))