Giter Site home page Giter Site logo

an2pw's Introduction

an2pw

Work in progress to convert Akoma Ntoso 3.0 sources from data.oireachtas.ie into publicwhip xml

If you find this before it's finished: it is currently in a very alpha state indeed and is spitting limited output to the console. Once all the element types used by the Irish parliament are completed, it'll move to outputting to a file handle (or to stdout) very quickly.

First version is designed to work only for KildareStreet.com; more functions to tweak output for your use case can be added after that.

an2pw's People

Contributors

handelaar avatar

Watchers

 avatar  avatar

an2pw's Issues

TODO: <question>

  • question elements
  • set 'last item was a question' flag so that speeches after questions can be marked as answers

TODO: backlinks to source URIs in output

  • calculate how on earth the source site URIs are being calculated
  • if it is predictable, add them to every output element
  • if it is not predictable, close this issue

TODO: vote

  • Vote elements (for, against, abstain)
  • Format as currently output at kildarestreet.com in included HTML

TODO: <speech>

  • Attributed speeches
    • First with oirpersonid from source as temp measure
    • Then change to kildarestreet member_id
  • Speech items from non-members or witnesses (speaker="unknown")
  • Replace not-really-HTML elements within speeches (eg <summary>)
  • <table>s within speeches or answers
  • tag speeches as answers if last item was a question
  • Akosa Ntoso <summary> items rendered as <speech nospeaker="true">

TODO: Concatenate all cttees for a day into one publicwhip output file

  • feed arbitrary list of >=1 files into parser
  • parser loadfile should check if passed var is an array; if yes, they're committees (document this)
  • if 'committees' flag set, demote all of each heading in all AN files by one level
  • move cttee prelude matter under artificial subheading 'prelude' as with Dáil
  • decide whether to merge AN files in memory before parsing or to walk through them all separately

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.