diff options
author | Arjun Satarkar <me@arjunsatarkar.net> | 2023-05-31 18:58:09 +0000 |
---|---|---|
committer | Arjun Satarkar <me@arjunsatarkar.net> | 2023-05-31 18:58:09 +0000 |
commit | d0837d5033709e18e8c599842dd42505292d0e9f (patch) | |
tree | e2ce3cc9c3badf68b265b7d8a65f7155ea0402b9 | |
parent | 629fcc82d3d70122bec52ee89d4628c5c5d69ab1 (diff) | |
download | DnDnDnD-d0837d5033709e18e8c599842dd42505292d0e9f.tar DnDnDnD-d0837d5033709e18e8c599842dd42505292d0e9f.tar.gz DnDnDnD-d0837d5033709e18e8c599842dd42505292d0e9f.zip |
Also fix help message typo, clean up directory structure.
-rwxr-xr-x | main.py | 2 | ||||
-rwxr-xr-x | make_noun_list.sh | 3 | ||||
-rw-r--r-- | noun_lists_raw/Wordlist-Nouns-All.txt (renamed from nounlist_raw/Wordlist-Nouns-All.txt) | 0 | ||||
-rw-r--r-- | noun_lists_raw/english-nouns.txt (renamed from nounlist_raw/english-nouns.txt) | 0 | ||||
-rw-r--r-- | noun_lists_raw/noun_lists.warc.gz (renamed from nounlist_raw/noun_lists.warc.gz) | bin | 290789 -> 290789 bytes | |||
-rw-r--r-- | noun_lists_raw/nounlist.txt (renamed from nounlist_raw/nounlist.txt) | 0 |
6 files changed, 4 insertions, 1 deletions
@@ -2,7 +2,7 @@ import argparse import sys -parser = argparse.ArgumentParser(prog="D&D&D&D", description="Dungeons & Dragons D...") +parser = argparse.ArgumentParser(prog="D&D&D&D", description="Dungeons & Dragons & D...") parser.add_argument("word_num", default=None, nargs="?", type=int) args = parser.parse_args() word_num = args.word_num diff --git a/make_noun_list.sh b/make_noun_list.sh new file mode 100755 index 0000000..de795df --- /dev/null +++ b/make_noun_list.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh +RAW_NOUNLIST_FILES='english-nouns.txt nounlist.txt Wordlist-Nouns-All.txt' +cd noun_lists_raw && cat $RAW_NOUNLIST_FILES | grep -v '[^[:lower:]]' | sort -u > ../nouns.txt diff --git a/nounlist_raw/Wordlist-Nouns-All.txt b/noun_lists_raw/Wordlist-Nouns-All.txt index 72d18d0..72d18d0 100644 --- a/nounlist_raw/Wordlist-Nouns-All.txt +++ b/noun_lists_raw/Wordlist-Nouns-All.txt diff --git a/nounlist_raw/english-nouns.txt b/noun_lists_raw/english-nouns.txt index 672484c..672484c 100644 --- a/nounlist_raw/english-nouns.txt +++ b/noun_lists_raw/english-nouns.txt diff --git a/nounlist_raw/noun_lists.warc.gz b/noun_lists_raw/noun_lists.warc.gz Binary files differindex 2516051..2516051 100644 --- a/nounlist_raw/noun_lists.warc.gz +++ b/noun_lists_raw/noun_lists.warc.gz diff --git a/nounlist_raw/nounlist.txt b/noun_lists_raw/nounlist.txt index 3f0d1dc..3f0d1dc 100644 --- a/nounlist_raw/nounlist.txt +++ b/noun_lists_raw/nounlist.txt |