babyname
Private
Content
35 lines{=(comment):spaces names preserving spaces}
{=(uspc):{replace(, ):{replace( ,╬):{user}}}}
{=(tspc):{replace(, ):{replace( ,╬):{target}}}}
{=(comment):finds the approximate middle of each name, taking into account the offset made during spacing}
{=(uhalf):{m:trunc(({index(end):{uspc} end}+3)/2)}}
{=(thalf):{m:trunc(({index(end):{tspc} end}+3)/2)}}
{=(vowels):a e i o u}
{=(comment):checks for vowel presence in the 3 characters centered around the middle character, in reverse order}
{=(ucchk):{contains({uspc({m:trunc({uhalf}+1)})}):{vowels}} {contains({uspc({uhalf})}):{vowels}} {contains({uspc({m:trunc({uhalf}-1)})}):{vowels}}}
{=(tcchk):{contains({tspc({m:trunc({thalf}+1)})}):{vowels}} {contains({tspc({thalf})}):{vowels}} {contains({tspc({m:trunc({thalf}-1)})}):{vowels}}}
{=(comment):checks for vowel presence in the 3 characters centered around the middle character, in regular order}
{=(uvchk):{contains({uspc({m:trunc({uhalf}-1)})}):{vowels}} {contains({uspc({uhalf})}):{vowels}} {contains({uspc({m:trunc({uhalf}+1)})}):{vowels}}}
{=(tvchk):{contains({tspc({m:trunc({thalf}-1)})}):{vowels}} {contains({tspc({thalf})}):{vowels}} {contains({tspc({m:trunc({thalf}+1)})}):{vowels}}}
{=(comment):finds the consonant split for the user and target; first character in reverse order that is not a vowel}
{=(ucsplt):{if({contains(false):{ucchk}}==true):{m:trunc({uhalf}+1-{index(false):{ucchk}})}|{uhalf}}}
{=(tcsplt):{if({contains(false):{tcchk}}==true):{m:trunc({thalf}+1-{index(false):{tcchk}})}|{thalf}}}
{=(comment):finds the vowel split for the user and target; first character in regular order that is a vowel}
{=(uvsplt):{if({contains(true):{uvchk}}==true):{m:trunc({uhalf}-1+{index(true):{uvchk}})}|{uhalf}}}
{=(tvsplt):{if({contains(true):{tvchk}}==true):{m:trunc({thalf}-1+{index(true):{tvchk}})}|{thalf}}}
{=(comment):puts the names together}
{=(comment):name1 is user/target, with user ending on last consonant in approx middle of name and target starting with first vowel in approx middle of name}
{=(comment):name2 is target/user, with target ending on last consonant in approx middle of name and user starting with first vowel in approx middle of name}
{=(name1):{replace(╬, ):{join():{uspc(+{ucsplt})}{tspc({tvsplt}+)}}}}
{=(name2):{replace(╬, ):{join():{tspc(+{tcsplt})}{uspc({uvsplt}+)}}}}
{break({user(id)}=={target(id)}):Tag someone in order for the command to work.}
{user} and {target}'s baby might be named:
> {name1}
or
> {name2}Raw JSON
{
"id": 247880,
"created_at": "2020-07-13T03:56:46.000Z",
"tag_name": "babyname",
"nsfw": false,
"owner_id": "508125232343547935",
"uses": 5,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "",
"hidden": false,
"guild_id": "509041741526204416",
"sharer": "508125232343547935",
"content": "{=(comment):spaces names preserving spaces}\n{=(uspc):{replace(, ):{replace( ,╬):{user}}}}\n{=(tspc):{replace(, ):{replace( ,╬):{target}}}}\n\n{=(comment):finds the approximate middle of each name, taking into account the offset made during spacing}\n{=(uhalf):{m:trunc(({index(end):{uspc} end}+3)/2)}}\n{=(thalf):{m:trunc(({index(end):{tspc} end}+3)/2)}}\n\n{=(vowels):a e i o u}\n{=(comment):checks for vowel presence in the 3 characters centered around the middle character, in reverse order}\n{=(ucchk):{contains({uspc({m:trunc({uhalf}+1)})}):{vowels}} {contains({uspc({uhalf})}):{vowels}} {contains({uspc({m:trunc({uhalf}-1)})}):{vowels}}}\n{=(tcchk):{contains({tspc({m:trunc({thalf}+1)})}):{vowels}} {contains({tspc({thalf})}):{vowels}} {contains({tspc({m:trunc({thalf}-1)})}):{vowels}}}\n\n{=(comment):checks for vowel presence in the 3 characters centered around the middle character, in regular order}\n{=(uvchk):{contains({uspc({m:trunc({uhalf}-1)})}):{vowels}} {contains({uspc({uhalf})}):{vowels}} {contains({uspc({m:trunc({uhalf}+1)})}):{vowels}}}\n{=(tvchk):{contains({tspc({m:trunc({thalf}-1)})}):{vowels}} {contains({tspc({thalf})}):{vowels}} {contains({tspc({m:trunc({thalf}+1)})}):{vowels}}}\n\n{=(comment):finds the consonant split for the user and target; first character in reverse order that is not a vowel}\n{=(ucsplt):{if({contains(false):{ucchk}}==true):{m:trunc({uhalf}+1-{index(false):{ucchk}})}|{uhalf}}}\n{=(tcsplt):{if({contains(false):{tcchk}}==true):{m:trunc({thalf}+1-{index(false):{tcchk}})}|{thalf}}}\n\n{=(comment):finds the vowel split for the user and target; first character in regular order that is a vowel}\n{=(uvsplt):{if({contains(true):{uvchk}}==true):{m:trunc({uhalf}-1+{index(true):{uvchk}})}|{uhalf}}}\n{=(tvsplt):{if({contains(true):{tvchk}}==true):{m:trunc({thalf}-1+{index(true):{tvchk}})}|{thalf}}}\n\n{=(comment):puts the names together}\n{=(comment):name1 is user/target, with user ending on last consonant in approx middle of name and target starting with first vowel in approx middle of name}\n{=(comment):name2 is target/user, with target ending on last consonant in approx middle of name and user starting with first vowel in approx middle of name}\n{=(name1):{replace(╬, ):{join():{uspc(+{ucsplt})}{tspc({tvsplt}+)}}}}\n{=(name2):{replace(╬, ):{join():{tspc(+{tcsplt})}{uspc({uvsplt}+)}}}}\n{break({user(id)}=={target(id)}):Tag someone in order for the command to work.}\n{user} and {target}'s baby might be named:\n> {name1}\nor\n> {name2}",
"embed": "{}",
"last_fetched": "2026-10-20T21:55:50.550Z"
}