DEV Community

Wincent Balin
Wincent Balin

Posted on • Originally published at ofdigitalwater.postach.io

Generate German laws

In this series, I am going to describe, how to build a generator of German laws.

First things first:

  1. I am doing this for my own amusement.
  2. Because of 1., I will not necessarily seek simple ways to do things.
  3. You will most probably facepalm repeatedly reading the articles from this series.
  4. Given enough time, you will learn to enjoy 3.

The goal

… consists of four parts:

  1. Fetch German laws from https://www.gesetze-im-internet.de
  2. Build text corpus from the downloaded laws
  3. Train a char-RNN with the text corpus
  4. Create an easy to use generator of German laws

The prototype for XML conversion was done in the previous article on this blog.

Next step

In the next post, we are going to create the code that fetches all the law texts.

Stay tuned!

Discussion (0)