This seems weird to me. Function `get_stop_words` should have only 1 argument `language`. Maybe there can be another function `read_stop_words` or something like that for reading stop-words from stream (file, socket, anything with methods `read` and `close`)