Metadata-Version: 2.4
Name: oldenglish
Version: 0.1.0
Summary: Rename print/input/help/count/find/replace/if/else/def to custom spellings
Author-email: IliyA <Mersulant@protonmail.com>
License: MIT License
        
        Copyright (c) 2026 IliyA
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# oldenglish

Changes python default names to old ones. 

| Original     | Custom      | Type               |
|--------------|-------------|--------------------|
| `print`      | `publish`   | function           |
| `input`      | `hark`      | function           |
| `help`       | `aid`       | function           |
| `.count()`   | `reckon()`  | function           |
| `.find()`    | `seek()`    | function           |
| `.replace()` | `exchge()`  | function           |
| `if`         | `an it be`  | keyword (via hook) |
| `else`       | `otherwise` | keyword (via hook) |
| `def`        | `decree`    | keyword (via hook) |

## Function renames

These just work, no setup needed:

```python
from oldenglish import publish, hark, aid, reckon, seek, exchge

publish("hello")
name = hark("what's your name? ")
aid(str)
reckon("abcabc", "a")        # like "abcabc".count("a")
seek("abcabc", "b")          # like "abcabc".find("b")
exchge("hi", "hi", "bye")    # like "hi".replace("hi", "bye")
```

## Keyword renames

`if`/`else`/`def` are actual reserved words, so you can't just alias
them. Instead, write your code in a file ending in `.oe.py` and this
package will rewrite it into real Python before it's compiled:

```python
# main.oe.py
from oldenglish import publish

decree greet(name):
    an it be name == "world":
        publish("hello world")
    otherwise:
        publish("hello " + name)

greet("world")
```

Then from a normal `.py` file:

```python
import oldenglish
oldenglish.enable_keywords()

import main  # loads main.oe.py
```

## License

MIT, see LICENSE.
