أَنَّ كُلَّ مَا شُرِطَ فِيهِ الْعَلَمِيَّةُ، وَهُوَ الْمُؤَنَّثُ بِالتَّاءِ، وَالْمَعْنَوِيُّ، وَالْعُجْمَةُ، وَالتَّرْكِيبُ، وَالِاسْمُ الَّذِي فِيهِ الْأَلِفُ وَالنُّونُ الزَّائِدَتَانِ
Translation: These groups require proper-name status for their diptote treatment: names ending in feminine tāʾ, semantically feminine names, foreign names, certain compound names, and names ending in an additional alif and nūn.
The common requirement is that the word is functioning as a proper name.