original_string: public function language( $text )
  	{
  		$data = $this->post_call('/langid', ['text' => $text] );
  
  		if ( isset($data['langid']) && isset($data['langid']['language']))
  		{
  			// return 'no' for Norwegian Bokmaal and Nynorsk
  			if ( $data['langid']['language'] == 'nn' || $data['langid']['language'] == 'nb' )
  				return 'no';
  
  			return $data['langid']['language'];
  		}
  		
  		return null;
      }
code: public function language( $text )
  	{
  		$data = $this->post_call('/langid', ['text' => $text] );
  
  		if ( isset($data['langid']) && isset($data['langid']['language']))
  		{
  			// return 'no' for Norwegian Bokmaal and Nynorsk
  			if ( $data['langid']['language'] == 'nn' || $data['langid']['language'] == 'nb' )
  				return 'no';
  
  			return $data['langid']['language'];
  		}
  		
  		return null;
      }
code_tokens: public function language ( $ text ) { $ data = $ this -> post_call ( '/langid' , [ 'text' => $ text ] ) ; if ( isset ( $ data [ 'langid' ] ) && isset ( $ data [ 'langid' ] [ 'language' ] ) ) { // return 'no' for Norwegian Bokmaal and Nynorsk if ( $ data [ 'langid' ] [ 'language' ] == 'nn' || $ data [ 'langid' ] [ 'language' ] == 'nb' ) return 'no' ; return $ data [ 'langid' ] [ 'language' ] ; } return null ; }
docstring: Get language code for text
docstring_tokens: Get language code for text