<commit_before># Freifunk Metadata Wordpress Plugin

A small Wordpress plugin to render Freifunk metadata according to the [api.freifunk.net](https://github.com/freifunk/api.freifunk.net) specification ([german description](http://freifunk.net/blog/2013/12/die-freifunk-api/)).

It reads (and caches) JSON input from a configured URL and provides shortcodes to output the data.

Currently implemented are `[ff_services]`, `[ff_contact]`, and `[ff_state]`.

An `[ff_location]` is also usable, but needs more work.

## Example

Text:

    Services:

    [ff_services]

    Contact:

    [ff_contact]

    Contact Jena:

    [ff_contact jena]

Output:

![shortcode output example](http://mschuette.name/wp/wp-upload/freifunk_meta_example.png)<commit_msg>link ff_location screenshot<commit_after># Freifunk Metadata Wordpress Plugin

A small Wordpress plugin to render Freifunk metadata according to the [api.freifunk.net](https://github.com/freifunk/api.freifunk.net) specification ([german description](http://freifunk.net/blog/2013/12/die-freifunk-api/)).

It reads (and caches) JSON input from a configured URL and provides shortcodes to output the data.

Currently implemented are `[ff_services]`, `[ff_contact]`, and `[ff_state]`.

An `[ff_location]` is also usable, but needs more work.

## Example

Text:

    Location:

    [ff_location]

    Services:

    [ff_services]

    Contact:

    [ff_contact]

    Contact Jena:

    [ff_contact jena]

Output:

![ff_location output example])(http://mschuette.name/wp/wp-upload/freifunk_meta_location_sample.png)

![shortcode output example](http://mschuette.name/wp/wp-upload/freifunk_meta_example.png)

{'fraction_non_alphanumeric': 0.1161524500907441, 'fraction_numerical': 0.007259528130671506, 'mean_word_length': 4.513333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6999167', 'n_tokens_mistral': 570, 'n_tokens_neox': 531, 'n_words': 140}