It’s not confused. That implies it understands what it wrote. The probability of g meaning grams must be higher than the force of gravity, even with the context. So grams was included in the generation of predicted text. Maybe it’s because g and G are both often used for gravity, where grams is always lower case.
Usually, g is used to represent acceleration due to gravity, whereas G is used to represent the gravitational constant in the calculation of the gravitational attraction between any two bodies.
It’s not confused. That implies it understands what it wrote. The probability of g meaning grams must be higher than the force of gravity, even with the context. So grams was included in the generation of predicted text. Maybe it’s because g and G are both often used for gravity, where grams is always lower case.
Usually, g is used to represent acceleration due to gravity, whereas G is used to represent the gravitational constant in the calculation of the gravitational attraction between any two bodies.