Where is the text expansion file located with OS X?
Before Mavericks, they're stored in NSUserReplacementItems in the global preferences. However, since Mavericks, the replacements are stored in…

~/Library/Dictionaries/CoreDataUbiquitySupport/$USER~*/UserDictionary/*/store/UserDictionary.db