1 | High-level script: |
2 | |
3 | All parameters of a pattern are in the same class |
4 | |
5 | So this time, the script is actually a statement/assumption. |
6 | |
7 | Motivational example: |
8 | |
9 | Consider the phrase "milk, coffee and cigarettes" |
10 | with pattern "*, * and *". There, all the parameters |
11 | (milk, coffee, cigarettes) are in the class "things you can buy". |
12 | |
13 | Intent: This script helps to parse better, and also can help us learn about things and their classes. |
14 | |
15 | So how do we proceed? |
16 | |
17 | First, a script rewrite - expand it into a scenario: |
18 | |
19 | There is a pattern |
20 | There are parameters of the pattern |
21 | There is a class |
22 | Assumption: Each of the parameters is in the class |
23 | |
24 | Now we can execute this in different ways. We can look for existing examples (matched patterns) and check if the assumption is true for them. |
25 | |
26 | Or we can generate fresh assumptions and check them further. |
27 | |
28 | Or we can prioritize (vote up) pattern matches where the assumption is true. |
29 | |
30 | Also, we can find out for which pattern this typically holds and for which ones it doesn't. |
31 | |
32 | Same with the parameters of a pattern - maybe only parameters in certain positions are in the same class. |
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031010 |
Snippet name: | "All parameters of a pattern are in the same class" |
Eternal ID of this version: | #1031010/2 |
Text MD5: | e6921b9d6ae4024e65f8384333bdc406 |
Author: | stefan |
Category: | gazelle |
Type: | Document |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-20 16:38:44 |
Source code size: | 1158 bytes / 32 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 220 / 79 |
Version history: | 1 change(s) |
Referenced in: | [show references] |