hasEducationalContext method

bool hasEducationalContext()

Implementation

bool hasEducationalContext() {
  final List<String> educationalKeywords = <String>[
    'faculty',
    'university',
    'college',
    'school',
    'department',
    'student',
    'study',
    'exam',
    'class',
    'course',
    'degree',
    'bachelor',
    'master',
    'phd',
    'diploma',
    'certificate',
  ];

  final String lowerNote = toLowerCase();
  return educationalKeywords.any(
    (String keyword) => lowerNote.contains(keyword),
  );
}