Mixing 2 syllable combinations in place of 1 letter ?

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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: 9801
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

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

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: 5435
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: 9251
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

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”