<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=Talk%3ATo_item</id>
	<title>Talk:To item - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=Talk%3ATo_item"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Talk:To_item&amp;action=history"/>
	<updated>2026-04-24T20:58:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Talk:To_item&amp;diff=7165&amp;oldid=prev</id>
		<title>Bale at 06:48, 16 September 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Talk:To_item&amp;diff=7165&amp;oldid=prev"/>
		<updated>2010-09-16T06:48:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:48, 16 September 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l31&quot;&gt;Line 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 31:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You&amp;#039;re overanalyzing a very simple problem. It&amp;#039;s just fuzzy matching. $item[] is attempting to fuzzy match an item name. In many cases the familiar hatchling will match the partial name. For instance barrrnacle and star starfish are the names of both the familiar and the hatchling, differentiated only by upper-case letters for the familiar. In those cases it produces a familiar hatchling. IF it doesn&amp;#039;t match anything, like BRICKO chick (whose hatchling is a BRICKO egg) then it returns $item[none]. The problem with $item[Leprechaun] is that it could match either the tiny plastic leprechaun, leprechaun hatchling so it returns $item[none]. I suspect that is what is going on. --[[User:Bale|Bale]] 05:54, 16 September 2010 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You&amp;#039;re overanalyzing a very simple problem. It&amp;#039;s just fuzzy matching. $item[] is attempting to fuzzy match an item name. In many cases the familiar hatchling will match the partial name. For instance barrrnacle and star starfish are the names of both the familiar and the hatchling, differentiated only by upper-case letters for the familiar. In those cases it produces a familiar hatchling. IF it doesn&amp;#039;t match anything, like BRICKO chick (whose hatchling is a BRICKO egg) then it returns $item[none]. The problem with $item[Leprechaun] is that it could match either the tiny plastic leprechaun, leprechaun hatchling so it returns $item[none]. I suspect that is what is going on. --[[User:Bale|Bale]] 05:54, 16 September 2010 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Forgot to mention one important thing. In case you&#039;re wondering why {{f|to_item}} would do fuzzy matching on a $familiar, please note that the parameter is a string. The familiar&#039;s name is converted to a string and then that string is converted to an item. Ta-Daa! --[[User:Bale|Bale]] 06:48, 16 September 2010 (UTC)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key kolmafia_wiki:diff:1.41:old-7164:rev-7165:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Bale</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Talk:To_item&amp;diff=7164&amp;oldid=prev</id>
		<title>Bale: fuzzy matching</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Talk:To_item&amp;diff=7164&amp;oldid=prev"/>
		<updated>2010-09-16T05:54:29Z</updated>

		<summary type="html">&lt;p&gt;fuzzy matching&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:54, 16 September 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l28&quot;&gt;Line 28:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;That&amp;#039;s weird, though. If {{f|to_item}} is actually using the familiar name to match the item, why does it return &amp;lt;code&amp;gt;$item[none]&amp;lt;/code&amp;gt; for the Leprechaun (tiny plastic leprechaun, leprechaun hatchling) or the Stab Bat (rewinged stab bat, tiny plastic stab bat)? Another mysterious quirks of ASH. --[[User:PhilmASTErpLus|PhilmASTErpLus]] 00:58, 16 September 2010 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;That&amp;#039;s weird, though. If {{f|to_item}} is actually using the familiar name to match the item, why does it return &amp;lt;code&amp;gt;$item[none]&amp;lt;/code&amp;gt; for the Leprechaun (tiny plastic leprechaun, leprechaun hatchling) or the Stab Bat (rewinged stab bat, tiny plastic stab bat)? Another mysterious quirks of ASH. --[[User:PhilmASTErpLus|PhilmASTErpLus]] 00:58, 16 September 2010 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;You&#039;re overanalyzing a very simple problem. It&#039;s just fuzzy matching. $item[] is attempting to fuzzy match an item name. In many cases the familiar hatchling will match the partial name. For instance barrrnacle and star starfish are the names of both the familiar and the hatchling, differentiated only by upper-case letters for the familiar. In those cases it produces a familiar hatchling. IF it doesn&#039;t match anything, like BRICKO chick (whose hatchling is a BRICKO egg) then it returns $item[none]. The problem with $item[Leprechaun] is that it could match either the tiny plastic leprechaun, leprechaun hatchling so it returns $item[none]. I suspect that is what is going on. --[[User:Bale|Bale]] 05:54, 16 September 2010 (UTC)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bale</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Talk:To_item&amp;diff=7163&amp;oldid=prev</id>
		<title>PhilmASTErpLus: Created page with &#039;Surprisingly, {{f|to_item}} works on familiars, but with unexpected results. For many familiars, it returns the hatchling of the given familiar:  &lt;blockquote&gt;Fuzzy Dice, Spooky P…&#039;</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Talk:To_item&amp;diff=7163&amp;oldid=prev"/>
		<updated>2010-09-16T00:58:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;Surprisingly, {{f|to_item}} works on familiars, but with unexpected results. For many familiars, it returns the hatchling of the given familiar:  &amp;lt;blockquote&amp;gt;Fuzzy Dice, Spooky P…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Surprisingly, {{f|to_item}} works on familiars, but with unexpected results. For many familiars, it returns the hatchling of the given familiar:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Fuzzy Dice, Spooky Pirate Skeleton, Barrrnacle, Blood-Faced Volleyball, Star Starfish, Hovering Sombrero, Ghost Pickle on a Stick, Jill-O-Lantern, Hand Turkey, Hanukkimbo Dreidl, Baby Yeti, Clockwork Grapefruit, Inflatable Dodecapede, Pygmy Bugbear Shaman, Attention-Deficit Demon, Cymbal-Playing Monkey, Sweet Nutcracker, Pet Rock, Snowy Owl, Teddy Bear, Ninja Pirate Zombie Robot, Wind-up Chattering Teeth, Astral Badger, Comma Chameleon, Misshapen Animal Skeleton, Scary Death Orb, Jitterbug, Nervous Tick, Reassembled Blackbird, Evil Teddy Bear, Toothsome Rock, Dandy Lion, O.A.F., Exotic Parrot, Wizard Action Figure, Casagnova Gnome, Hunchbacked Minion, Crimbo P. R. E. S. S. I. E., Bulky Buddy Box, Teddy Borg, RoboGoose, El Vibrato Megadrone, Adorable Seal Larva, Hobo Monkey, Uniclops, Psychedelic Bear, Mutant Fire Ant, Mutant Cactus Bud, Mutant Gila Monster, Cuddlefish, Pair of Ragged Claws, Magic Dragonfish, Midget Clownfish, Syncopated Turtle, Grinning Turtle, Wereturtle, Rock Lobster, Chauvinist Pig, Jack-in-the-Box, Pottery Barn Owl&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, there were several interesting exceptions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Mosquito =&amp;gt; tiny plastic mosquito&lt;br /&gt;
