<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Generate a nickname from a real name in php</title>
	<link>http://ask.metafilter.com/95631/Generate-a-nickname-from-a-real-name-in-php/</link>
	<description>Comments on Ask MetaFilter post Generate a nickname from a real name in php</description>
	<pubDate>Thu, 03 Jul 2008 03:30:30 -0800</pubDate>
	<lastBuildDate>Thu, 03 Jul 2008 03:30:30 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Generate a nickname from a real name in php</title>
		<link>http://ask.metafilter.com/95631/Generate-a-nickname-from-a-real-name-in-php</link>	
		<description>I am looking for a way to generate nicknames from real names, preferably in PHP.  &lt;br /&gt;&lt;br /&gt; I am setting up a community website that uses facebook for autentication. Facebook sends me the name for every new user but I dont want to show it in full to the whole world so I need to give each user a nickname.&lt;br&gt;
&lt;br&gt;
Of course the user could choose a name themselfs but i I would prefer to have the system giving them a name that sounds a bit like their real name but obfuscates it enough to make it non recognisable online. Preferably it will also be human spokable without any numbers or such.&lt;br&gt;
&lt;br&gt;
I was toying with the idea to take the first syllable in the users first name and then add something random to it. Extracting syllables though seem pretty hard. Anyone have other ideas or even better a finished class or script for this thing.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.95631</guid>
		<pubDate>Thu, 03 Jul 2008 03:11:43 -0800</pubDate>
		<dc:creator>ilike</dc:creator>
		
			<category>php</category>
		
	</item> <item>
		<title>By: katrielalex</title>
		<link>http://ask.metafilter.com/95631/Generate-a-nickname-from-a-real-name-in-php#1395792</link>	
		<description>Hmm... could you roughly approximate symbols by grabbing up to and one past the first vowel? For example: &quot;metafilter&quot; =&amp;gt; &quot;met&quot;; &quot;katrielalex&quot; =&amp;gt; &quot;kat&quot;. Then just choose any word that begins with a vowel and tack that on the end.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.95631-1395792</guid>
		<pubDate>Thu, 03 Jul 2008 03:30:30 -0800</pubDate>
		<dc:creator>katrielalex</dc:creator>
	</item><item>
		<title>By: Leon</title>
		<link>http://ask.metafilter.com/95631/Generate-a-nickname-from-a-real-name-in-php#1395808</link>	
		<description>I think you&apos;ll get a reasonable approximation of the first syllable of a word by taking everything up to the first consonant after a vowel. Thus:&lt;br&gt;
&lt;br&gt;
metafilter -&amp;gt; met&lt;br&gt;
leon -&amp;gt; leon&lt;br&gt;
&lt;br&gt;
I&apos;m sure there are words that break that pattern (ibuprofen?), plus I think different accents are going to split syllables differently (his-toric or hist-oric), and silent letters are going to be special cases (john) but it&apos;s good enough for a website.&lt;br&gt;
&lt;br&gt;
(looks like I came to the same solution as katrielalex).</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.95631-1395808</guid>
		<pubDate>Thu, 03 Jul 2008 04:14:38 -0800</pubDate>
		<dc:creator>Leon</dc:creator>
	</item><item>
		<title>By: mkultra</title>
		<link>http://ask.metafilter.com/95631/Generate-a-nickname-from-a-real-name-in-php#1395856</link>	
		<description>Stick with users choosing their own username. The problem with an auto-generatic system like the one proposed above is that lots of people have the same first name. What do you do with Jonathan A vs. Jonathan B? The technical answer is usually, &quot;add another letter&quot;, so you wind up with &quot;Jon&quot; and &quot;Jona&quot;, but then it becomes difficult for the community to know who&apos;s who.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.95631-1395856</guid>
		<pubDate>Thu, 03 Jul 2008 05:40:47 -0800</pubDate>
		<dc:creator>mkultra</dc:creator>
	</item><item>
		<title>By: nnk</title>
		<link>http://ask.metafilter.com/95631/Generate-a-nickname-from-a-real-name-in-php#1395865</link>	
		<description>Would it be too much work to use an &lt;a href=&quot;http://wordsmith.org/anagram/&quot;&gt;anagram generator?&lt;/a&gt; -- or would that not be cryptic enough?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.95631-1395865</guid>
		<pubDate>Thu, 03 Jul 2008 05:51:13 -0800</pubDate>
		<dc:creator>nnk</dc:creator>
	</item><item>
		<title>By: maryrosecook</title>
		<link>http://ask.metafilter.com/95631/Generate-a-nickname-from-a-real-name-in-php#1395873</link>	
		<description>Can you use the first part of their email address (the bit before the email).  This is likely to be unique, personalised and relatively anonymous.  If you get any clashes, append an ascending number to the username.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.95631-1395873</guid>
		<pubDate>Thu, 03 Jul 2008 06:02:53 -0800</pubDate>
		<dc:creator>maryrosecook</dc:creator>
	</item><item>
		<title>By: seanyboy</title>
		<link>http://ask.metafilter.com/95631/Generate-a-nickname-from-a-real-name-in-php#1395886</link>	
		<description>I agree with the above, but it&apos;s worth using a nickname lookup for common names. e.g. Andrew becomes Andy, not And. If you keep your nicknames in a database table, you can clean up any new names &amp;amp; change the proposed name to nickname for tricky &amp;amp; yet common names as a periodic task.&lt;br&gt;
