Wolfram Language

Open live version

Deploy an Age-Guessing Website

Make a website that guesses peoples ages from their names.


code

X

Specify the name in a URL query string rather than in a form:

X

how it works

This example was live-coded at the Wolfram Research booth at SXSW, March 11, 2014.

The MostCommonAge predictor for given names is built into the Wolfram Language. It analyzes statistical distributions of ages to determine the most common age for a given name:

In[1]:=
X
Out[1]=

Make a website that gives the most common age of a name entered into a form. Click the link in the resulting CloudObject to visit the website:

In[2]:=
X
Out[2]=

Alternatively, you can make a URL whose query string specifies the name:

In[3]:=
X
Out[3]=

This link visits the URL with the name Erin:

In[4]:=
X
Out[4]=