opencog/relex — pull request #43 by sebastianruder (2014-05-21 09:24:09+00:00)
Title: Det-rule error

The det-rule didn't work properly. First bug was that the relex2logic-rules.txt file called the method choose_var_name which was named choose-var-name in relex-to-logic.scm.
There's another error now saying that choose-var-name is returning an argument of the wrong type (?).
```
37: 4 [lp (det-rule "man" # choose-var-name ...)]
In ice-9/eval.scm:
368: 3 [eval # #]
In unknown file:
?: 2 [cog-new-node VariableNode {#}]
In ice-9/boot-9.scm:
102: 1 [# wrong-type-arg ...]
In unknown file:
?: 0 [catch-closure wrong-type-arg "cog-new-node" ...]

ERROR: In procedure catch-closure:
ERROR: In procedure cog-new-node: Wrong type argument in position 2 (expecting string name for the node): #
ABORT: wrong-type-arg
```
I've had a look at the functions, but couldn't find the error yet as random-string which is called by choose-var-name is returning a string. Maybe you can help, @amebel?