You are given a multi-line string representing a CSV dataset.
col1,col2,col3,col4,col5,col6
.
For each data row (excluding the header), output one line in the same order:
VERIFIED: <col2_value>
or
NOT VERIFIED: <col2_value>
A row is VERIFIED only if it satisfies all rules below.
len(trim(col5))
must be between
5 and 31 inclusive
.
col2
must
not
contain any of these substrings (case-insensitive):
company
,
firm
,
co.
,
corporation
,
group
col2
,
col4
, and
col5
into lowercase words by whitespace.
LLC
and
Inc
(case-insensitive) from the comparison sets.
col2
must share
at least 50%
of its (remaining) words with
either
col4
or
col5
.
A single string data containing the CSV content.
Print one line per data row: VERIFIED: ... or NOT VERIFIED: ....
Input:
col1,col2,col3,col4,col5,col6
a,land water,c,d,land water LLC,f
a,Good Company,c,d,land water,f
a,b,c,d,e,f
1,2,3,,5,6
Output:
VERIFIED: land water
NOT VERIFIED: Good Company
NOT VERIFIED: b
NOT VERIFIED: 2