goal is board.reason

legalanswers are yes no *

if us_flag is yes
  and foreign_territorial_waters is no
  and government_vessel is no
then board.reason is US.vessel.within.jurisdiction.
                            
if government_vessel is yes 
then board.reason is non-existent...Government.vsls.soveriegn.

if us_tw is yes
  and us_flag is no
  and extended_consequences is yes
then board.reason is fully.subject.to.US.law...MLEMan,.M-2

if us_tw is yes
  and us_flag is no
  and flag_consul is yes
then board.reason is fully.subject.to.US.law...MLEMan,.M-2

if internal_waters is yes
  and us_flag is no
  and extended_consequences is yes
then board.reason is fully.subject.to.US.law...MLEMan,.M-2                     

if internal_waters is yes
  and us_flag is no
  and flag_consul is yes
then board.reason is fully.subject.to.US.law...MLEMan,.M-2

if foreign_territorial_waters is yes
  and entry_permission is yes
  and statement_objection is yes
then board.reason is based.on.the.permission.of.government.

if foreign_territorial_waters is yes
  and puget_sound is yes
  and sockeye_convention is yes
  and hot_pursuit is yes
then board.reason is Fraser.River.Sockeye.convention..16USC776

if foreign_territorial_waters is yes
  and entry_permission is no
 then board.reason is non-existent...Need.permission.of.state.

if us_flag is no and 
   valid_foreign_flag is yes and
   foreign_territorial_waters is no
   and statement_objection is yes
then board.reason is  Stateless.vessel...International.treaty

if contiguous_zone is yes 
  and innocent_passage is no            
  and force_majeure is no
  then board.reason is Customs.laws.

if contiguous_zone is yes
  and force_majeure is yes
  and reason_to_believe_crime is no
then board.reason is Verify.Force.Majeure...only

if contiguous_zone is yes
  and reason_to_believe_crime is yes
then board.reason is Customs.laws..(Better.warn.the.boss...)

if contiguous_zone is yes
   and nite_time is yes
   and vsl_w/o_lites is yes
then board.reason is presumption.of.smuggling.under.19USC.
                     
if contiguous_zone is no           
   and origin_cont_zone is yes
   and hot_pursuit is yes
then board.reason is constructive.presence..19USC1568,1587

if contiguous_zone is no
   and contact_boat is yes
   and contact_boat_violation is yes
   and adjacent is yes
then board.reason is constructive.presence...19USC
                 
if atlantic is yes
   then pacific is no
     
if Atlantic is yes and UK_flag is yes and British_treaty_area is yes and 
   statement_objection is yes 
then board.reason is US/UK.agreement.

if FCZ is yes
  and engaged_in_fishing is yes
  and highly_migratory_species is no
  and fishery_research is no
then board.reason is Fisheries.Conservation.&.Mgt.Act,.16USC1801.

if Pacific is yes
  and INPFC is yes      
  and anadromous_likely_catch is yes
  and fishery_research is no
  and CA_flag is yes
then board.reason is North.Pacific.Fisheries.INPFC,.16USC1021

if Pacific is yes
  and INPFC is yes
  and anadromous_likely_catch is yes
  and fishery_research is no
  and JA_flag is yes
then board.reason is North.Pacific.Fisheries.INPFC,.16USC1021

if Pacific is yes
  and IPHC is yes
  and CA_flag is yes
  and fishery_research is no
  and foreign_territorial_waters is no
then board.reason is IPHC,.16USC772.&.50CFR.301

if FCZ is no
  and engaged_in_fishing is yes
  and over_continental_shelf is yes
  and csfr is yes
  and fishery_research is no
then board.reason is FCMA,.exception...MLE.Manual,.p.3-11
                              
if FCZ is no
  and engaged_in_fishing is yes
  and anadromous_migratory_range is yes
  and anadromous_likely_catch is yes
  and fishery_research is no
then board.reason is FCMA,.exception..MLE.Manual,.p.3-11
                                          

if actually_fishing is yes then engaged_in_fishing is yes

if fishery_support is yes then engaged_in_fishing is yes
                 
