i am building a social network website using social engine script. www.bettingscores.com.
The project is about soccer statistics and bets.
I want from xml feeds that are specific format to create a database that stores all this information and after i have the information stored in my database i want to create automated text lines for the upcoming fixtures of the matches. There are about 25 criteria that generate same quantity text lines.
A sample criteria is this
This rule should find the last match played for the home or visitor team and according to the following results
Win with 1 goal difference
Win with 2 goals difference
Win with 3-4 goals difference
Win with 5 goals and more difference
Draw 0-0 & 1-1
Draw 3-3 and more
Loss with 1 goal difference
Loss with 2 goals difference
Loss with 3-4 goals difference
Loss with 5 goals and more difference
I am going to have 15 different versions of sentences for every possible outcome and the engine should find 1 random each time to bring as the text line. Also the text lines will have variables that i am going to use in order to complete these sentences, like
Home Team Name, Visitor Team Name, Points in the league etc. These variables are going to be about 40 - 50.
A sample of such sentence is this
Last match was a win for the team with 1 goal.
"[HomeTeam] has managed to win with [LastScore] against [LastOpponent]."
This is an amateur project for leasure and hobby so i am talking about low budget. On the other hand i want to be specific with the milestones.