Mixing 2 syllable combinations in place of 1 letter ?

Interested adding externals/plugins from LiveCode and third parties to your LiveCode projects? This is the place to talk about them.

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
teriibi
Posts: 254
Joined: Mon Nov 13, 2017 3:49 pm
Location: Bolivia

Mixing 2 syllable combinations in place of 1 letter ?

Post by teriibi » Mon Dec 18, 2017 8:49 pm

Hi,
I´m looking for a simple way to make new words using 2 letters combination.
so far I only make a 1 letter mxing.

$str2 = 'matepa';
$shuffled1 = str_shuffle($str1);
word = $shuffled1;

So from ("ti","mo","ty)
I´d like to make timoty,motity,tytimo..etc..
and not ttomyi (1 letter mixed.

anyone knows how ?
ANTHKS !!! :P

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6145
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Mixing 2 syllable combinations in place of 1 letter ?

Post by FourthWorld » Mon Dec 18, 2017 9:21 pm

What language are you using?
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2712
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Mixing 2 syllable combinations in place of 1 letter ?

Post by richmond62 » Mon Dec 18, 2017 9:34 pm

Oh, Whacko: factorials . . .

First you'll need to mess around with factorials to work out how many combinations are possible:
Ouch.png
The you'll have to get into permutations: viewtopic.php?f=8&t=2629

bogs
Posts: 2178
Joined: Sat Feb 25, 2017 10:45 pm

Re: Mixing 2 syllable combinations in place of 1 letter ?

Post by bogs » Mon Dec 18, 2017 10:55 pm

FourthWorld wrote:
Mon Dec 18, 2017 9:21 pm
What language are you using?
Looks like some form of basic, but, I really came to say that line is one of my favorites from "The Expendables" where Harrison Ford says "WHAT LANGUAGE IS THAT?!" when Jason Statham was talking :lol:
Image

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 2712
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria
Contact:

Re: Mixing 2 syllable combinations in place of 1 letter ?

Post by richmond62 » Tue Dec 19, 2017 11:42 am

What language are you using?
Dunno: but not the one these forums are dedicated to.

Post Reply

Return to “Using Externals and Plugins”