if valid_flag_state is yes
   and foreign_govt_permission is yes
   and statement_objection is yes
then board.reason is board.on.behalf.of.flag.state.and.its.laws.
                             
if master_permission is yes
  and within_30_miles is no
  then board.reason is  consent.boarding...At.master's.pleasure.

if master_permission is no
  then board.reason is nil...I've.run.out.of.things.to.check.

question master_permission is
"Can you get master's permission for a consent boarding?"

question within_30_miles is 
"Are we within 30 miles of this vessel's flag state?"
      
question reason_to_believe_crime is
"Do you have reason to believe that vessel has committed a violation of law?"
                    
question statement_objection is
"Do you have a Statement of No Objection?"

question foreign_govt_permission is
"Do you have permission of flag state to board?"
                            
question entry_permission is
"Do you have permission of the state whose territory you wish to enter?"
    
question atlantic is
"Are we in the Atlantic area?"

question pacific is
"Are we in the Pacific area?"
                    
question puget_sound is 
"Are we in Puget Sound? (See MLEMan, 3-45 for exact geography)"

question sockeye_convention is 
"Are we enforcing the Sockeye Convention?"

question hot_pursuit is 
"Do we have a valid hot pursuit case here? Continuous contact since 
detection?" 
                       
question origin_cont_zone is
"Did a violation of US law by this vessel originate in contiguous zone?"

question contact_boat is
"Is this vessel in contact with a vessel from the contiguous zone?"
                             
question contact_boat_violation is
"Did contact boat commit a violation of US law within contiguous zone?"

question adjacent is
"Is this mother ship in waters ADJACENT to Customs Waters?"

question nite_time is
"Is it night out?  (Between sunset and sunrise)"

question vsl_w/o_lites is
"Is this bozo running without nav lights? (or any lights)"


question british_treaty_area is
"Within the US/UK jurisdictional agreement area? (S of Bermuda, W of 35W)"

question UK_flag is
"Is this a British flag vessel?"
question CA_flag is
"Is this a Canadian flag vessel?"
question JA_flag is
"Is this a Japanese flag vessel?"

question highly_migratory_species is
"Is this a tuna boat (fishing for highly migratory species)?" 

question actually_fishing is
"Is this vessel actually fishing or searching for fish?"

question fishery_support is
"Does this vessel work in support of fishing vessels?"

question over_continental_shelf is
  "Is this foreign fishing vessel over the US continental shelf?"

question csfr is
  "Is this vessel fishing in a manner likely to take crab?"

question anadromous_migratory_range is
  "Is vessel fishing within the migratory range of anadromous fish (salmon)?"

question anadromous_likely_catch is
  "is the vessel fishing in a manner likely to take said anadromous species?"

question IPHC is
  "Is this a halibut boat subject to International Pacific Halibut Convention?"
                       
question INPFC is
  "Is this a salmon vessel subject to INPFC in North Pacific?"

question fishery_research is 
  "Is this a scientific research venture (non-commercial quantities)?"

question us_flag is "Is this vessel of U. S. flag?"

question foreign_territorial_waters is 
"Is this vessel in the territorial waters of another country?"       
                             
question government_vessel is
"Is this a government vessel? Such as law enforcement vessels and warships."  

question valid_foreign_flag is 
"Does the document check with flag state indicate stateless vessel?"

question us_tw is 
"Is vessel in the United States territorial sea (3 miles)?"
                         
question contiguous_zone is 
"Is vessel in the United States Contiguous Zone?"

question innocent_passage is 
"Is vessel in innocent passage through US waters?"
                                                                               
question FCZ is 
"Is vessel in the US FCZ?  That is between 3 and 200 miles from the US coast."

question force_majeure is 
"Is vessel in US waters as a result of force majeure?"

question extended_consequences is 
"Has vessel violated US laws, consequences of which extend beyond vessel 
itself?"
                        
question flag_consul is
"Has consul of the flag state requested US assistance?"

question internal_waters is 
"Is vessel within the internal waters of the United States?"


answer is "Your basis to board is
 " board.reason
