+COMMENT ON COLUMN word.wptitle IS 'reference Wikipedia article';
+
+CREATE OR REPLACE VIEW _cat_words AS
+ SELECT * FROM word RIGHT JOIN (
+ SELECT cat id, array_agg(form ORDER BY form) forms
+ FROM word WHERE ref IS NULL GROUP BY cat
+ ) sub USING (id);