From c7d813d6fff5b53519c1d34a2f9d9506e6e03fbc Mon Sep 17 00:00:00 2001 From: saltystew Date: Wed, 29 Aug 2018 18:16:22 -0400 Subject: [PATCH] excluded a word --- title-tagging.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/title-tagging.py b/title-tagging.py index 7c8b810..5fe351d 100644 --- a/title-tagging.py +++ b/title-tagging.py @@ -77,7 +77,8 @@ def capitalize_title(title_string): word = word.lower() elif not word.isupper(): if not word.endswith('s') & (word.replace('s', '')).isupper(): - word = word.capitalize() + if not (word.lower()).startswith('ipv'): + word = word.capitalize() title += str(f'{word} ') return title