<reponame>derenyilmaz/personality-analysis-framework<gh_stars>1-10
# uses the stopword list from the article
# https://www.ranks.nl/stopwords/turkish


import os
import sys

__location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))

class StopWord:
    __dictionary = []

    def __init__(self):
        with open(__location__ + "/ranks-nl-stopwords", 'r', encoding = 'utf-8') as fdict:
            for line in fdict:
                self.__dictionary.append(line.strip())


    def is_stop_word(self, word):
        return word in self.__dictionary
# uses the stopword list from the article
# https://www.ranks.nl/stopwords/turkish


import os
import sys

__location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))

class StopWord:
    __dictionary = []

    def __init__(self):
        with open(__location__ + "/ranks-nl-stopwords", 'r', encoding = 'utf-8') as fdict:
            for line in fdict:
                self.__dictionary.append(line.strip())


    def is_stop_word(self, word):
        return word in self.__dictionary
# uses the stopword list from the article # https://www.ranks.nl/stopwords/turkish