From 22bda17fa23cd5dc146f282e228a91c6df178095 Mon Sep 17 00:00:00 2001 From: Blerim Sheqa Date: Fri, 10 Sep 2021 11:42:43 +0200 Subject: [PATCH] Add 'from' stopword --- build-docs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-docs.rb b/build-docs.rb index db1ed26..0ca9b27 100755 --- a/build-docs.rb +++ b/build-docs.rb @@ -55,7 +55,7 @@ def titleize(string) title = title.gsub(/(-|_)/, ' ') # Uppercase only first letter of each word, ignore stopwords - stopwords = ['and', 'or', 'to', 'by', 'on', 'with', 'is', 'at', 'of'] + stopwords = ['and', 'or', 'to', 'by', 'on', 'with', 'is', 'at', 'of', 'from'] title = title.split.map { |word| if stopwords.include?(word) word