gram-, -gram-, -gram, -grammatic, -grammatical, -grammatically, -gramme, -grammic +

(Greek: write, writing, something written, a written record, a recording; letters; words; later, a small weight, a unit of mass in the metric system)

A unit of weight in the metric system from 1797 gramme, borrowing of French gramme, from Late Latin gramma, "small weight"; from Greek gramma, "small weight"; originally, "something written"; from the stem of graphein, "to draw, to write".

—Compiled from information located in;
The Barnhart Dictionary of Etymology; Robert K. Barnhart, Editor;
The H.W. Wilson Company; New York; 1988; page 445.

Related "writing" word units: glypto-; graph-; scrib-, script-.