1 | package main |
2 | |
3 | import "context" |
4 | |
5 | |
6 | type Article struct { |
7 | raw string |
8 | } |
9 | |
10 | // Return the source text separated by paragraphs |
11 | func (a Article) Chunks() []string { |
12 | return []string{a.raw} // FIXME |
13 | } |
14 | |
15 | // Article source |
16 | type Source interface { |
17 | Name() string |
18 | Language() Language |
19 | Len(context.Context) (int, error) |
20 | Get(context.Context, int) (*Article, error) |
21 | } |