Simon Brooke
65995477c3
Tidied up the essay a bit.
2013-11-10 22:38:55 +00:00
Simon Brooke
4a6b0343f5
Added an essay about the process. It isn't (yet) a very good essay...
2013-11-10 22:20:58 +00:00
Simon Brooke
6b124ec989
Fixed the final missing feature: if -o or --output is specified on the
...
command line, it is now honoured.
2013-11-10 21:09:52 +00:00
Simon Brooke
fd36f8e1ca
Yet more polishing and primping. Added function top-and-tail, which
...
seeks to ensure that if possible the output starts at the beginning
of a sentence and ends at the end of one.
2013-11-09 15:04:22 +00:00
Simon Brooke
953259b379
Tidy up of markdown formatting.
2013-11-09 09:12:50 +00:00
Simon Brooke
3a9e9220eb
Set github urls in documentation as home address.
2013-11-09 09:08:44 +00:00
Simon Brooke
6d59b813de
Tidying up and polishing prior to publication.
2013-11-09 08:51:04 +00:00
Simon Brooke
f9af58889e
More very minor fiddling. Help flag now works, and apostrophe t, d and m
...
(e.g. can't, I'd, I'm) are now formatted to orthographical convention.
2013-11-09 01:09:46 +00:00
Simon Brooke
fffaf0cca0
Basically finished. Not capitalising initial words of sentences; not
...
printing output to an output file even if one is specified; not
honouring the help flag.
2013-11-09 00:39:20 +00:00
Simon Brooke
5141419efa
And once you know where the bug is, fixing it is easy.
2013-11-08 14:21:16 +00:00
Simon Brooke
aad3cd6b58
Interesting! Unit tests show the bug is not in merge-rules, as thought,
...
but in add-rule.
2013-11-08 14:18:02 +00:00
Simon Brooke
68fafdab99
OK, there's a bug on the analyse side and I think it's in merge-rules. All
...
the rules that ought to be being generated are being generated, but the rule
tree returned by analyse-tokens is incomplete. I'm not yet certain what is
wrong.
2013-11-08 12:58:46 +00:00
Simon Brooke
08b0514908
And for extra credit, deal with the special case of apostrophes, which
...
the Java version did not handle!
2013-11-08 11:19:30 +00:00
Simon Brooke
3315eef7b8
Now correctly tokenises all punctuation.
2013-11-08 11:11:30 +00:00
Simon Brooke
5c6a0f0b90
Uhmm... hadn't saved analyse.clj when I did the last commit. D'oh!
2013-11-08 10:58:27 +00:00
Simon Brooke
a2958cb851
Right, separated analyse and synthesise stages into their own files, also
...
utils; and rewritten the analyse stage in more idiomatic clojure.
Analyse mostly working BUT out of stack exception on undermilkwood.txt,
also isn't treating punctuation as tokens.
2013-11-08 10:20:47 +00:00
Simon Brooke
9e2d02b82d
Moved slide-window 'up file' so declaration is before use.
2013-11-07 23:44:38 +00:00
Simon Brooke
997f665e37
Initial commit of clojure reimplementation of Milkwood. Most of the
...
read side working, write side started, top level function just sketched
and definitely not working.
2013-11-07 23:34:12 +00:00