/hxl-hashtag-chooser

Generate a static HTML expert system for selecting HXL hashtags.

Primary LanguagePythonThe UnlicenseUnlicense

HXL hashtag chooser

Python script to generate a static HTML page from a JSON-encoded knowledge HXL base.

About HXL

The Humanitarian Exchange Language (HXL) is a simple, hashtag-based standard that humanitarian-crisis responders can use to add interoperable information to spreadsheets and similar data. The HTML generated by this script is an interactive chooser that helps IM workers to choose the most-accurate and interoperable hashtags.

The latest chooser is available online at https://hxlstandard.github.io/hxl-hashtag-chooser/index.html

Requirements

  • Python3
  • The Python3 virtualenv package (if using the Makefile)

Usage

Requires Python3.

Generate the HTML in the docs/ folder via the Makefile provided:

$ make

Generate the HTML manually:

$ python generate-tag-assist.py > docs/index.html
$ cp style.css docs/style.css

Knowledge base

The knowledge base for the chooser is in the file hxl-knowledge-base.json. Instructions on updating it will come soon.

License

This script and the HXL knowledge base are released into the Public Domain. Use with good cheer.