&lt;br&gt;
To get started, I googled &quot;Common Nicknames&quot;.&lt;br&gt;
&lt;a href=&quot;http://deron.meranda.us/data/nicknames.txt&quot;&gt;http://deron.meranda.us/data/nicknames.txt&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://www.genealogytoday.com/genealogy/enoch/nicknames.html&quot;&gt;http://www.genealogytoday.com/genealogy/enoch/nicknames.html&lt;/a&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.95631-1395886</guid>
		<pubDate>Thu, 03 Jul 2008 06:24:45 -0800</pubDate>
		<dc:creator>seanyboy</dc:creator>
	</item><item>
		<title>By: seanyboy</title>
		<link>http://ask.metafilter.com/95631/Generate-a-nickname-from-a-real-name-in-php#1395891</link>	
		<description>Also : If you&apos;re not that bothered about making a name which matches the real name, you can use something like &lt;a href=&quot;http://gangstaname.com/pirate_name.php&quot;&gt;this&lt;/a&gt;&lt;br&gt;
I assume it uses a hash of your name to seed a pseudo-random number generator.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.95631-1395891</guid>
		<pubDate>Thu, 03 Jul 2008 06:32:10 -0800</pubDate>
		<dc:creator>seanyboy</dc:creator>
	</item><item>
		<title>By: thirteenkiller</title>
		<link>http://ask.metafilter.com/95631/Generate-a-nickname-from-a-real-name-in-php#1395996</link>	
		<description>What about Sean and Neil and Doug and Beiauan?  The first syllable script would just grab their whole name.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.95631-1395996</guid>
		<pubDate>Thu, 03 Jul 2008 08:05:51 -0800</pubDate>
		<dc:creator>thirteenkiller</dc:creator>
	</item><item>
		<title>By: danOstuporStar</title>
		<link>http://ask.metafilter.com/95631/Generate-a-nickname-from-a-real-name-in-php#1396065</link>	
		<description>I agree somewhat with mkultra.  Will be people able to at least choose a new nick if they don&apos;t like the one assigned to them?&lt;br&gt;
&lt;br&gt;
For the assigned name, what about taking their name and replacing all the vowels with a different randomly chosen one? Love, dunastaperstir</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.95631-1396065</guid>
		<pubDate>Thu, 03 Jul 2008 08:56:06 -0800</pubDate>
		<dc:creator>danOstuporStar</dc:creator>
	</item><item>
		<title>By: cCranium</title>
		<link>http://ask.metafilter.com/95631/Generate-a-nickname-from-a-real-name-in-php#1396178</link>	
		<description>Poking around some &lt;a href=&quot;http://en.wikipedia.org/wiki/Hyphenation_algorithm&quot;&gt;hyphenation algorithms&lt;/a&gt; might net you some good results, although I think a lookup table as seanyboy suggests is the best solution.&lt;br&gt;
&lt;br&gt;
If this is for a commercial project, I would dig into what usage is permitted by those lists.  This kind of data often has value.  There&apos;s no declaration of copyright on his first link, and since it&apos;s from census data it theoretically can be reproduced.  The second expressly forbids use of the listing.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.95631-1396178</guid>
		<pubDate>Thu, 03 Jul 2008 09:54:34 -0800</pubDate>
		<dc:creator>cCranium</dc:creator>
	</item>
	</channel>
</rss>
