antiboredom/patent-generator — pull request #5 by steinbro (2014-05-14 04:10:32+00:00)
Title: Add claims to detailed description

A utility patent isn't complete without claims. I've added rudimentary claim language generation. An example from the Communist Manifesto:

> What is claimed is:
>
> 1. A device for diminishing the means, comprising:
> an other article;
> a sentimental veil; and
> a last resort.
>
> 2. The device of claim 1, wherein said other article comprises every villainous meanness of this model.
>
> 3. The device of claim 1, wherein said sentimental veil comprises no other conclusion than that the lot.
>
> 4. The device of claim 1, wherein said last resort comprises the scattered state of the population.
>
> 5. An apparatus for diminishing the means, comprising:
> a great factory;
> a present system; and
> a bribed tool.
>
> 6. The apparatus of claim 5, wherein said great factory comprises the exact contrary of its real character.
>
> 7. The apparatus of claim 5, wherein said present system comprises every villainous meanness of this model.
>
> 8. The apparatus of claim 5, wherein said bribed tool comprises the vanished status of the workman.

I also replaced some code with library methods that do the same thing more robustly.