array('US Goverment Sources', '#99FFFF',0), '1'=>array('Other athorative sources', '#FFBFBF',0), '2'=>array('un-athoratative sources', '#E1C6FF',0), '3'=>array('Author / sourceless account', '#C9FFBF',0), '4'=>array('Historical Context', '#E2E2E2',0), '5'=>array('Author Argument', '#DDE8C6',0), // '6'=>array('Author speculation ', '#DDE8C6',0), '6'=>array('Frament', '#CFDFEF',0)); if( !isset($_GET['article']) && !isset($_POST['select']) ){ page_top(); select_article(); page_bot(); }else{ if(isset($_GET['article']))$article=$_GET['article']; // if(isset($_POST['article'])){ // $article=$_POST['article']; // }else{ //none selected so select all. // $_POST['select']=array(0=> 0, 3, '3q', 2, 5, '5q', 6); // } $doc=load_article($article); load_interface($doc,$article); } function page_top(){ ?> sources fun

BreakDown
'; echo ''; foreach($types as $key => $val){ echo ' '; echo ''; } ?>
key'; echo '   type'; echo ' word count
' . $key . ''; echo '' . $val[0] . '
'; echo '
' . round($val[2] / 5) . '

 

 

$val){ array_push($data,$val[2]); array_push($legend,$val[0]); // array_push($targ, $_SERVER['PHP_SELF'] . '?c=' .$key); } $data = array(40,21,17,10,23); //include_once('pie3d.php'); $graph = new PieGraph(400,200,'auto'); $graph->SetShadow(); // Set A title for the plot $graph->title->Set("3D Pie Client side image map"); $graph->title->SetFont(FF_FONT1,FS_BOLD); // Create $p1 = new PiePlot3D($data); $p1->SetLegends(array("Jan (%d)","Feb","Mar","Apr","May","Jun","Jul")); $targ=array("pie3d_csimex1.php?v=1","pie3d_csimex1.php?v=2","pie3d_csimex1.php?v=3", "pie3d_csimex1.php?v=4","pie3d_csimex1.php?v=5","pie3d_csimex1.php?v=6"); $alts=array("val=%d","val=%d","val=%d","val=%d","val=%d","val=%d"); $p1->SetCSIMTargets($targ,$alts); // Use absolute labels $p1->SetLabelType(1); $p1->value->SetFormat("%d kr"); // Move the pie slightly to the left $p1->SetCenter(0.4,0.5); $graph->Add($p1); // Send back the HTML page which will call this script again // to retrieve the image. $graph->StrokeCSIM('pie3d.php'); } function load_article($name){ global $types; $file=$name . ".txt"; $doc = implode('', file($file)); $patterns=array(); $replacements=array(); $pat2=array(); $rep2=array(); //build search and replace array based on selection. foreach($types as $key=> $val){ array_push($pat2, "/<$key>/"); array_push($rep2, ''); array_push($pat2, "/<\/$key>/"); array_push($rep2, ""); } //count based on patterns before replacing: $match=array(); foreach($types as $key=> $val){ $m_all_pat= "/<$key>[^<]*<\/$key>/"; preg_match_all($m_all_pat, $doc, $match, PREG_PATTERN_ORDER); foreach($match[0] as $val){ $types[$key][2]+= (strlen($val)-7); } } // print "
";
//	print_r($types);
//	print_r($patterns);
	//replace out the inside tags
	$doc = preg_replace($patterns, $replacements, $doc);
	//replace tags if not replaced before:
	$doc = preg_replace($pat2, $rep2, $doc);
	//and finaly replace tags that were not replaced in either:
//	$doc = preg_replace("/<[^>]*>/", '', $doc);
	//add newlines
	$doc = str_replace("\n","
",$doc); return $doc; } function select_article(){ ?>

Please select an article:

First an article encouraging the administration to lie about lying:
“Also, the alternative for Bush -- admitting an error in the prewar allegations has not worked well for him in the past” then an article encouraging insiders to come forth with the truth by exposing incriminating documents

A Tactical Retreat on Iraq
Bush implicitly concedes that pre-war allegations appear to be wrong.[original]

Leak Against this War
by Daniel Ellsberg znet [original]

 
 

Notes/Findings:

It was very challenging to come up with categories that would capture what I wanted to express in a formal analytical way. It is very hard to avoid very subject analysis when analyzing the news structures. Also getting isolated perspectives on a praticular event was challening progressive media seemed to analize events rathern then present them as a story or news report. Thes diffrence of content made direct comparison analysis challenging as well. For exmaple Znet had released a story on The US and Nepal on febuary 2nd but there was very little hedlining coverage in US corparate media.

Furthermore the type of analysis done would be very difficult for a computer algorithm to accomplish as many ‘judgment calls’ on content where made that could be argued in either direction.

I have a new found appreciation for the articles where their analysis was able to accurately capture some of the misrepresentation of underrepresented groups in the media.