# How to create a 'suggestion' app.?

**URL:** <https://www.ruby-forum.com/t/how-to-create-a-suggestion-app/192247>\
**Category:** Rails\
**Created:** [July 27, 2010, 12:47am UTC](https://www.ruby-forum.com/t/how-to-create-a-suggestion-app/192247 "2010-07-27T00:47:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubyonRails\_newbie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Post date:** [July 27, 2010, 12:47am UTC](https://www.ruby-forum.com/t/how-to-create-a-suggestion-app/192247/1 "2010-07-27T00:47:32Z")

</div>

Hi there,

I’d like to have a go at building an app whereby people fill in a  
series of questions based on their ski/snowboard taste etc…

Once completed, the app suggests a specific board for them to  
purchase.

Now the buying part isn’t important, but the isea of being able to  
suggest a ski or snowboard is what I want…

Any ideas on how to get started?

thanks

---

<div class="post-metadata">

**Author:** ![RubyonRails\_newbie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Post date:** [July 27, 2010, 7:41am UTC](https://www.ruby-forum.com/t/how-to-create-a-suggestion-app/192247/2 "2010-07-27T07:41:18Z")

</div>

Every answer for the question should have their own score. Map the total  
score to the specific board. That’s it.  
It’s something like dummy tests in the newspapers. 70-100 ~\> Board 1  
40-70  
~\> Board 2 0-40 ~\> Board 3

---

<div class="post-metadata">

**Author:** ![RubyonRails\_newbie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9d8465/32.png) [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Post date:** [July 27, 2010, 4:40pm UTC](https://www.ruby-forum.com/t/how-to-create-a-suggestion-app/192247/3 "2010-07-27T16:40:56Z")

</div>

RubyonRails\_newbie wrote:

> Any ideas on how to get started?

So, suppose you have some ratings on 10 different snowboards, each with  
an ‘appropriateness’ score for some dimension of a snowboards attributes  
(good for tricks, overall speed, degree of control, length, cost - I  
don’t know what’s important, that’s your domain knowledge, not mine). [1  
model for the boards]

I assume you also want to have some questions that get at the notion of  
how important each attribute is to a potential buyer. Likert scales seem  
appropriate - these are the typical four or five point scales, such as:  
Very Important, Important, No Opinion, Unimportant, Couldn’t Care Less.  
Four point scales force a choice on the plus or minus side, five point  
scales allow a ‘no opinion’ in the middle. [another model for the your  
questions]

When the user submits, score each board on each dimension, summing its  
results, then recommend the board with the highest score (assuming more  
important == higher value). I’d probably display the top three boards,  
each with their score.

Now figuring a board’s score is where the interesting stuff lies, IMO.  
You probably want to start with a simple system for combining the board  
appropriateness on a dimension with the user’s rating of importance. An  
easy approach up front is to just multiply the board appropriateness  
score by the user’s importance score. If a user rates something as very  
important, and a board is supposed to be great for that, then that  
should count highly into the overall score. If the user thinks an  
attribute is important, but the board is rated as mediocre on that  
attribute, then it should contribute less to the overall score. It will  
probably take some tinkering and judgment to come up with decent scores.

Have fun!
