The first textbook example is jariyah. In classical usage it can mean a bondwoman or a vessel/ship. The written form is the same, but the things signified are different.
Example 1: in an older transaction record, jariyah might refer to a bondwoman.
Example 2: in a discussion of sea travel, it might designate a vessel.
The surrounding context helps determine the intended sense. A bare lexical form does not always settle it.