nl_tokens: Determine whether an input is a CSV file that could be put on a map : that it has geographical information that amounts to points or geography .
pl_tokens: function detectGeoCSV ( buf ) { var lines = buf . toString ( ) . split ( / \r\n|\r|\n / g ) . <mask> ( function ( line ) { return line !== '' ; } ) ; return lines . length > 0 && // if the CSV file begins with {"type":, it's more likely // a GeoJSON file ! lines [ 0 ] . substring ( 0 , 50 ) . match ( / ^\s*\{\s*"type"\s*: / ) && detectGeometryField ( lines [ 0 ] . split ( detectSeparator ( lines [ 0 ] ) ) . map ( function ( header ) { return header . replace ( / " / g , '' ) ; } ) ) ; }