Showing posts with label pioneer woman. Show all posts
Showing posts with label pioneer woman. Show all posts

Saturday, April 27, 2013

Update to "Please Don't Grab!"

After someone challenged me to write some type of program/script to find the frequency of the word grab occurring in a webpage I have an update for you.

The following two lines get the job done: 
$str = file_get_contents('URL'); //gets the contents of the webpage

print_r(array_count_values(str_word_count(strip_tags(strtolower($str)), 1))); //prints a list of all words found

The second line:
  •  converts all words to lower case using strtolower
  •  then it uses strip_tags to remove the html tags
  • str_word_count returns information about words used in a string
  • and array_count_values counts the values of the array
I copied and pasted a few URLs from the Pioneer Woman's website and ran the script to produce the following:

Link: http://thepioneerwoman.com/cooking/2010/08/fried-round-steak/ found 1 occurrence
Link: http://thepioneerwoman.com/cooking/2010/08/homemade-cinnamon-bread/ found 1 occurrence
Link: http://thepioneerwoman.com/cooking/2010/07/16-minute-meal-3-mini-meatball-sandwiches/ found 4 occurrences
Link: http://thepioneerwoman.com/cooking/2010/04/the-right-way-and-the-wrong-way-to-make-cinnamon-toast/ found 2 occurrences
Link: http://thepioneerwoman.com/cooking/2010/04/sloppy-joes/ found 0 occurrences
Link http://thepioneerwoman.com/cooking/2010/02/homemade-glazed-doughnuts/ found 2 occurrences
Link http://thepioneerwoman.com/cooking/2010/01/homemade-chicken-and-noodles/ found 2 occurrences
Link: http://thepioneerwoman.com/cooking/2010/01/perfect-potatoes-au-gratin/ found 1 occurrence
Link: http://thepioneerwoman.com/cooking/2009/10/simple-pan-fried-pork-chops found 1 occurrence
Link: http://thepioneerwoman.com/cooking/2009/10/simple-pan-fried-pork-chops/ found 1 occurrence
Link: http://thepioneerwoman.com/cooking/2009/07/vanilla-bean-ice-cream/ found 1 occurrence
Link: http://thepioneerwoman.com/cooking/2009/07/edna-maes-escalloped-cabbage-recipe/ found 0 occurrencesLink: http://thepioneerwoman.com/cooking/2009/05/perfect-pancakes/ found 1 occurrence
Link: http://thepioneerwoman.com/cooking/2009/04/creamed-spinach-to-die-for/ found 1 occurrence
Link: http://thepioneerwoman.com/cooking/2009/04/macaroni-cheese/ found 0 occurrences
Link: http://thepioneerwoman.com/cooking/2009/03/bbq-meatballs-comfort-food-to-the-max/ found 1 occurrence
Link: http://thepioneerwoman.com/cooking/2009/02/spreads-my-brothers-favorite-cookie/ found 3 occurrences

 These 17 URLs found a total of 22 occurrences of the word grab.

Saturday, April 20, 2013

Please Don't Grab!

Because English is my Second Language, ESL, I often make mistakes when I speak and write. I always have to proofread what I write and always the first draft is hideous, the second is marginal, the third is acceptable and... well, you get my point.

As a novice cook I like to browse the Internet for ideas and recipes and I watch certain TV shows and channels on a regular basis for the same reason. There are some TV personalities that use certain words and phrases over and over and over.

For example you can catch Guy Fiery say things like:
  • out-of-the-park,
  • mega-super,
  • outta-bounds
If you watch Rachael Ray
you will notice that she uses the word grab constantly:
  • she goes to the refrigerator to "grab some milk,"
  • "I'll grab the spoon," etc.
I went to google.com and searched for the word grab within the rachaelray.com domain name. It's a little tricky but you have to go to google.com, enter the search term, the word grab in this case, then you will either press the search button or press the enter key for google to do the search. After google return the results, scroll all the way to the bottom of the page and click on the Advanced search link. In the Advance search options look for the site or domain area and enter the domain, rachaelray.com in my case, and press the Advanced Search button. Google will then go to rachaelray.com and return all pages containing the word grab. Google reported the word grab was found in 133 pages in rachaelray.com. Here are some links and excerpts:
Then I listened to the the TV show The Pioneer Woman on the Food channel and she too "grabs" every chance she gets. I went to her website, thepioneerwoman.com, and there too she uses the word grab VERY often, much more than Rachael Ray. A google advanced search shows that grab appears in 5,250 pages! Wow! Pioneer Girl, slow down!