removeStopWords method

String removeStopWords(
  1. String text
)

Implementation

String removeStopWords(String text) {
  text = text.replaceFirst('PAKISTAN', '');
  text = text.replaceFirst('PAKISTANI', '');
  text = text.replaceFirst('PASSPORT', '');
  text = text.replaceFirst('ISLAMIC', '');
  text = text.replaceFirst('REPUBLIC', '');
  text = text.replaceFirst('OF', '');
  text = text.replaceAll('Date', '');
  text = text.replaceFirst('Pakistan', '');
  return text;
}