keiffster / program-y

Python 3.x based AIML 2.0 Chatbot interpreter, framework, related programs and knowledge files
https://keiffster.github.io/program-y/
Other
348 stars 138 forks source link

Trying to match pattern with french accents #198

Closed ohoachuck closed 5 years ago

ohoachuck commented 5 years ago

Trying to match french syntax with accents

Expected Behavior

I'm trying to match the following french term "été" with:

<category>
  <pattern>été</pattern>
  <template>This is summer in french</template>
</category>

Current Behavior

A random pickup line is returned

Possible Solution

Can I find a way while playing with normal/denormal ?

Steps to Reproduce

  1. test with above category pattern

Context (Environment)

Detailed Description

Is there something obvious I'm missing here ?

Possible Implementation

keiffster commented 5 years ago

Is it appropriate to exclaim ‘sacre bleu’ Or are we getting a little too Monty Python

I’ll take a look this weekend, as a stop gap you could use normal.txt to convey the accented e to a normal e and then match against ete. But that is not a long term solution. I’ll get it sorted shortly

ohoachuck commented 5 years ago

Sacrebleu ! Thanx ! ;) I’ll try the normal.txt approach for now.

O.

Envoyé de mon iPhone

Le 12 avr. 2019 à 17:49, Keith Sterling notifications@github.com a écrit :

Is it appropriate to exclaim ‘sacre bleu’ Or are we getting a little too Monty Python

I’ll take a look this weekend, as a stop gap you could use normal.txt to convey the accented e to a normal e and then match against ete. But that is not a long term solution. I’ll get it sorted shortly

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

ohoachuck commented 5 years ago

hum... normal.txt's trick does not work. I'm afraid this might be more complicated than expected.

O.

On 12 Apr 2019, at 18:35:19, Olivier HO-A-CHUCK olivier.hoachuck@gmail.com wrote:

Sacrebleu ! Thanx ! ;) I’ll try the normal.txt approach for now.

O.

Envoyé de mon iPhone

Le 12 avr. 2019 à 17:49, Keith Sterling <notifications@github.com mailto:notifications@github.com> a écrit :

Is it appropriate to exclaim ‘sacre bleu’ Or are we getting a little too Monty Python

I’ll take a look this weekend, as a stop gap you could use normal.txt to convey the accented e to a normal e and then match against ete. But that is not a long term solution. I’ll get it sorted shortly

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/keiffster/program-y/issues/198#issuecomment-482625229, or mute the thread https://github.com/notifications/unsubscribe-auth/ABfO8cy7HnpBjiubrqqRbHINo3PGV3YNks5vgKr4gaJpZM4csPPF.

ohoachuck commented 5 years ago

Sorry, I just found that the issue have nothing to do with Program-y, but with my (froggy french) webchat client! :) Sorry for the overhead. In the mean time, I was indeed surprised that such basic thing wasn't supported. It was anyway a good opportunity for me to recall usage or normal.txt and denormal.txt. Thanks for your always quick support Keith.

O.