This project uses a generative AI model to map web platform features from chromestatus.com to web-features.
The approach is to include all features from web-features as well as the chromestatus entries in the prompt, with instructions to identify the feature each entry is most likely referring to, if any. The output is JSON which is then parsed to get the results. Many entries are processed in each prompt for efficiency.
- Python 3.9+
- uv
- An environment variable
GEMINI_API_KEY
with a valid API key
First update the chromestatus.json
and web-features.json
files:
uv run update.py
Then run the main classification script:
uv run main.py
To review the mappings through a web app:
uv run review.py
Finally, to export the accepted mappings to a CSV file:
uv run export.py