New package announcement: greeklib.js
Summary and motivation
greeklib.js is a javascript library for working with citable text in polytonic ancient Greek in a web browser or other javascript environment.
Release notes
Main features:
- defines the
Tokenclass to represent a citable, classified token - implements the
tokenizefunction to tokenize a single citable text passage
Installation
The file greeklib.js can be downloaded from github and used locally, or loaded via jsDelivr from https://cdn.jsdelivr.net/gh/neelsmith/greeklib@1.0.0/greeklib.js.
Documentation
- available on github
Source
- available on github
Caveats
The javascript library and the markdown documentation were written entirely by gemini-2.5-pro. The code passes a series of sanity tests, but I have not even looked at the javascript. When I encountered errors, I let gemini fix them. Use the code as you like, but be aware that I have no idea what it does or how it works.
Auditing the build:
- github repository includes a complete transcript of the chat used to generate the script, with saved intermediate versions of the javascript library. See the repository README for details.