Skip to content

Commit ea0371f

Browse files
readme.md
1 parent 3684404 commit ea0371f

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

readme.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ node app.js
1212

1313
### First Example
1414

15-
The first example demonstrates forward-chaining. To use the example, provide the following inputs as an example:
15+
The first example demonstrates forward-chaining. To use the example, provide the following example inputs below.
1616

1717
```
1818
stem
@@ -23,9 +23,21 @@ one main trunk
2323
yes
2424
broad and flat
2525
no
26+
<press enter two times>
2627
```
2728

28-
You should see the output:
29+
You should see the following output.
30+
31+
```js
32+
[ { attribute: 'stem', value: 'woody' },
33+
{ attribute: 'position', value: 'upright' },
34+
{ attribute: 'one main trunk', value: 'yes' },
35+
{ attribute: 'broad and flat', value: 'no' },
36+
{ attribute: 'type', value: 'tree' },
37+
{ attribute: 'class', value: 'gymnosperm' } ]
38+
```
39+
40+
The first 4 items are our provided inputs. The second two are new attributes deduced from the knowledge-base.
2941

3042
```
3143
type is tree
@@ -36,7 +48,7 @@ Why? The first output of `tree` is because of the original input attributes all
3648

3749
### Second Example
3850

39-
The second example demonstrates backward-chaining. To use the example, provide the following inputs as an example:
51+
The second example demonstrates backward-chaining. To use the example, provide the following example inputs below.
4052

4153
```
4254
class

0 commit comments

Comments
 (0)