Levitating Potato =&amp;gt; tiny plastic levitating potato&lt;br /&gt;
Angry Goat =&amp;gt; tiny plastic angry goat&lt;br /&gt;
Howling Balloon Monkey =&amp;gt; tiny plastic howling balloon monkey&lt;br /&gt;
Grue =&amp;gt; tiny plastic grue&lt;br /&gt;
Baby Gravy Fairy =&amp;gt; tiny plastic baby gravy fairy&lt;br /&gt;
Cocoabo =&amp;gt; tiny plastic cocoabo&lt;br /&gt;
Coffee Pixie =&amp;gt; tiny plastic coffee pixie&lt;br /&gt;
Cheshire Bat =&amp;gt; tiny plastic Cheshire bat&lt;br /&gt;
MagiMechTech MicroMechaMech =&amp;gt; stuffed MagiMechTech MicroMechaMech&lt;br /&gt;
Flaming Gravy Fairy =&amp;gt; stuffed flaming gravy fairy&lt;br /&gt;
Frozen Gravy Fairy =&amp;gt; stuffed frozen gravy fairy&lt;br /&gt;
Stinky Gravy Fairy =&amp;gt; stuffed stinky gravy fairy&lt;br /&gt;
Spooky Gravy Fairy =&amp;gt; stuffed spooky gravy fairy&lt;br /&gt;
Sleazy Gravy Fairy =&amp;gt; stuffed sleazy gravy fairy&lt;br /&gt;
Ancient Yuletide Troll =&amp;gt; tiny plastic ancient yuletide troll&lt;br /&gt;
Stocking Mimic =&amp;gt; tiny plastic stocking mimic&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Perhaps they are chosen by matching the familiar name with the item name. For reference, the list of familiars for whom {{f|to_item}} returns nothing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Leprechaun, Sabre-Toothed Lime, Stab Bat, Ghuol Whelp, Killer Bee, Whirling Maple Leaf, Crimbo Elf, Feather Boa Constrictor, Emo Squid, Personal Raincloud, Doppelshifter, Temporal Riftlet, Wild Hare, Spirit Hobo, Origami Towel Crane, Ninja Snowflake, Penguin Goodfella, Jumpsuited Hound Dog, Green Pixie, Ragamuffin Imp, Gluttonous Green Ghost, Mad Hatrack, Untamed Turtle, Animated Macaroni Duck, Pet Cheezling, Autonomous Disco Ball, Mariachi Chihuahua, Llama Lama, Cotton Candy Carnie, Disembodied Hand, Black Cat, Baby Mutant Rattlesnake, Sugar Fruit Fairy, Imitation Crab, Frumious Bandersnatch, Purse Rat, Baby Sandworm, Slimeling, He-Boulder, Urchin Urchin, Grouper Groupie, Squamous Gibberer, Dancing Frog, Snow Angel, BRICKO chick, Baby Bugged Bugbear, Underworld Bonsai, Rogue Program, Mini-Hipster&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That&amp;#039;s weird, though. If {{f|to_item}} is actually using the familiar name to match the item, why does it return &amp;lt;code&amp;gt;$item[none]&amp;lt;/code&amp;gt; for the Leprechaun (tiny plastic leprechaun, leprechaun hatchling) or the Stab Bat (rewinged stab bat, tiny plastic stab bat)? Another mysterious quirks of ASH. --[[User:PhilmASTErpLus|PhilmASTErpLus]] 00:58, 16 September 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>PhilmASTErpLus</name></author>
	</entry>
</feed>