I'm wondering how to find the position of a proper noun in a list in Python. I'm aware of how to find the position of a particular word in a list
like this:
for position, item in enumerate(list):
if item == 'word':
print position
ideally I would like to be able to find the position of the proper nouns in the text and then find the nearest proper noun to the 'word'
.
Any help would be great, thank you.