find_capital

find_capital(text)

Extract words starting with capital letter. Some words like names,place or universal object are usually mentioned in a text starting with CAPS.

Parameters

text: str Text selected to apply transformation.

Examples:

sentence="World is affected by corona crisis.
No one other than God can save us from it"
find_capital(sentence)
    >>> ['World', 'No', 'God']