doc: grammatical improvements to core/text/__init__.py

Small corrections