Skip to content

Commit

Permalink
Create a single main() argument excluding phrases
Browse files Browse the repository at this point in the history
  • Loading branch information
Mkranj committed Nov 6, 2022
1 parent 6a97883 commit 5e26d7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PapersCited.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def write_excel(list_of_matches, filename):
# Using the defined lists of phrases/characters as arguments


def main(characters_to_remove, phrases_to_adjust, croatian_excluded_phrases, english_excluded_phrases):
def main(characters_to_remove, phrases_to_adjust, phrases_to_exclude):
filename = get_file()
check_file(filename)
document = read_document(filename)
Expand All @@ -337,11 +337,11 @@ def main(characters_to_remove, phrases_to_adjust, croatian_excluded_phrases, eng
matches, characters_to_remove, phrases_to_adjust)
matches = remove_duplicates(matches)
matches = exclude_phrases(
matches, croatian_excluded_phrases + english_excluded_phrases)
matches, phrases_to_exclude)
matches = sort_citations(matches)
write_excel(matches, filename)


if __name__ == "__main__":
main(characters_to_remove, phrases_to_adjust,
croatian_excluded_phrases, english_excluded_phrases)
phrases_to_exclude = croatian_excluded_phrases + english_excluded_phrases)

0 comments on commit 5e26d7a

Please sign in to comment.