Beginner noted. Understand that I am new to Python also.
First I think in the above solutions the assumption is that your Word doc file is in a folder Houston. From my reading I understand your file name is Houston, and the folder it is in is called Programming.
Secondly if the file you are seeking to open is a Word doc file, the correct file name needs to include the correct file type extension. If should be either .doc or .docx, unless when you saved the file in Word deliberately to another type of file (eg .rtf, .txt, .pdf)
Depending on your OSX Finder preference settings, file extensions may not be visible to you. If they are not visible, click once on your target file in OSX to select it, then press Command and the letter "I" key (together) for the information of this file. In the information box that opens, look at the top to see the name of the file (Houston) and the file extension of your file.
Putting these two considerations together, I suggest try the following - refining salomonderossi solution.
If the full file name with .extension is Houston.doc, then try:
open("/Users/AquaAurelius/Documents/Home/Programming/Houston.doc")
If it is Houston.docx, then try:
open("/Users/AquaAurelius/Documents/Home/Programming/Houston.docx")
If this works, you will likely find there is a lot more characters in the file when it is opened in Python than what you see when the same file is opened in Word. The extra characters are hidden characters that Word as a program uses to format and manage your doc file in Word. However, all the text that is of interest to you should still be there to check for curse words.
If you want to then save this file and have others open it in Word, you need to be very careful you only change words that are visible text in Word, not the additional text you see in Python.
I have since tried this solution with a .docx and simple text file and neither have worked for me.
From a web search it seems to achieve your goal you may need to install an additional python package python-docx. See python-docx home page link
Houston, or is that the directory name?