n-gram generation
term - hashable representation
document path generation
enable document saving