collocatordb: export get_word to C
diff --git a/collocatordb.cc b/collocatordb.cc
index ba6c138..bf75f76 100644
--- a/collocatordb.cc
+++ b/collocatordb.cc
@@ -723,6 +723,10 @@
 		db->get_collocators(w1);
 	}
 
+	const char *get_word(COLLOCATORS *db, uint32_t w) {
+		return db->getWord(w).c_str();
+	}
+
 	const char *get_collocators_as_json(COLLOCATORS *db, uint32_t w1) {
 		return strdup(db->collocators2json(db->get_collocators(w1)).c_str());
 	}
diff --git a/collocatordb.h b/collocatordb.h
index 49ef66c..33cb1b8 100644
--- a/collocatordb.h
+++ b/collocatordb.h
@@ -66,4 +66,4 @@
 extern void dump_collocators(COLLOCATORDB *db, uint32_t w1, uint32_t w2, int8_t dist);
 extern void get_collocators(COLLOCATORDB *db, uint32_t w1);
 extern char *get_collocators_as_json(COLLOCATORDB *db, uint32_t w1);
-
+extern char *get_word(COLLOCATORDB *db, uint32_t w1);