Hi,
since I have written a lot of patterns and still have to write a lot of them,
I want to share my usual approach with you.
Maybe you have some improvements and tips for me.
Or maybe you can find a tip here for yourself.
Anyway, I think discussing different approaches can help anyone.
1. Write the #! annotations
This is a tip I got from the docs, which is very good.
I write multiple sentences the pattern should match.
2. Use :prepare with every sentence
Prepare shows you how Chatscript tokenizes the sentence and which meanings and concepts it marks. I then try to find a structure which all my input sentences from the #! annotations have in common.
3. Use :common to find appropriate concepts
Usually the different input sentences not only differ in sentence structure, but use different words for the same meaning too.
With common I try to find concepts which match hopefully all of them.
Maybe you have already seen useful concepts in step 2, but I like using :common because it makes it a lot easier
4. use :verify pattern to check if the pattern is sufficient
If you have any questions, just ask.
I hope what I wrote is understandable and helpful in any way.