Malbim Ayelet HaShachar Klal 273
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
שם "גר", עיקר הנחתו מצד שגר בארץ לא לו, אם מרחוק אם מקרוב. והכנענים שקיבלו ז' מצוות היו "גר תושב". והבא מרחוק ונתגייר הוא "גר צדק". ושניהם נקראים בשם 'גר' סתם.
For the noun גר (stranger), the essence of the word is that one lives in a land, near or far, that is not his own. And the Canaanites who accepted upon themselves the seven commandments of Noah are called גר תושב, while anyone who comes from afar and converts to Judaism is called a גר צדק. And both of them can be called by just the name גר.
ונלמד תמיד מענינו,
And it is always learned from its context whether it means a גר צדק or a גר תושב.
או על ידי שכפל שם 'גר' ב' פעמים, אחד לגר צדק ואחד לגר תושב,
Or through the repeating of the noun גר twice, once for a גר צדק and once for a גר תושב.
או על ידי היקש וכדומה. (אחרי ס' עה, אחרי ס' קכב. קדושים ס' כא. ועיין עוד אמור ס' פו, בהר ס' יד, וסימן עב, וסימן צד)
Or through היקש (analogy), etc.