Skip to content

Instantly share code, notes, and snippets.

View xsuchy's full-sized avatar

Miroslav Suchý xsuchy

View GitHub Profile
@xsuchy
xsuchy / grammar-check.py
Created April 17, 2025 09:52
Kontrola gramatiky
#!/usr/bin/python3
"""
AI prompt:
You are Python and ChatGPT expert. Can you write a Python script that reads a text from STDIN and submits it to ChatGPT to find any grammatical errors and correct them? No stylistic changes should be made to ensure the differences are minimal. The resulting text will be printed.
"""
import os
import sys
from openai import OpenAI
# Retrieve your API key from the environment
from copr.v3 import Client
from copr.v3.pagination import next_page
from pprint import pprint
import datetime
import plotly.express as px
import pandas as pd
import json
import argparse
DAYS = 91