---
id: 1zEzoh4ifxhGtwU0o4jCp8QuOlPs7M7oma4BH5i49UYc
title: "omenizer.py"
path: "/NOUMENA/omenizer.py"
kind: gdoc
words: 211
source_bytes: 2066
publisher: "Anticloud FZ LLE — Lois-Kleinner Alpasan"
canonical: https://quallia.org/doc/1zEzoh4ifxhGtwU0o4jCp8QuOlPs7M7oma4BH5i49UYc
download: /dl/1zEzoh4ifxhGtwU0o4jCp8QuOlPs7M7oma4BH5i49UYc
---

# omenizer.py

> /NOUMENA/omenizer.py

# omenizer by whitman
# the book of preparation of prophecies
# dedicated to terry davis and templeos


import random
import os
import sys


def get_words_from_downloads():
    # Get the user's home directory and construct the path to Downloads
    home = os.path.expanduser("~")

    # Path: User/Downloads/words.txt
    file_path = os.path.join(home, "Downloads", "words.txt")


    print(f"Looking for word list at: {file_path}")


    if not os.path.exists(file_path):
        print("\nERROR: Could not find 'words.txt' in your Downloads folder.")
        print("Please ensure your word list is named 'words.txt' and is inside Downloads.")
        sys.exit(1)


    try:
        with open(file_path, "r", encoding="utf-8", errors="ignore") as f:
            # Filter: alphanumeric only, length > 2
            word_list = [line.strip() for line in f if line.strip().isalpha() and len(line.strip()) > 2]

        if len(word_list) < 10:
            print("ERROR: The file was found but contains fewer than 10 valid words.")
            sys.exit(1)

        return word_list


    except Exception as e:
        print(f"Error reading file: {e}")
        sys.exit(1)


def generate_omen_log():
    words = get_words_from_downloads()
    total_years = 100
    filename = os.path.join(os.path.expanduser("~"), "Downloads", "omen_log.txt")


    print(f"Loaded {len(words)} words. Generating 100 years of log entries...")


    try:
        with open(filename, "w", encoding="utf-8") as f:
            for year in range(1, total_years + 1):
                for month in range(1, 13):
                    selection = random.sample(words, 3)
                    line = f"Month {month} Year {year} | {selection[0]}, {selection[1]}, {selection[2]}\n"
                    f.write(line)

        print(f"Success. Log saved to: {filename}")


    except Exception as e:
        print(f"Error writing output file: {e}")


if __name__ == "__main__":
    generate_omen_log()
