Jump to content

Talk:Last letter-first letter: Difference between revisions

25 elements output. Modified list.
(25 elements output. Modified list.)
Line 48:
::::: That was probably not a bad thing -- embedded spaces in name does not change the results which would be found, it only changes how they would be displayed. (And, it can make representing and parsing a list of names easier since without embedded spaces you only need spaces for name delimiters.) --[[User:Rdm|Rdm]] 10:58, 8 June 2011 (UTC)
:::::: They were two separate names. Check it against Wikipedia, but trapinch and treecko are two different pokemon, but were written as trapinchtreecko in the list above. (As far as I know, no pokemon has a two-part name.) [[User:MagiMaster|MagiMaster]] 11:10, 8 June 2011 (UTC)
::::::: In my own shortlist I've renamed "porygon2" to "porygon_two". Also, I'm reading the list in from a CRLF delimited file so in the full-length list I can have "Nidoran male", "Mister Mime", "Mime Junior", "Porygon two" etc. I'm still trying to get this backtracking stuff figured out, but out of the short list (as modified) my javascript has generated a 25 element list:
 
<pre>Yamask, Kricketune, Emboar, Rufflet, Trapinch,
Heatmor, Relicanth, Haxorus, Seaking, Girafarig,
Gulpin, Nosepass, Simisear, Registeel, Loudred,
Darmanitan, Noctowl, Landorus, Spoink, Kangaskhan,
Nidoking, Gabite, Exeggcute, Emolga, Audino</pre>
On the full list I've managed a 190 element transit. [[User:Axtens|Axtens]] 08:38, 9 June 2011 (UTC)
===Concatenated names===
To get the list of names I cut-n-pasted the wp table into openofice calc; selected the column and pasted it into an editor then turned it into a multi-line string that I could then names.strip().split() in Python to get each name. When told about the male and female characters still left in the names I thought I took the un-split names and removed any character that was not an ASCII alphanumeric or a space ... Oh-oh I know where I went wrong. The names were arranged as several lines of around 8 words each and I did not preserve newlines so the last word of a line and the first word of the next line would become concatenated. Sorry for that. And thanks for the hand edits - I'll update the Python in the next ~24 hours. --[[User:Paddy3118|Paddy3118]] 14:16, 8 June 2011 (UTC)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.