JL Forums

TBS API - How to replace only phrases instead of words?

0 Members and 1 Guest are viewing this topic.

TBS API - How to replace only phrases instead of words?
« on: August 04, 2011, 05:20:35 AM »
Hi,

I was looking at the TBS API and can't find a method for replacing phrases' synonyms instead of word synonyms.

This option is available when you use the TBS GUI, where you can choose to replace every word/phrase, or just phrase.

Could you tell me if this limitation is done on purpose due to some technical issue?

Given the higher accuracy of phrase substitution over word substitution, it would be really nice to have that available via the API.

Thanks!

Offline Jonathan Leger

  • *****
  • 8318
  • Here's to your success!
    • View Profile
    • Jonathan Leger's Blog
Re: TBS API - How to replace only phrases instead of words?
« Reply #1 on: August 04, 2011, 02:56:35 PM »
That's not currently available, but it's a good idea and i will add it in later this month.

Re: TBS API - How to replace only phrases instead of words?
« Reply #2 on: August 06, 2011, 03:23:54 AM »
That's really great to hear! I know myself and many others will find that feature very useful. Looking forward to that.

And by the way, do I need to check back here to see when that is available? Or will it be part of a release note?

Thanks Jon!

Offline Jonathan Leger

  • *****
  • 8318
  • Here's to your success!
    • View Profile
    • Jonathan Leger's Blog
Re: TBS API - How to replace only phrases instead of words?
« Reply #3 on: August 08, 2011, 03:41:36 PM »
I'll post to this thread when it's done. Probably around Aug 25 or so. I'm out of town right now.

Re: TBS API - How to replace only phrases instead of words?
« Reply #4 on: March 07, 2012, 06:44:57 AM »
Hi Jon,

Could you update us on how you went with adding this API feature? Is it already available?

I just had a look at the API documentation again but can't find it...

Thanks!

Offline Jonathan Leger

  • *****
  • 8318
  • Here's to your success!
    • View Profile
    • Jonathan Leger's Blog
Re: TBS API - How to replace only phrases instead of words?
« Reply #5 on: March 07, 2012, 08:19:39 AM »
Just set the minphrasewords variable to 1

Sent from my LG-MS910 using Tapatalk

Re: TBS API - How to replace only phrases instead of words?
« Reply #6 on: March 07, 2012, 07:29:33 PM »
Hi Jon,

Great, that works for me. Thanks a lot!

Cheers.

Re: TBS API - How to replace only phrases instead of words?
« Reply #7 on: July 19, 2012, 01:32:01 AM »
I just had a question on the helpdesk about this and it looks like the declaration should read:

$data['minphrasewords'] = 1;

The person posting the ticket had used

$data['minphrasewords'] = '1';

and that didn't work for them.

I've tested it on my system and $data['minphrasewords'] = 1; seems to work fine.