
// if this function returns non-zero the word is not a spell error

int spellx_fix(int user, int file, int language, int spare, string & word)
{
 if((word/"l'"==0) || (word/"L'"==0))           // if the word starts with l'
 {
  return(checkstring(file,language,word<<2));   // then see if the word less the l' is in
 }                                              // the dictionary

 if((word/"j'"==0) || (word/"J'"==0))           // if the word starts with j'
 {
  return(checkstring(file,language,word<<2));   // then see if the word less the l' is in
 }                                              // the dictionary

 if((word/"n'"==0) || (word/"N'"==0))           // if the word starts with n'
 {
  return(checkstring(file,language,word<<2));   // then see if the word less the l' is in
 }                                              // the dictionary

 if((word/"d'"==0) || (word/"D'"==0))           // if the word starts with d'
 {
  return(checkstring(file,language,word<<2));   // then see if the word less the l' is in
 }                                              // the dictionary

 if((word/"c'"==0) || (word/"C'"==0))           // if the word starts with c'
 {
  return(checkstring(file,language,word<<2));   // then see if the word less the l' is in
 }                                              // the dictionary

 if((word/"m'"==0) || (word/"M'"==0))           // if the word starts with c'
 {
  return(checkstring(file,language,word<<2));   // then see if the word less the l' is in
 }                                              // the dictionary

 if((word/"qu'"==0) || (word/"Qu'"==0))         // if the word starts with qu'
 {
  return(checkstring(file,language,word<<3));   // then see if the word less the qu' is in
 }                                              // the dictionary

 if((word/"s'"==0) || (word/"S'"==0))           // if the word starts with s'
 {
  return(checkstring(file,language,word<<2));   // then see if the word less the s' is in
 }                                              // the dictionary

 if((word/"t'"==0) || (word/"T'"==0))           // if the word starts with t'
 {
  return(checkstring(file,language,word<<2));   // then see if the word less the t' is in
 }                                              // the dictionary

 if((word/"lorsqu'"==0) || (word/"Lorsqu'"==0))           // if the word starts with t'
 {
  return(checkstring(file,language,word<<7));   // then see if the word less the t' is in
 }                                              // the dictionary

 return(0);
}



void main(void)
{
 int EVENT_SPELLCHECK=0x30C;

 addeventhandler(EVENT_SPELLCHECK, 0, "spellx_fix");


}